android - Socket IO Error while handshaking Caused by java.net.SocketTimeoutException -
hi new
have client on android phone , want connect socketio server on raspberry pi.
have take client example https://github.com/fatshotty/socket.io-java-client/blob/master/examples/basic/basicexample2.java
change ip address , port. when run problem
03-21 11:37:09.469 19973-20232/com.example.app i/system.out﹕ error occured
03-21 11:37:09.469 19973-20232/com.example.app w/system.err﹕ io.socket.socketioexception: error while handshaking
03-21 11:37:09.470 19973-20232/com.example.app w/system.err﹕ @ io.socket.ioconnection.handshake(ioconnection.java:322)
03-21 11:37:09.470 19973-20232/com.example.app w/system.err﹕ @ io.socket.ioconnection.access$600(ioconnection.java:39)
03-21 11:37:09.470 19973-20232/com.example.app w/system.err﹕ @ io.socket.ioconnection$connectthread.run(ioconnection.java:199)
03-21 11:37:09.470 19973-20232/com.example.app w/system.err﹕ caused by: java.net.sockettimeoutexception
03-21 11:37:09.471 19973-20232/com.example.app w/system.err﹕ @ java.net.plainsocketimpl.read(plainsocketimpl.java:495)
03-21 11:37:09.471 19973-20232/com.example.app w/system.err﹕ @ java.net.plainsocketimpl.access$000(plainsocketimpl.java:46)
03-21 11:37:09.471 19973-20232/com.example.app w/system.err﹕ @ java.net.plainsocketimpl$plainsocketinputstream.read(plainsocketimpl.java:240)
03-21 11:37:09.471 19973-20232/com.example.app w/system.err﹕ @ java.io.inputstream.read(inputstream.java:163)
03-21 11:37:09.471 19973-20232/com.example.app w/system.err﹕ @ java.io.bufferedinputstream.fillbuf(bufferedinputstream.java:142)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ java.io.bufferedinputstream.read(bufferedinputstream.java:227)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ libcore.io.streams.readasciiline(streams.java:201)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ libcore.net.http.httpengine.readresponseheaders(httpengine.java:573)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ libcore.net.http.httpengine.readresponse(httpengine.java:821)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ libcore.net.http.httpurlconnectionimpl.getresponse(httpurlconnectionimpl.java:293)
03-21 11:37:09.472 19973-20232/com.example.app w/system.err﹕ @ libcore.net.http.httpurlconnectionimpl.getinputstream(httpurlconnectionimpl.java:185)
03-21 11:37:09.473 19973-20232/com.example.app w/system.err﹕ @ io.socket.ioconnection.handshake(ioconnection.java:313)
03-21 11:37:09.473 19973-20232/com.example.app w/system.err﹕ ... 2 more
some 1 know can ?
Comments
Post a Comment