You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2009/04/03 12:32:34 UTC
[jira] Created: (CAMEL-1516) NPE of camel-restlet
NPE of camel-restlet
---------------------
Key: CAMEL-1516
URL: https://issues.apache.org/activemq/browse/CAMEL-1516
Project: Apache Camel
Issue Type: Bug
Affects Versions: 2.0-M1, 1.6.0, 1.5.0
Reporter: Willem Jiang
Assignee: Willem Jiang
Fix For: 2.0.0, 1.6.1
I'm getting a NullPointerException in Restlet when I use the Restlet component as a client. I set up a Route that's something like:
from(endpointUri).setExchangePattern(ExchangePattern.InOut)
.to("restlet:http://localhost:9000/whatever")
.process(new SomeProcessor());
When I hit this route, I gett a NullPointerException at com.noelios.restlet.http.HttpConverter.getLogger(). Ultimately, it's trying to warn me about some headers that Restlet is going to ignore. I see that when the RestletProducer creates the Restlet Client, it doesn't set a context (which is the object that's null, causing the NPE). If I simply hack in:
client.setContext(new Context());
after the client is instantiated, it works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1516) NPE of camel-restlet
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1516.
---------------------------------
Resolution: Fixed
trunk
http://svn.apache.org/viewvc?rev=761607&view=rev
camel-1.x branch
http://svn.apache.org/viewvc?rev=761612&view=rev
> NPE of camel-restlet
> ---------------------
>
> Key: CAMEL-1516
> URL: https://issues.apache.org/activemq/browse/CAMEL-1516
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 1.5.0, 1.6.0, 2.0-M1
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.0.0, 1.6.1
>
>
> I'm getting a NullPointerException in Restlet when I use the Restlet component as a client. I set up a Route that's something like:
> from(endpointUri).setExchangePattern(ExchangePattern.InOut)
> .to("restlet:http://localhost:9000/whatever")
> .process(new SomeProcessor());
> When I hit this route, I gett a NullPointerException at com.noelios.restlet.http.HttpConverter.getLogger(). Ultimately, it's trying to warn me about some headers that Restlet is going to ignore. I see that when the RestletProducer creates the Restlet Client, it doesn't set a context (which is the object that's null, causing the NPE). If I simply hack in:
> client.setContext(new Context());
> after the client is instantiated, it works.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.