Hi, getting an NPE is bad and this needs to be fixed. But my question is that you are expecting your target service to be found and invoked with a null source in your scenario?
regards, aki 2013/2/2 Jesus Castillo <[email protected]>: > I'm getting a NPE on MessageModeInInterceptor when sending a SOAP message > with empty body. > I'm using Dispatch with SOAPMessage and the Provider interface. > > Everything is fine if the SOAPBody contains a payload but it fails when is > empty. This is the stack trace. > java.lang.NullPointerException > at > org.apache.cxf.jaxws.interceptors.MessageModeInInterceptor.handleMessage(MessageModeInInterceptor.java:71) > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) > at > org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) > at > org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:354) > at > org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:318) > at > org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72) > at > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1074) > at > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1010) > at > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) > at > org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) > at > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) > at org.eclipse.jetty.server.Server.handle(Server.java:361) > at > org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485) > at > org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937) > at > org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998) > at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856) > at > org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) > at > org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627) > at > org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51) > at > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) > at > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) > at java.lang.Thread.run(Thread.java:662) > > > and that line is: > > public void handleMessage(Message message) throws Fault { > if > (!bindingName.equals(message.getExchange().get(BindingOperationInfo.class) > .getBinding().getName())) { > > > It seems that the BindingOperationInfo is not found in the exchange. > This is the scenario: > > CXF 2.7.0 > NO wsdl. It's pure SOAP. > Soap 1.2 Binding although tested with 1.1. and is the same error. > Client side using Dispatch API with SOAPMessage. > Service side using Provider interface with SOAPMessage. > > Regards, > > Jesus. > > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/NPE-on-MessageModeInInterceptor-when-sending-empty-SOAPBody-tp5722638.html > Sent from the cxf-user mailing list archive at Nabble.com.
