[ https://issues.apache.org/jira/browse/TUSCANY-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465799 ]
Venkatakrishnan commented on TUSCANY-1003: ------------------------------------------ Hi Ignacio, I debugged this a bit and what I figure out is that in the Output2OutputTransformer the output wrapper is null and this causes the NPE in the Axiom databinding code. The method seems to be getGreetings and the tranformer is looking at the result which is null and creating a output wrapper for this which inturn also ends up as null. I guess Raymond will be able to throw better light on this while I continue to see if I can get better info about this. - Venkat > NPE thrown by AxisEngine.send in service side of axis2 binding for async > callbacks > ---------------------------------------------------------------------------------- > > Key: TUSCANY-1003 > URL: https://issues.apache.org/jira/browse/TUSCANY-1003 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Axis Binding > Affects Versions: Java-SCA-Mx > Reporter: Ignacio Silva-Lepe > Fix For: Java-SCA-Mx > > > I'm seeing an NPE thrown by AxisEngine.send in the service side of the axis2 > binding for async callbacks. The trace is below. My current guess is that > this may have something to do with the pass-by-value interceptor but I have > not delved to deeply into the possible cause. For now I am leaving this in > the Java SCA Axis binding component but that may change depending on the > actual reason for the exception. > org.apache.tuscany.binding.axis2.Axis2BindingRunTimeException: > java.lang.NullPoi > nterException > at > org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in > vokeTarget(Axis2ServiceCallbackTargetInvoker.java:78) > at > org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in > voke(Axis2ServiceCallbackTargetInvoker.java:90) > at > org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce > ptor.java:44) > at > org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok > e(PassByValueInterceptor.java:65) > at > org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(Sy > nchronousBridgingInterceptor.java:41) > at > org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke > (DataBindingInteceptor.java:70) > at > org.apache.tuscany.spi.wire.AbstractOutboundInvocationHandler.invoke( > AbstractOutboundInvocationHandler.java:91) > at > org.apache.tuscany.core.wire.jdk.JDKCallbackInvocationHandler.invoke( > JDKCallbackInvocationHandler.java:103) > at $Proxy21.getGreetingsCallback(Unknown Source) > at helloworld.HelloWorldImpl.getGreetings(HelloWorldImpl.java:43) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.tuscany.core.implementation.java.JavaTargetInvoker.invokeT > arget(JavaTargetInvoker.java:90) > at > org.apache.tuscany.spi.extension.TargetInvokerExtension.invoke(Target > InvokerExtension.java:67) > at > org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce > ptor.java:44) > at > org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok > e(PassByValueInterceptor.java:65) > at > org.apache.tuscany.core.wire.NonBlockingBridgingInterceptor$1.run(Non > BlockingBridgingInterceptor.java:79) > at > org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler$Jsr2 > 37Work.run(Jsr237WorkScheduler.java:212) > at > org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWo > rkManager$DecoratingWork.run(ThreadPoolWorkManager.java:206) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec > utor.java:650) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor > .java:675) > at java.lang.Thread.run(Thread.java:595) > Caused by: java.lang.NullPointerException > at > org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(Internal > OutputBuffer.java:746) > at > org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:433) > at > org.apache.coyote.http11.InternalOutputBuffer.flush(InternalOutputBuf > fer.java:304) > at > org.apache.coyote.http11.Http11Processor.action(Http11Processor.java: > 991) > at org.apache.coyote.Response.action(Response.java:182) > at > org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java: > 322) > at > org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:29 > 3) > at > org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputSt > ream.java:97) > at > sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:410) > at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) > at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) > at java.io.BufferedWriter.flush(BufferedWriter.java:236) > at > com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:184) > at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:269) > at > org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWrite > r.java:119) > at > org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeIm > pl.java:412) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingO > utputStream(CommonsHTTPTransportSender.java:275) > at > org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com > monsHTTPTransportSender.java:209) > at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:670) > at > org.apache.tuscany.binding.axis2.Axis2ServiceCallbackTargetInvoker.in > vokeTarget(Axis2ServiceCallbackTargetInvoker.java:70) > ... 23 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]