• Post Reply Bookmark Topic Watch Topic
  • New Topic

jave.net.SocketException: Connection reset  RSS feed

Hongqing Lu
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I try to get response from Socket Server. The programme throws following exception:
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at com.wmsvision.control.ClientSocket.getResponseString(ClientSocket.java:90)
at com.wmsvision.control.ClientSocket.doSendRequestTCN2(ClientSocket.java:194)
at com.wmsvision.servlet.TCNProcessorServlet.service(TCNProcessorServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
The socket client programme runs in Tomcat and the Socket Server runs in another Linux server.
It runs well when the client and socket server in development environment.
However, it throws exception when I setup the application into the customer's environment. I can confirm that sorce code is same as it runs in development environment. I really don't know how to fix it.
What may cause this error?
Any help would be appreciated!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!