[ 
https://issues.apache.org/jira/browse/CAMEL-12475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16460963#comment-16460963
 ] 

Willem Jiang commented on CAMEL-12475:
--------------------------------------

[~dentych] How can you access the route? I'm trying to reproduce the error.
It could be great if you can past the curl command to access the camel route.

> Undertow consumer with http4 producer results in Undertow throwing 
> NullPointerException
> ---------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12475
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12475
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.20.3, 2.21.0
>         Environment: Operating System: Windows 8
> Java version: 1.8
> Camel version: 2.21.0
>            Reporter: Dennis Tychsen
>            Assignee: Willem Jiang
>            Priority: Major
>              Labels: component
>
> I have a very simple setup of Camel (standalone).
> My route is as follows:
> {code:java}
> public class Application {
>     public static void main(String... args) throws Exception {
>         Main main = new Main();
>         main.addRouteBuilder(new RouteBuilder() {
>             @Override
>             public void configure() throws Exception {
>                 restConfiguration().port(8080);
>                 rest("/pi")
>                         .get()
>                         .route()
>                         .setExchangePattern(ExchangePattern.InOut)
>                         
> .to("https4://api.pi.delivery/v1/pi?bridgeEndpoint=true");
>             }
>         });
>         main.run();
>     }
> }{code}
>  
> When using camel-undertow for consumer and camel-http4 for producer, I get a 
> NullPointerException.
> {code:java}
> java.lang.NullPointerException: null
> at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:141) 
> ~[undertow-core-1.4.23.Final.jar:1.4.23.Final]
> at io.undertow.io.AsyncSenderImpl.send(AsyncSenderImpl.java:285) 
> ~[undertow-core-1.4.23.Final.jar:1.4.23.Final]
> at 
> org.apache.camel.component.undertow.UndertowConsumer.handleRequest(UndertowConsumer.java:142)
>  ~[camel-undertow-2.21.0.jar:2.21.0]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:336) 
> ~[undertow-core-1.4.23.Final.jar:1.4.23.Final]
> at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830) 
> ~[undertow-core-1.4.23.Final.jar:1.4.23.Final]
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>  ~[na:1.8.0_102]
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>  ~[na:1.8.0_102]
> at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_102]
> {code}
> However, if I switch out the camel-undertow dependency with camel-jetty, the 
> above route configuration works just fine.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to