PhaseInterceptorChain Interceptor for {service} has thrown exception, unwinding now java.lang.NullPointerException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

PhaseInterceptorChain Interceptor for {service} has thrown exception, unwinding now java.lang.NullPointerException

Muhammad Ali
Hello,

I am using windows 10, ServiceMix 7.0.1 and Java version 1.7.0_80.

If the maximumRedeliveries count in the below code is greather than 1. I am
getting below mentioned exception. 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" />
            <!-- Define that handling is needed -->
            <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?le
vel=ERROR&amp;multiline=true&amp;showBody=true&amp;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}Ti
sService#{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(DefaultConsume
r.java:107)[43:org.apache.camel.camel-core:2.16.5]
        at org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoke
r.asyncInvoke(CxfConsumer.java:171)[44:org.apache.camel.camel-cxf:2.16.5]
        at org.apache.camel.component.cxf.CxfConsumer$CxfConsumerInvoke
r.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.handleM
essage(ServiceInvokerInterceptor.java:96)[62:org.apache.cxf.cxf-core:3.1.9]
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase
InterceptorChain.java:308)[62:org.apache.cxf.cxf-core:3.1.9]
        at org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInter
ceptorChain.java:278)[62:org.apache.cxf.cxf-core:3.1.9]
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(C
hainInitiationObserver.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.doS
ervice(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-transport
s-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(Scoped
Handler.java:141)[194:org.eclipse.jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.ha
ndle(ContextHandlerCollection.java:189)[194:org.eclipse.
jetty.server:9.2.19.v20160908]
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(Handl
erWrapper.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(Queued
ThreadPool.java:635)[197:org.eclipse.jetty.util:9.2.19.v20160908]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedT
hreadPool.java:555)[197:org.eclipse.jetty.util:9.2.19.v20160908]
        at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]