Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-768

SynchronousBridgingInterceptor seems to be catching NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Java-SCA-M2
    • SCA Java Runtime
    • None

    Description

      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

      Attachments

        Activity

          People

            isilval Ignacio Silva-Lepe
            isilval Ignacio Silva-Lepe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: