This question would probably be better sent to the Camel Users mailing list, as the NPE is in Camel itself. I'm not sure if this is the cause, but "redeliveryPolicy" is not prefixed with "camel:" like the other components of your route.
Colm. On Tue, Feb 27, 2018 at 4:22 PM, m_ali1991 <[email protected]> wrote: > Hello, > > I am using windows 10, ServiceMix 7.0.1 and Java version 1.7.0_80. > > In the below code If the maximumRedeliveries count is greather than 1. I am > getting the exception *Interceptor for {ABC} has thrown exception, > unwinding now > java.lang.NullPointerExceptionbelow*. Full Stack trace is in the end. Why > I > can not set the maximumRedeliveries greather than 1. Any help would be > highly appreciated. > > <camel:onException id="onConnectException"> > <camel:exception>java.net.ConnectException</camel:exception> > <redeliveryPolicy maximumRedeliveries="2" > redeliveryDelay="1000" > logRetryAttempted="true" retryAttemptedLogLevel="DEBUG" /> > <camel:handled> > <camel:constant>true</camel:constant> > </camel:handled> > <camel:to uri="direct:commonExceptionHandler"/> > <camel:convertBodyTo type="org.w3c.dom.Document" /> > <camel:to > uri="log:onConnectException?level=ERROR&multiline= > true&showBody=true&showProperties=true" > /> > </camel:onException> > > > 2018-02-27 13:47:34,198 | WARN | qtp10571396-601 | PhaseInterceptorChain > | 62 - org.apache.cxf.cxf-core - 3.1.9 | Interceptor for > {http://nsn.com/ossbss/charge.once/wsdl/entity/Tis/wsdl/1} > TisService#{http://nsn.com/ossbss/charge.once/wsdl/entity/Tis/wsdl/1} > ExecuteCommand > has thrown exception, unwinding now > java.lang.NullPointerException > at > org.apache.camel.impl.DefaultConsumer.doneUoW( > DefaultConsumer.java:107)[43:org.apache.camel.camel-core:2.16.5] > at > org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoker. > asyncInvoke(CxfConsumer.java:171)[44:org.apache.camel.camel-cxf:2.16.5] > at > org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoker.invoke( > CxfConsumer.java:133)[44:org.apache.camel.camel-cxf:2.16.5] > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor$1. > run(ServiceInvokerInterceptor.java:59)[62:org.apache.cxf.cxf-core:3.1.9] > at > org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage( > ServiceInvokerInterceptor.java:96)[62:org.apache.cxf.cxf-core:3.1.9] > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept( > PhaseInterceptorChain.java:308)[62:org.apache.cxf.cxf-core:3.1.9] > at > org.apache.cxf.phase.PhaseInterceptorChain.resume( > PhaseInterceptorChain.java:278)[62:org.apache.cxf.cxf-core:3.1.9] > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage( > ChainInitiationObserver.java:78)[62:org.apache.cxf.cxf-core:3.1.9] > at > org.apache.cxf.transport.http.AbstractHTTPDestination.invoke( > AbstractHTTPDestination.java:252)[87:org.apache.cxf.cxf-rt- > transports-http:3.1.9] > at > org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService( > JettyHTTPDestination.java:234)[88:org.apache.cxf.cxf-rt- > transports-http-jetty:3.1.9] > at > org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle( > JettyHTTPHandler.java:76)[88:org.apache.cxf.cxf-rt- > transports-http-jetty:3.1.9] > at > org.eclipse.jetty.server.handler.ContextHandler. > doHandle(ContextHandler.java:1129)[194:org.eclipse.jetty. > server:9.2.19.v20160908] > at > org.eclipse.jetty.server.handler.ContextHandler. > doScope(ContextHandler.java:1065)[194:org.eclipse.jetty. > server:9.2.19.v20160908] > at > org.eclipse.jetty.server.handler.ScopedHandler.handle( > ScopedHandler.java:141)[194:org.eclipse.jetty.server:9.2.19.v20160908] > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle( > ContextHandlerCollection.java:189)[194:org.eclipse.jetty. > server:9.2.19.v20160908] > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle( > HandlerWrapper.java:97)[194:org.eclipse.jetty.server:9.2.19.v20160908] > at > org.eclipse.jetty.server.Server.handleAsync(Server. > java:549)[194:org.eclipse.jetty.server:9.2.19.v20160908] > at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:318)[194:org. > eclipse.jetty.server:9.2.19.v20160908] > at > org.eclipse.jetty.server.HttpChannel.run(HttpChannel. > java:262)[194:org.eclipse.jetty.server:9.2.19.v20160908] > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob( > QueuedThreadPool.java:635)[197:org.eclipse.jetty.util:9.2.19.v20160908] > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run( > QueuedThreadPool.java:555)[197:org.eclipse.jetty.util:9.2.19.v20160908] > at java.lang.Thread.run(Thread.java:745)[:1.7.0_80] > > > > -- > Sent from: http://cxf.547215.n5.nabble.com/cxf-user-f547216.html > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
