java.net.SocketException: Connection reset如何解决

java.net.SocketException:Connectionresetatjava.net.SocketInputStream.read(UnknownSour... java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at casia.isiteam.dcgroup.skynet.news.monitor.client.downloadUtil.HttpClientGetHtmlData.getContents(HttpClientGetHtmlData.java:96)
at casia.isiteam.dcgroup.skynet.news.monitor.client.taskthreadpool.MonitorThread.monitorPage(MonitorThread.java:121)
at casia.isiteam.dcgroup.skynet.news.monitor.client.taskthreadpool.SiteThread.run(SiteThread.java:177)
展开
 我来答
lemonandznn
2011-08-23
知道答主
回答量:2
采纳率:0%
帮助的人:3.1万
展开全部
你的连接被重置了 确认服务端断开连接的原因 一般是验证没通过 或者你发送的格式有问题直接被服务端断开连接了 检查你的发送的包体吧
ochen205
2011-08-24 · TA获得超过234个赞
知道小有建树答主
回答量:187
采纳率:0%
帮助的人:153万
展开全部
确认一下你的链接地址 或者端口什么的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式