NPE thrown by PassByValueInterceptor in one-way async ws sample 
(greeterws-oneway)
----------------------------------------------------------------------------------

                 Key: TUSCANY-1004
                 URL: http://issues.apache.org/jira/browse/TUSCANY-1004
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding, Java SCA Core
    Affects Versions: Java-Mx
            Reporter: Ignacio Silva-Lepe
             Fix For: Java-Mx


I'm seeing an NPE thrown by PassByValueInterceptor in the greeterws-oneway 
sample, service side. The trace is below. This happens after the invocation of 
the service returns (with a null, since it is a void return type). The target 
invoker puts the null return value in the message body and returns the message. 
The interceptor then gets the body and tries to do something with it. My 
thought then was that the supplychain sample should also fail, but it does not, 
not sure why, perhaps the interceptor is not used there. Notice that the 
databinding interceptor does check to see if the operation is non-blocking (ie, 
one-way) before it tries to do something with the result, but in that case the 
interceptor returns immediately and does not do any more transformation. Not 
sure what the correct behavior for the pass-by-value interceptor should be here.

Trace from tomcat:

INFO: Server startup in 5155 ms
Hello John
java.lang.NullPointerException
        at org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.copy(
PassByValueInterceptor.java:108)
        at org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok
e(PassByValueInterceptor.java:68)
        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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://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]

Reply via email to