新浪博客RSS订阅,连接被重置!!!

IT前沿 2007-05-17

问题如下:

今天发现以前写的读RSS的程序突然有些问题,文章全部读不出来了,程序报的错误如下:

java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
	at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at com.sun.syndication.io.XmlReader.<init>(XmlReader.java:174)

	at com.sun.syndication.io.XmlReader.<init>(XmlReader.java:151)
	at atteam.RssReader.FeedReader.reader(FeedReader.java:23)
	at atteam.RssReader.FeedReader.getList(FeedReader.java:14)
	at RssReader.main(RssReader.java:12)

后来用IE打开那个RSS地址(http://blog.sina.com.cn/myblog/index_rss.php?uid=1190363061)居然显示为网页无法显示,用Firefox打开提示连接被重置,但有时却是可以打开的,但我的程序却没有一次成功过,都报"Connectionreset"这个错误。

后来我用抓虾去试了一下,用抓虾却是可以的,我现在不知道问题出在哪里,我用的是rome0.9,请大家帮我分析分析

相关推荐

songjie / 0评论 2012-10-23