You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Rafał Rusin (JIRA)" <ji...@apache.org> on 2010/09/07 12:10:40 UTC

[jira] Updated: (SMX4-589) NMR transport error while sending message from CXF JAXWS client to NMR.

     [ https://issues.apache.org/activemq/browse/SMX4-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rafał Rusin updated SMX4-589:
-----------------------------

    Attachment: cxf-nmr-2way.zip

Attached example. 

Steps to run it:
1. Install features cxf-nmr, camel-nmr
2. osgi:install bundle_jar, osgi:start <id>
3. copy sayHi.xml from project to input directory in smx

Exception is shown in console. 

Regards

> NMR transport error while sending message from CXF JAXWS client to NMR.
> -----------------------------------------------------------------------
>
>                 Key: SMX4-589
>                 URL: https://issues.apache.org/activemq/browse/SMX4-589
>             Project: ServiceMix 4
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>         Environment: apache-servicemix-4.2.0-fuse-01-00
>            Reporter: Rafał Rusin
>         Attachments: cxf-nmr-2way.zip
>
>
> karaf@root> java.lang.NullPointerException
> 	at org.apache.servicemix.cxf.transport.nmr.NMRConduitOutputStream.commitOutputMessage(NMRConduitOutputStream.java:87)
> 	at org.apache.servicemix.cxf.transport.nmr.NMRConduitOutputStream.doClose(NMRConduitOutputStream.java:77)
> 	at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:185)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:484)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:310)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:262)
> 	at org.apache.cxf.endpoint.ClientImpl.invokeWrapped(ClientImpl.java:297)
> 	at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:257)
> 	at org.apache.cxf.jaxws.DispatchImpl.invoke(DispatchImpl.java:195)
> 	at org.apache.hise.engine.jaxws.HISEJaxWSClient.invoke(HISEJaxWSClient.java:108)
> 	at org.apache.hise.engine.HISEEngineImpl.sendResponse(HISEEngineImpl.java:186)
> 	at org.apache.hise.runtime.Task.sendResponse(Task.java:793)
> 	at org.apache.hise.runtime.Task.complete(Task.java:784)
> 	at org.apache.hise.engine.jaxws.TaskOperationsBaseImpl.complete(TaskOperationsBaseImpl.java:666)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
> 	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
> 	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
> 	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
> 	at $Proxy114.complete(Unknown Source)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
> 	at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:60)
> 	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75)
> 	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
> 	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:109)
> 	at org.apache.cxf.transport.http_osgi.OsgiDestination.doMessage(OsgiDestination.java:79)
> 	at org.apache.cxf.transport.http_osgi.OsgiServletController.invokeDestination(OsgiServletController.java:327)
> 	at org.apache.cxf.transport.http_osgi.OsgiServletController.invoke(OsgiServletController.java:151)
> 	at org.apache.cxf.transport.http_osgi.OsgiServlet.invoke(OsgiServlet.java:53)
> 	at org.apache.cxf.transport.http_osgi.SpringOsgiServlet.invoke(SpringOsgiServlet.java:48)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
> 	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> I was using following code:
>     public static class HISEService extends Service {
> 		public HISEService(URL wsdlDocumentLocation, QName serviceName) {
> 			super(wsdlDocumentLocation, serviceName);
> 		}
>     }
> import javax.xml.ws.Dispatch;
> Dispatch<SOAPMessage> dispatch = service.createDispatch(port, SOAPMessage.class, Service.Mode.MESSAGE);
> dispatch.invoke(m);
> WSDL port was configured this way:
>   xmlns:nmr="http://cxf.servicemix.apache.org/transport/nmr"
>   <wsdl:service name="ClaimsResolvingService">
>     <wsdl:port name="ClaimsResolvingPort" binding="tns:ClaimsResolvingBinding">
>         <nmr:address location="nmr:ClaimsResolvingService"/>
>     </wsdl:port>
>   </wsdl:service>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.