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.