XWiki's feed plugin can't parse XWiki's RDF
As demonstrated by this page http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS the XWiki feed parser plugin appears to fall over when parsing a feed generated by XWiki. Other parsers have no problems. The the stack trace isn't reported with the error so it's a bit hard to see exactly what's going wrong... though I guess it's failing in FeedPlugin.getFeedForce(..). I thought it might be a formatting problem in the rdf template, exposing some fragility in the parser... However, invoking rome as follows (using rome 0.7) works fine: public class Feedread { public static void main(String[] args) throws IllegalArgumentException, IOException, FeedException, FetcherException { // FeedFetcher feedFetcher = new HttpURLFeedFetcher(); URL feedURL = new URL("http://www.xwiki.org/xwiki/bin/view/Main/WebRss?xpage=rdf"); SyndFeed feed = feedFetcher.retrieveFeed(feedURL); feedFetcher.setUserAgent("XWikiBot"); System.out.println(feed); } } So I'm not sure what's breaking when this happens inside XWiki. The reason want to do this is that on my xwiki homepage I'd like to include a bunch of feeds, some external, some from the wiki itself. It would make my life easier if I could use my same macro to display them all, rather than using the feed plug for the external ones, and direct hql queries for the local ones. Regards, Robin
On 3/23/06, Robin Fernandes <rewbs.soal@gmail.com> wrote:
As demonstrated by this page http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS the XWiki feed parser plugin appears to fall over when parsing a feed generated by XWiki. Other parsers have no problems.
The the stack trace isn't reported with the error so it's a bit hard to see exactly what's going wrong... though I guess it's failing in FeedPlugin.getFeedForce(..). I thought it might be a formatting problem in the rdf template, exposing some fragility in the parser... However, invoking rome as follows (using rome 0.7) works fine:
public class Feedread { public static void main(String[] args) throws IllegalArgumentException, IOException, FeedException, FetcherException { // FeedFetcher feedFetcher = new HttpURLFeedFetcher(); URL feedURL = new URL("http://www.xwiki.org/xwiki/bin/view/Main/WebRss?xpage=rdf"); SyndFeed feed = feedFetcher.retrieveFeed(feedURL); feedFetcher.setUserAgent("XWikiBot"); System.out.println(feed); } }
So I'm not sure what's breaking when this happens inside XWiki.
The reason want to do this is that on my xwiki homepage I'd like to include a bunch of feeds, some external, some from the wiki itself. It would make my life easier if I could use my same macro to display them all, rather than using the feed plug for the external ones, and direct hql queries for the local ones.
I tried on my local wiki with the last svn version, and it's working. But yes, it's not working on the farm. I don't have a solution to have it working on the farm. Jérémi -- Blog: http://www.jeremi.info LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724 Project Manager XWiki: http://www.xwiki.org skype: jeremi23 -- msn et gtalk : jeremi23@gmail.com
It's probably a rome version issue. We could try upgrading just the rome module on the farm. If it doesn't work the next upgrade of the farm will do it (we need to finish 1.0B1) Ludovic jeremi joslin a écrit :
On 3/23/06, Robin Fernandes <rewbs.soal@gmail.com> wrote:
As demonstrated by this page http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS the XWiki feed parser plugin appears to fall over when parsing a feed generated by XWiki. Other parsers have no problems.
The the stack trace isn't reported with the error so it's a bit hard to see exactly what's going wrong... though I guess it's failing in FeedPlugin.getFeedForce(..). I thought it might be a formatting problem in the rdf template, exposing some fragility in the parser... However, invoking rome as follows (using rome 0.7) works fine:
public class Feedread { public static void main(String[] args) throws IllegalArgumentException, IOException, FeedException, FetcherException { // FeedFetcher feedFetcher = new HttpURLFeedFetcher(); URL feedURL = new URL("http://www.xwiki.org/xwiki/bin/view/Main/WebRss?xpage=rdf"); SyndFeed feed = feedFetcher.retrieveFeed(feedURL); feedFetcher.setUserAgent("XWikiBot"); System.out.println(feed); } }
So I'm not sure what's breaking when this happens inside XWiki.
The reason want to do this is that on my xwiki homepage I'd like to include a bunch of feeds, some external, some from the wiki itself. It would make my life easier if I could use my same macro to display them all, rather than using the feed plug for the external ones, and direct hql queries for the local ones.
I tried on my local wiki with the last svn version, and it's working. But yes, it's not working on the farm. I don't have a solution to have it working on the farm.
Jérémi
-- Blog: http://www.jeremi.info LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724 Project Manager XWiki: http://www.xwiki.org skype: jeremi23 -- msn et gtalk : jeremi23@gmail.com
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
I have found a workaround for the wiki farm, so don't spend any time on it if it's already fixed in SVN. Workaround is illustrated here: http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS As you can see, if the RSS macro accesses the exact same RDF content via an external proxy, it works fine. Thanks, Robin. On 24/03/06, Ludovic Dubost <ludovic@xwiki.com> wrote:
It's probably a rome version issue. We could try upgrading just the rome module on the farm. If it doesn't work the next upgrade of the farm will do it (we need to finish 1.0B1)
Ludovic
jeremi joslin a écrit :
On 3/23/06, Robin Fernandes <rewbs.soal@gmail.com> wrote:
As demonstrated by this page http://www.xwiki.org/xwiki/bin/view/Sandbox/includeOwnRSS the XWiki feed parser plugin appears to fall over when parsing a feed generated by XWiki. Other parsers have no problems.
The the stack trace isn't reported with the error so it's a bit hard to see exactly what's going wrong... though I guess it's failing in FeedPlugin.getFeedForce(..). I thought it might be a formatting problem in the rdf template, exposing some fragility in the parser... However, invoking rome as follows (using rome 0.7) works fine:
public class Feedread { public static void main(String[] args) throws IllegalArgumentException, IOException, FeedException, FetcherException { // FeedFetcher feedFetcher = new HttpURLFeedFetcher(); URL feedURL = new URL("http://www.xwiki.org/xwiki/bin/view/Main/WebRss?xpage=rdf"); SyndFeed feed = feedFetcher.retrieveFeed(feedURL); feedFetcher.setUserAgent("XWikiBot"); System.out.println(feed); } }
So I'm not sure what's breaking when this happens inside XWiki.
The reason want to do this is that on my xwiki homepage I'd like to include a bunch of feeds, some external, some from the wiki itself. It would make my life easier if I could use my same macro to display them all, rather than using the feed plug for the external ones, and direct hql queries for the local ones.
I tried on my local wiki with the last svn version, and it's working. But yes, it's not working on the farm. I don't have a solution to have it working on the farm.
Jérémi
-- Blog: http://www.jeremi.info LinkedIn: https://www.linkedin.com/profile?viewProfile=&key=1437724 Project Manager XWiki: http://www.xwiki.org skype: jeremi23 -- msn et gtalk : jeremi23@gmail.com
------------------------------------------------------------------------
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
participants (3)
-
jeremi joslin -
Ludovic Dubost -
Robin Fernandes