. Advertisement .
..3..
. Advertisement .
..4..
Hi everyone. Yesterday i wrote a simple code in java. It was totally ok until i put .jar file on the server then i got the error below.
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:718)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:715)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
at dataconverter.Reader.getConnection(Reader.java.260)
This is the first time i have to face with this problem. please help me to fix this
Thanks.
Causes: The remote sever chosen and shut down the connection although the response haven’t been given . The second cause may be that the remote system have a lot of thing to handle or it has network bug
Solution: Use packet sniffing tools to explore things that you sent, receives. Besides, you should check if the system has any error messages.
That all, hope you deal with your problem