Hi guys, I'm just playing wit
h ABMaterial and is too amazing.
Just create webapps just writing on basic.
But I have an small problem. On the first excution if I make click on the button, work fine, but I make some process (I use the FileDownload example), after upload the file to the server, the button link not goes.
I see the file upload fine.
I see if the others functions work fine. and is ok.
If a wait some seconds the app crash and show the Log Clicked, on the log wall.
The Crash Report
h ABMaterial and is too amazing.
Just create webapps just writing on basic.
But I have an small problem. On the first excution if I make click on the button, work fine, but I make some process (I use the FileDownload example), after upload the file to the server, the button link not goes.
I see the file upload fine.
I see if the others functions work fine. and is ok.
If a wait some seconds the app crash and show the Log Clicked, on the log wall.
B4X:
Sub Class_Globals
Dim btndownload As ABMButton
end sub
Sub ConnectPage()
btndownload.InitializeRaised(page, "btndownload", "mdi-file-cloud-download",ABM.ICONALIGN_LEFT, "Testing Button", "myTheme")
btndownload.Enabled=False
btndownload.Refresh
page.Cell(6,1).AddComponent(btndownload)
End sub
Sub btndownload_clicked(Target As String)
ABMShared.NavigateToPage(ws, ".\")
Log("Test button Clicked")
End Sub
The Crash Report
B4X:
Waiting for debugger to connect...
Program started.
Collecting data from B4J source files... (1/2)
Analysing data from B4J source files... (2/2)
2016-08-15 13:46:41.776:INFO::main: Logging initialized @815ms
2016-08-15 13:46:41.855:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT
2016-08-15 13:46:41.920:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@bdf5e5{/,file:///C:/Users/Usuario/Documents/Desarollo/B4J/Test_app/Objects/www/,AVAILABLE}
2016-08-15 13:46:41.923:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\Users\Usuario\Documents\Desarollo\B4J\test_app\Objects\logs\b4j-2016_08_15.request.log
2016-08-15 13:46:42.143:INFO:oejs.ServerConnector:main: Started ServerConnector@15eadca{HTTP/1.1,[http/1.1]}{0.0.0.0:90}
2016-08-15 13:46:42.144:INFO:oejs.Server:main: Started @1183ms
Emulated network latency: 100ms
Connected
Disconnected
Connected
ready!
Click Button test
Error occurred on line: 85 (TestPage)
org.eclipse.jetty.websocket.api.WebSocketException: RemoteEndpoint unavailable, current state [CLOSED], expecting [OPEN or CONNECTED]
at org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:299)
at anywheresoftware.b4j.object.WebSocket.Flush(WebSocket.java:101)
at anywheresoftware.b4j.object.WebSocketModule$Adapter$1.run(WebSocketModule.java:131)
at anywheresoftware.b4a.keywords.SimpleMessageLoop.runMessageLoop(SimpleMessageLoop.java:30)
at anywheresoftware.b4a.StandardBA.startMessageLoop(StandardBA.java:26)
at anywheresoftware.b4a.ShellBA.startMessageLoop(ShellBA.java:111)
at anywheresoftware.b4a.keywords.Common.StartMessageLoop(Common.java:131)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:301)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:90)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
Last edited: