Skip to main content

developerWorks >  WebSphere  >  Forums  >  IBM WebSphere Application Server Feature Pack for Web 2.0 Beta Program  >  developerWorks

Feed support doesn't work with a lot of atom feeds    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Dec 18, 2007 2:38 PM Last Post By: Guest

Posts: 3
Registered: Oct 22, 2007 04:34:44 AM
Feed support doesn't work with a lot of atom feeds
Posted: Oct 22, 2007 09:46:55 AM
Click to report abuse...   Click to reply to this thread Reply
The feed support works fine with http://www.oreillynet.com/pub/feed/1 feed, but it returns the following values for a lot of feeds:
1) "NO CONTENT" for http://news.google.com/news?ned=us&topic=h&output=atom feed;
2) "Error 500: org.apache.abdera.parser.stax.FOMExtensibleElement" for http://www.feedsfarm.com/frontpage/world/atom and http://feeds.feedburner.com/techtarget/tsscom/home feeds.

How can I resolve this problem?

Edited by: lbradley_admin on {1}
Guest
Re: Feed support doesn't work with a lot of atom feeds
Posted: Oct 23, 2007 11:39:26 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Use FeedValidator, to check the validity of a feed. FeedValidator
is available here: http://feedvalidator.org
  • Valid ATOM feeds are processed by Abdera.
  • RSS processing is still being introduced into Abdera, therefore
some valid RSS feeds may still not be processed by Abdera

In addition, also use curl to check if the feeds are being served
correctly. curl can be obtained from:
http://curl.haxx.se/download.html
Try this curl -X GET http://news.google.com/?output=atom

Have also created a sample Java program to determine if a feed
can be processed.

import java.io.InputStream;
import java.net.URL;

import org.apache.abdera.Abdera;
import org.apache.abdera.model.Document;
import org.apache.abdera.model.Feed;
import org.apache.abdera.parser.Parser;

public class TestFeed {

public static void main(String[] args) throws Exception {

Parser parser = Abdera.getNewParser();
InputStream input;
try {
input = new URL(args[0]).openStream();
Document doc = (Document) parser.parse(input);
Feed feed = (Feed) doc.getRoot();
System.out.println("Feed can be parsed");
System.out.println("Begin feed content -----");
feed.writeTo(System.out);
System.out.println("-------End feed content");
} catch (Exception e) {
e.printStackTrace();
}
}

}

Thanks
IBM Moderator

Edited by: lbradley_admin on {1}

 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums