You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Mark Combellack (JIRA)" <de...@tuscany.apache.org> on 2009/06/21 11:04:07 UTC

[jira] Commented: (TUSCANY-3111) NullPointerException thrown when using RSS binding on a Java component implementation class that does not have a get() method

    [ https://issues.apache.org/jira/browse/TUSCANY-3111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12722319#action_12722319 ] 

Mark Combellack commented on TUSCANY-3111:
------------------------------------------

NP exception fixed in SVN revision 786955.

Now get the following exception when accessing the feed in my web browser:

javax.servlet.ServletException: com.sun.syndication.io.FeedException: Invalid rss_2.0 feed, missing channel description
	org.apache.tuscany.sca.binding.rss.provider.RSSBindingListenerServlet.doGet(RSSBindingListenerServlet.java:188)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

root cause

com.sun.syndication.io.FeedException: Invalid rss_2.0 feed, missing channel description
	com.sun.syndication.io.impl.RSS090Generator.checkNotNullAndLength(RSS090Generator.java:127)
	com.sun.syndication.io.impl.RSS092Generator.checkChannelConstraints(RSS092Generator.java:138)
	com.sun.syndication.io.impl.RSS090Generator.addChannel(RSS090Generator.java:96)
	com.sun.syndication.io.impl.RSS091UserlandGenerator.addChannel(RSS091UserlandGenerator.java:77)
	com.sun.syndication.io.impl.RSS091UserlandGenerator.populateFeed(RSS091UserlandGenerator.java:73)
	com.sun.syndication.io.impl.RSS090Generator.generate(RSS090Generator.java:56)
	com.sun.syndication.io.WireFeedOutput.outputJDom(WireFeedOutput.java:193)
	com.sun.syndication.io.WireFeedOutput.output(WireFeedOutput.java:133)
	com.sun.syndication.io.SyndFeedOutput.output(SyndFeedOutput.java:97)
	org.apache.tuscany.sca.binding.rss.provider.RSSBindingListenerServlet.doGet(RSSBindingListenerServlet.java:186)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:820)


> NullPointerException thrown when using RSS binding on a Java component implementation class that does not have a get() method
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3111
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3111
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA RSS Binding Extension
>    Affects Versions: Java-SCA-1.5
>         Environment: SVN Revision 786928
> Linux
>            Reporter: Mark Combellack
>            Assignee: Mark Combellack
>             Fix For: Java-SCA-Next
>
>
> The RSS binding can support two types of Java implementation classes that
>    * extend org.apache.tuscany.sca.binding.rss.collection.Collection
>    * Do not extend org.apache.tuscany.sca.binding.rss.collection.Collection but have a getAll() method that uses the Tuscany Data API
> The support for this is provided in the getFeed() method of RSSBindingListenerServlet in the binding-rss-rome module. 
> Unfortunately, currently if you attempt to add an RSS binding to a Java component implementation that does not have a get() method then the following NullPointerException is thrown:
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.tuscany.sca.binding.rss.provider.RSSBindingListenerServlet.<init>(RSSBindingListenerServlet.java:112)
> 	at org.apache.tuscany.sca.binding.rss.provider.RSSServiceBindingProvider.start(RSSServiceBindingProvider.java:72)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl$3.run(CompositeActivatorImpl.java:630)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:628)
> 	at org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.start(CompositeActivatorImpl.java:560)
> 	at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:716)
> 	at scatours.LaunchBlogFeedNode.main(LaunchBlogFeedNode.java:35)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.