Project: talendesb
Issue TESB-8361: talend/tesb/sam-rest example: works only in case log.enforceMessageIDTransfer=false in org.talend.esb.sam.agent.cfg
in case log.enforceMessageIDTransfer=true (default configuration) example failed with: {code} karaf@trun> 10:41:19,660 | WARN | qtp1728794724-61 | .cxf.phase.PhaseInterceptorChain 442 | 119 - org.apache.cxf.cxf-api - 2.7.3 | Exception in handleFault on interceptor org.apache.cxf.ws.addressing.soap.MAPCodec@2afe6d5f java.lang.ClassCastException: org.apache.cxf.message.XMLMessage cannot be cast to org.apache.cxf.binding.soap.SoapMessage at org.apache.cxf.ws.addressing.soap.MAPCodec.handleFault(MAPCodec.java:78) at org.apache.cxf.phase.PhaseInterceptorChain.unwind(PhaseInterceptorChain.java:440)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:306)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:163)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:168)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_38] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_38] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_38] at org.ops4j.pax.web.service.internal.HttpServiceStarted$2.invoke(HttpServiceStarted.java:210)[71:org.ops4j.pax.web.pax-web-runtime:1.1.4] at org.ops4j.pax.web.service.internal.$Proxy10.service(Unknown Source)[71:org.ops4j.pax.web.pax-web-runtime:1.1.4] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)[61:org.eclipse.jetty.security:7.6.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:74)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.Server.handle(Server.java:363)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[56:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[56:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[55:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[55:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[54:org.eclipse.jetty.util:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[54:org.eclipse.jetty.util:7.6.7.v20120910] at java.lang.Thread.run(Thread.java:662)[:1.6.0_38] 10:41:19,669 | WARN | qtp1728794724-61 | pse.jetty.servlet.ServletHandler 514 | 54 - org.eclipse.jetty.util - 7.6.7.v20120910 | /services/rest/orderservice/1 java.lang.reflect.UndeclaredThrowableException at org.ops4j.pax.web.service.internal.$Proxy10.service(Unknown Source)[71:org.ops4j.pax.web.pax-web-runtime:1.1.4] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:652)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:447)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)[61:org.eclipse.jetty.security:7.6.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1038)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:374)[62:org.eclipse.jetty.servlet:7.6.7.v20120910] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:972)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:74)[72:org.ops4j.pax.web.pax-web-jetty:1.1.4] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.Server.handle(Server.java:363)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:483)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:920)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:982)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)[56:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)[56:org.eclipse.jetty.http:7.6.7.v20120910] at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)[60:org.eclipse.jetty.server:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)[55:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)[55:org.eclipse.jetty.io:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)[54:org.eclipse.jetty.util:7.6.7.v20120910] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)[54:org.eclipse.jetty.util:7.6.7.v20120910] at java.lang.Thread.run(Thread.java:662)[:1.6.0_38] Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_38] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_38] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_38] at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_38] at org.ops4j.pax.web.service.internal.HttpServiceStarted$2.invoke(HttpServiceStarted.java:210)[71:org.ops4j.pax.web.pax-web-runtime:1.1.4] ... 27 more Caused by: java.lang.ClassCastException: org.apache.cxf.message.XMLMessage cannot be cast to org.apache.cxf.binding.soap.SoapMessage at org.apache.cxf.ws.addressing.soap.MAPCodec.handleFault(MAPCodec.java:78) at org.apache.cxf.phase.PhaseInterceptorChain.unwind(PhaseInterceptorChain.java:440)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:306)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[119:org.apache.cxf.cxf-api:2.7.3] at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:218)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:163)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:158)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:243)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:168)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[51:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2] at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:219)[127:org.apache.cxf.cxf-rt-transports-http:2.7.3] ... 32 more {code}
Story points: 1