camel-netty-http as a producer intermittently fails with 'NullPointerException'

Solution Verified - Updated -

Environment

  • Red Hat JBoss Fuse 6.1

Issue

  • We're experiencing a problem where camel-netty-http seems to be failing to send a request.
  • We don't know how to systematically reproduce the problem, we haven't been able to identify a pattern that makes it fail.
  • The exception we receive is:
 org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: netty-http://http://87.203.286.193:80/Admin/29793e9c71ee?requestTimeout=30000&throwExceptionOnFailure=false&workerCount=2 due to: timer must be specified
    at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:530)
    at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:63)
    at org.apache.camel.util.ExchangeHelper.resolveEndpoint(ExchangeHelper.java:88)
    at org.apache.camel.processor.RecipientListProcessor.resolveEndpoint(RecipientListProcessor.java:223)
    at org.apache.camel.processor.RecipientListProcessor.createProcessorExchangePairs(RecipientListProcessor.java:163)
    at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:208)
    at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:158)
    at org.apache.camel.processor.RecipientList.process(RecipientList.java:117)
Caused by: java.lang.IllegalArgumentException: timer must be specified
    at org.apache.camel.util.ObjectHelper.notNull(ObjectHelper.java:297)
    at org.apache.camel.component.netty.NettyEndpoint.doStart(NettyEndpoint.java:102)
    at org.apache.camel.component.netty.http.NettyHttpEndpoint.doStart(NettyHttpEndpoint.java:179)
    at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
    at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1903)
    at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:986)
    at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:947)

Or:

~~~
org.jboss.netty.channel.ChannelPipelineException: Failed to initialize a pipeline.
at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:208)[257:org.jboss.netty:3.9.3.Final]
...
at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:166)[142:org.apache.camel.camel-core:2.12.0.redhat-611416]
at org.apache.camel.processor.RecipientList.process(RecipientList.java:119)[142:org.apache.camel.camel-core:2.12.0.redhat-611416]
Caused by: java.lang.NullPointerException: timer
at org.jboss.netty.handler.timeout.ReadTimeoutHandler.(ReadTimeoutHandler.java:115)[257:org.jboss.netty:3.9.3.Final]
at org.apache.camel.component.netty.http.HttpClientPipelineFactory.getPipeline(HttpClientPipelineFactory.java:89)[259:org.apache.camel.camel-netty-http:2.12.0.redhat-611416]
at org.jboss.netty.bootstrap.ClientBootstrap.connect(ClientBootstrap.java:206)[257:org.jboss.netty:3.9.3.Final]
~~~

Resolution

This is known issue - ENTESB-2783. It has been fixed in the Fuse 6.1 R2P3 patch.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.