wearscript / wearscript-android

JavaScript with Batteries Included for Google Glass
wearscript.com
216 stars 55 forks source link

IllegalStateException: Socket Not connection #171

Open bwhite opened 10 years ago

bwhite commented 10 years ago

This comes from deep inside the websocket library so we'd have to fix the problem there so we can catch the error.

03-11 14:07:07.795 18804-18804/com.dappervision.wearscript D/WearScript:Utils﹕ Event: com.dappervision.wearscript.events.ScriptEvent Time: 0.170654297 03-11 14:07:07.818 18804-18858/com.dappervision.wearscript D/Sentry﹕ java.lang.IllegalStateException: Socket not connected at com.codebutler.android_websockets.WebSocketClient$3.run(WebSocketClient.java:243) at android.os.Handler.handleCallback(Handler.java:624) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.os.HandlerThread.run(HandlerThread.java:60)

bwhite commented 10 years ago

Can be caused by connecting to a non existant server in serverConnect and calling wearscript stop

bwhite commented 10 years ago

03-27 13:29:51.241 28297-28516/com.dappervision.wearscript E/AndroidRuntime﹕ FATAL EXCEPTION: websocket-thread Process: com.dappervision.wearscript, PID: 28297 java.lang.IllegalStateException: Socket not connected at com.codebutler.android_websockets.WebSocketClient$3.run(WebSocketClient.java:243) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.os.HandlerThread.run(HandlerThread.java:61)

bwhite commented 10 years ago

E/AndroidRuntime( 1570): FATAL EXCEPTION: websocket-thread E/AndroidRuntime( 1570): Process: com.dappervision.wearscript, PID: 1570 E/AndroidRuntime( 1570): java.lang.IllegalStateException: Socket not connected E/AndroidRuntime( 1570): at com.codebutler.android_websockets.WebSocketClient$3.run(WebSocketClient.java:243) E/AndroidRuntime( 1570): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 1570): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 1570): at android.os.Looper.loop(Looper.java:149) E/AndroidRuntime( 1570): at android.os.HandlerThread.run(HandlerThread.java:61)