程序运行了两天就出现了这个错误:是什么原因?该怎么解决?
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:156)
at java.io.FilterInputStream.read(FilterInputStream.java:111)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:110)
at java.io.FilterInputStream.read(FilterInputStream.java:90)
at org.apache.commons.httpclient.AutoCloseInputStream.read(AutoCloseInputStream.java:129)
at org.apache.commons.httpclient.HttpMethodBase.getResponseBody(HttpMethodBase.java:702)
------解决方法--------------------------------------------------------
理论上来说是网络的问题。
------解决方法--------------------------------------------------------
也可能读取了过长的数据,可能服务器此时已经调用了socket.close()