SynchronousBridgingInterceptor seems to be catching NPE
-------------------------------------------------------

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


Trying the plain inner.composite sample without a fix for TUSCANY-767, gives 
the failure below. It seems like the SynchronousBridgingInterceptor may be 
having a problem. Having tried to look yet. It may be related to TUSCANY-767, 
but in case it is not.

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running innercomposite.InnerCompositeTestCase
Main thread Thread[main,5,main]
org.apache.tuscany.spi.wire.InvocationRuntimeException: java.lang.NullPointerExc
eption
        at org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
(DataBindingInteceptor.java:76)
        at org.apache.tuscany.core.wire.AbstractOutboundInvocationHandler.invoke
(AbstractOutboundInvocationHandler.java:65)
        at org.apache.tuscany.core.wire.jdk.JDKOutboundInvocationHandler.invoke(
JDKOutboundInvocationHandler.java:121)
        at $Proxy17.clientMethod(Unknown Source)
        at innercomposite.InnerCompositeTestCase.test(InnerCompositeTestCase.jav
a:39)
        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 junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        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.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.jav
a:210)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
tSet(AbstractDirectoryTestSuite.java:135)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
stractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        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.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Su
refireBooter.java:269)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
ava:788)
Caused by: java.lang.NullPointerException
        at org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
(DataBindingInteceptor.java:71)
        at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(Sy
nchronousBridgingInterceptor.java:41)
        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.core.wire.AbstractOutboundInvocationHandler.invoke
(AbstractOutboundInvocationHandler.java:65)
        at org.apache.tuscany.core.wire.jdk.JDKOutboundInvocationHandler.invoke(
JDKOutboundInvocationHandler.java:121)
        at $Proxy18.someMethod(Unknown Source)
        at innercomposite.SourceImpl.clientMethod(SourceImpl.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.wire.PojoTargetInvoker.invokeTarget(PojoTarge
tInvoker.java:63)
        at org.apache.tuscany.core.wire.PojoTargetInvoker.invoke(PojoTargetInvok
er.java:72)
        at org.apache.tuscany.core.wire.InvokerInterceptor.invoke(InvokerInterce
ptor.java:44)
        at org.apache.tuscany.core.wire.SynchronousBridgingInterceptor.invoke(Sy
nchronousBridgingInterceptor.java:41)
        at org.apache.tuscany.core.databinding.impl.DataBindingInteceptor.invoke
(DataBindingInteceptor.java:71)
        ... 30 more
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.862 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

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