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.

Reply via email to