You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ignacio Silva-Lepe (JIRA)" <tu...@ws.apache.org> on 2007/01/16 21:10:27 UTC

[jira] Resolved: (TUSCANY-1004) NPE thrown by PassByValueInterceptor in one-way async ws sample (greeterws-oneway)

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

Ignacio Silva-Lepe resolved TUSCANY-1004.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Java-Mx)
                   Java-M3

r496829 seems to have fixed both problems at the client and at the server sides

> NPE thrown by PassByValueInterceptor in one-way async ws sample (greeterws-oneway)
> ----------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1004
>                 URL: https://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-M3
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org