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

Ignacio Silva-Lepe commented on TUSCANY-1004:
---------------------------------------------

I am now seeing a related NPE thrown by AxiomDataBinding in this case, called 
by PassByValueInterceptor at about the same spot as the previous NPE, i.e., 
after the invocation of the service returns null. This happens in the client 
side of the sample though.

Running greeter.GreeterWSOneWayClientTestCase
log4j:WARN No appenders could be found for logger (org.apache.axiom.om.util.StAX
Utils).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
        at org.apache.tuscany.databinding.axiom.AxiomDataBinding.copy(AxiomDataB
inding.java:56)
        at org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.copy(
PassByValueInterceptor.java:105)
        at org.apache.tuscany.core.databinding.impl.PassByValueInterceptor.invok
e(PassByValueInterceptor.java:71)
        at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(Sy
nchronousBridgingInterceptor.java:41)
        at org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
(DataBindingInteceptor.java:71)
        at org.apache.tuscany.spi.wire.AbstractOutboundInvocationHandler.invoke(
AbstractOutboundInvocationHandler.java:91)
        at org.apache.tuscany.core.wire.jdk.JDKOutboundInvocationHandler.invoke(
JDKOutboundInvocationHandler.java:166)
        at $Proxy25.greet(Unknown Source)
        at greeter.GreeterImpl.greet(GreeterImpl.java:35)
        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:93)
        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.spi.wire.AbstractInboundInvocationHandler.invoke(A
bstractInboundInvocationHandler.java:45)
        at org.apache.tuscany.core.wire.jdk.JDKInboundInvocationHandler.invoke(J
DKInboundInvocationHandler.java:122)
        at $Proxy24.greet(Unknown Source)
        at greeter.GreeterWSOneWayClientTestCase.testWSClient(GreeterWSOneWayCli
entTestCase.java:47)

> 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-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: 
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]

Reply via email to