Tuesday, February 11, 2014

android client when connecting to the server, you can use the wifi access is successful, but with the gprs access error java.net.SocketException


            
06-24 19:04:56.850: W / System.err (28273): java.net.SocketException: Connection reset by peer
06-24 19:04:56.882: W / System.err (28273): at org.apache.harmony.luni.platform.OSNetworkSystem.read (Native Method)
06-24 19:04:56.882: W / System.err (28273): at dalvik.system.BlockGuard $ WrappedNetworkSystem.read (BlockGuard.java: 273)
06-24 19:04:56.889: W / System.err (28273): at org.apache.harmony.luni.net.PlainSocketImpl.read (PlainSocketImpl.java: 458)
06-24 19:04:56.889: W / System.err (28273): at org.apache.harmony.luni.net.SocketInputStream.read (SocketInputStream.java: 85)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer (AbstractSessionInputBuffer.java: 103)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine (AbstractSessionInputBuffer.java: 191)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.conn.DefaultResponseParser.parseHead (DefaultResponseParser.java: 82)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.io.AbstractMessageParser.parse (AbstractMessageParser.java: 174)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader (AbstractHttpClientConnection.java: 179)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader (DefaultClientConnection.java: 235)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader (AbstractClientConnAdapter.java: 259)
06-24 19:04:56.889: W / System.err (28273): at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse (HttpRequestExecutor.java: 279)
06-24 19:04:56.905: W / System.err (28273): at org.apache.http.protocol.HttpRequestExecutor.execute (HttpRequestExecutor.java: 121)
06-24 19:04:56.905: W / System.err (28273): at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java: 425)
06-24 19:04:56.905: W / System.err (28273): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java: 555)
06-24 19:04:56.913: W / System.err (28273): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java: 487)
06-24 19:04:56.913: W / System.err (28273): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java: 465)
06-24 19:04:56.913: W / System.err (28273): at com.healthcare.util.HttpUtil.postRequest (HttpUtil.java: 95)
06-24 19:04:56.913: W / System.err (28273): at com.healthcare.service.UserLoginService.userLogin (UserLoginService.java: 36)
06-24 19:04:56.921: W / System.err (28273): at com.healthcare.boss.service.MainService $ UserLoginThread.run (MainService.java: 199)
Reply:
You look at your device is not supported by GPRS data connection, you need to use 3G or GPRS mobile phone cards to open data traffic, your phone card opened the job
Reply:
Opened,
usually will use GRPS Internet
Reply:
What you write server interface. . . First look up the interface it
Interface data under normal circumstances would not have this problem.
Reply:
server side is written so
Reply:
Landlord problems solved? I also encountered the same problem, the landlord if resolved, seeking to share
Reply:
Before treatment httpClient.execute (post), plus a post.setHeader ("X-Online-Host", ip address plus port number (eg 192.168.1.168:8080)), do not know that you are not the problem, hope can solve your problem
Reply:
Upstairs tried that method did not resolve, ah,

No comments:

Post a Comment