B4J Question jWebsocketclient Fixed time disconnection problem

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi
I have put following code in the ABMApplication/StartServer (V4.30). My other no-ui b4j app could connect to server with jwebsocketclient but it disconnection with server in fixed time(couple sec) . Why o_O
Other big question is : I use shell execute cmd to run .jar and i always get a exception org.apache.exec.ExecuteException: The stop timeout of 500 ms was exceeded and then exit application ! :eek:

B4X:
srvr.AddWebSocket("/ws/engine/*", "enginehandler")
 
Last edited:

OliverA

Expert
Licensed User
Longtime User
Other big question is : I use shell execute cmd to run .jar and i always get a exception
Show the code for this. If using jShell, set timeout to -1 for indefinitely running apps
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
Show the code for this. If using jShell, set timeout to -1 for indefinitely running apps
Y,I use shell and the timeout is -1. Why does timeout still happen?
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
I think your application (the one called with jShell) may be crashing (at minimum it's not stopping normally or taking to long to stop). You may want to log the applications STDOUT/STDERR to a file and see what is happening.
 
Upvote 0
Top