camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CAMEL-1516) NPE of camel-restlet
Date Sun, 19 Apr 2009 02:14:34 GMT

     [ 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.


Mime
View raw message