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

itest/exceptions-cross-binding fails when run after itest/databinding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.1
    • Java-SCA-1.1
    • None
    • None
    • Windows XP

    Description

      The changes in r608213 cause itest/exceptions-cross-binding to fail when it is run after itest/databinding in the same JVM. The stack trace is attached below.

      • - - - - stack trace - - - - -

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.tuscany.sca.test.exceptions.IntraCompositeTestCase
      stockQuoteOffer 'org.apache.tuscany.sca.test.exceptions.impl.jaxb.StockOffer@134
      2545'
      stockQuoteOffer 'org.apache.tuscany.sca.test.exceptions.impl.jaxb.StockOffer@1c1
      9919'
      org.apache.tuscany.sca.databinding.TransformationException: No matching source f
      ault type is found: class org.apache.tuscany.sca.test.exceptions.impl.jaxb.Inval
      idSymbolFault_Exception java:exception Element:

      {http://impl.exceptions.test.sca .tuscany.apache.org/}

      InvalidSymbolFault_Exception Type: null
      at org.apache.tuscany.sca.core.databinding.wire.DataTransformationInterc
      eptor.invoke(DataTransformationInterceptor.java:145)
      at org.apache.tuscany.sca.core.databinding.wire.PassByValueInterceptor.i
      nvoke(PassByValueInterceptor.java:52)
      at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
      KInvocationHandler.java:249)
      at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
      KInvocationHandler.java:146)
      at $Proxy17.stockQuoteOffer(Unknown Source)
      at org.apache.tuscany.sca.test.exceptions.impl.StockTraderSDOImpl.testIn
      validSymbolSDOException(StockTraderSDOImpl.java:79)
      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.sca.implementation.java.invocation.JavaImplementat
      ionInvoker.invoke(JavaImplementationInvoker.java:105)
      at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
      KInvocationHandler.java:249)
      at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JD
      KInvocationHandler.java:146)
      at $Proxy16.testInvalidSymbolSDOException(Unknown Source)
      at org.apache.tuscany.sca.test.exceptions.IntraCompositeTestCase.testInv
      alidSymbolSDOException(IntraCompositeTestCase.java:53)
      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:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
      java:35)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
      java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
      tSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
      stractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      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:308)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
      ava:879)
      stockQuoteOffer 'org.apache.tuscany.sca.test.exceptions.impl.jaxb.StockOffer@19c
      d5f5'
      Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.924 sec <<< FA
      ILURE!
      testInvalidSymbolSDOException(org.apache.tuscany.sca.test.exceptions.IntraCompos
      iteTestCase) Time elapsed: 0.231 sec <<< FAILURE!
      junit.framework.AssertionFailedError: Expected InvalidSymbolSDOExceptionorg.apac
      he.tuscany.sca.databinding.TransformationException: No matching source fault typ
      e is found: class org.apache.tuscany.sca.test.exceptions.impl.jaxb.InvalidSymbol
      Fault_Exception java:exception Element:

      {http://impl.exceptions.test.sca.tuscany .apache.org/}

      InvalidSymbolFault_Exception Type: null
      at junit.framework.Assert.fail(Assert.java:47)
      at org.apache.tuscany.sca.test.exceptions.IntraCompositeTestCase.testInv
      alidSymbolSDOException(IntraCompositeTestCase.java:65)
      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:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
      java:35)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.
      java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTes
      tSet(AbstractDirectoryTestSuite.java:138)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Ab
      stractDirectoryTestSuite.java:125)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
      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:308)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.j
      ava:879)

      Results :

      Failed tests:
      testInvalidSymbolSDOException(org.apache.tuscany.sca.test.exceptions.IntraComp
      ositeTestCase)

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

      Attachments

        Activity

          People

            scnash Simon Nash
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: