This discussion is archived
0 Replies Latest reply: Nov 23, 2012 1:55 AM by 956663 RSS

Rss Feeds XML Parsing

956663 Newbie
Currently Being Moderated
Hi,

I'm working on the example on Rss Feed which needs to integrated to our website.Hence below link i'm using for my reference purpose.

http://www.vogella.com/articles/RSSFeed/article.html

When i run the program the below exception is displayed.

Please do the needful.Thanks in advance

Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException: Connection timed out: connect
     at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:146)
     at de.vogella.rss.RSSFeedParser.readFeed(RSSFeedParser.java:61)
     at de.vogella.rss.ReadTest.main(ReadTest.java:13)
Caused by: java.net.ConnectException: Connection timed out: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(Unknown Source)
     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
     at java.net.PlainSocketImpl.connect(Unknown Source)
     at java.net.SocksSocketImpl.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at sun.net.NetworkClient.doConnect(Unknown Source)
     at sun.net.www.http.HttpClient.openServer(Unknown Source)
     at sun.net.www.http.HttpClient.openServer(Unknown Source)
     at sun.net.www.http.HttpClient.<init>(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.http.HttpClient.New(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
     at java.net.URL.openStream(Unknown Source)
     at de.vogella.rss.RSSFeedParser.read(RSSFeedParser.java:144)
     ... 2 more

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points