tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Nash <n...@hursley.ibm.com>
Subject [Fwd: Commit r608213 breaks exceptions-cross-binding itest]
Date Wed, 02 Jan 2008 22:41:31 GMT
I ran the test again (standalone, not from the itest directory)
and it works OK now.  I can't understand what changed since the
earlier failure.  See below for the error message and stack trace
that I got earlier.  Any insights into this?

   Simon

-------- Original Message --------
Subject: Commit r608213 breaks exceptions-cross-binding itest
Date: Wed, 02 Jan 2008 22:16:44 +0000
From: Simon Nash <nash@hursley.ibm.com>
Organization: IBM
To: tuscany-dev@ws.apache.org

It looks like my commit r608213 has broken the exceptions-cross-binding
itest.  My apologies for this.  I am looking into this now.  My first
impression is that I need to refine the code for matching exception types
to data bindings in DefaultDataBindingExtensionPoint.introspectType() so
that the new java:exception data binding is not selected for exceptions
generated by JAXB.  I will send another update as soon as I have more news.

   Simon

- - - - - - - - errors from first run are below - - - - - - - -

[INFO] -------------------------------------------------------------------------
---
[INFO] Building Apache Tuscany SCA Cross-Binding Exceptions Integration Tests
[INFO]    task-segment: [install]
[INFO] -------------------------------------------------------------------------
---
[INFO] [dependency:copy {execution: copy}]
[INFO] Configured Artifact: javax.xml.ws:jaxws-api:2.1:jar
[INFO] Configured Artifact: javax.xml.bind:jaxb-api:2.1:jar
[INFO] Copying jaxws-api-2.1.jar to H:\tuscany59\sca\itest\exceptions-cross-bind
ing\target\endorsed\jaxws-api-2.1.jar
[INFO] Copying jaxb-api-2.1.jar to H:\tuscany59\sca\itest\exceptions-cross-bindi
ng\target\endorsed\jaxb-api-2.1.jar
[INFO] [tuscany-sdo:generate {execution: default}]
[INFO] Generating SDO interfaces from H:\tuscany59\sca\itest\exceptions-cross-bi
nding\src\main\resources\wsdl.sdo\StockExceptionTest.wsdl
 >>  Generating code
 >>  Generating packages
 >>  Generating package ScatesttoolPackageImpl
 >>  Generating Java interface stockexceptiontestservice.scatesttool.ScatesttoolF
actory
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/ScatesttoolF
actory.java
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.Scatesttool
FactoryImpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/Scatest
toolFactoryImpl.java
 >>  Generating Invalid Symbol Fault
 >>  Generating Java interface stockexceptiontestservice.scatesttool.InvalidSymbo
lFault
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/InvalidSymbo
lFault.java
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.InvalidSymb
olFaultImpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/Invalid
SymbolFaultImpl.java
 >>  Generating Market Closed Fault
 >>  Generating Java interface stockexceptiontestservice.scatesttool.MarketClosed
Fault
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/MarketClosed
Fault.java
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.MarketClose
dFaultImpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/MarketC
losedFaultImpl.java
 >>  Generating Stock Offer
 >>  Generating Java interface stockexceptiontestservice.scatesttool.StockOffer
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/StockOffer.j
ava
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.StockOfferI
mpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/StockOf
ferImpl.java
 >>  Generating stock Quote Offer
 >>  Generating Java interface stockexceptiontestservice.scatesttool.stockQuoteOf
fer
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/stockQuoteOf
fer.java
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.stockQuoteO
fferImpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/stockQu
oteOfferImpl.java
 >>  Generating stock Quote Offer Response
 >>  Generating Java interface stockexceptiontestservice.scatesttool.stockQuoteOf
ferResponse
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/stockQuoteOf
ferResponse.java
 >>  Generating Java class stockexceptiontestservice.scatesttool.impl.stockQuoteO
fferResponseImpl
 >>  Generating /TargetProject/stockexceptiontestservice/scatesttool/impl/stockQu
oteOfferResponseImpl.java
Downloading: http://people.apache.org/repo/m2-incubating-repository/woodstox/wst
x-asl/3.2.1/wstx-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository a
pache.incubator (http://people.apache.org/repo/m2-incubating-repository)
Downloading: http://snapshots.repository.codehaus.org/woodstox/wstx-asl/3.2.1/ws
tx-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository c
odehaus-snapshot (http://snapshots.repository.codehaus.org)
Downloading: http://ws.zones.apache.org/repository2/woodstox/wstx-asl/3.2.1/wstx
-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository a
pache.ws.zone (http://ws.zones.apache.org/repository2)
Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.
1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository c
entral (http://repo1.maven.org/maven2)
Downloading: http://people.apache.org/repo/m2-incubating-repository/woodstox/wst
x-asl/3.2.1/wstx-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository a
pache.incubator (http://people.apache.org/repo/m2-incubating-repository)
Downloading: http://ws.zones.apache.org/repository2/woodstox/wstx-asl/3.2.1/wstx
-asl-3.2.1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository a
pache.ws.zone (http://ws.zones.apache.org/repository2)
Downloading: http://repo1.maven.org/maven2/woodstox/wstx-asl/3.2.1/wstx-asl-3.2.
1.pom
[WARNING] Unable to get resource 'woodstox:wstx-asl:pom:3.2.1' from repository c
entral (http://repo1.maven.org/maven2)
[INFO] [tuscanywsdl2java:generate {execution: default}]
[INFO] Generating Java service interfaces from H:\tuscany59\sca\itest\exceptions
-cross-binding\src\main\resources\wsdl.sdo\StockExceptionTest.wsdl
log4j:WARN No appenders could be found for logger (org.apache.axis2.description.
AxisService).
log4j:WARN Please initialize the log4j system properly.
 >>  Generating Java class stockexceptiontestservice.scatesttool.StockExceptionTe
st
[WARNING] POM for 'com.sun.xml.stream.buffer:streambuffer:pom:0.4:compile' is in
valid. It will be ignored for artifact resolution. Reason: Failed to validate PO
M
[WARNING] POM for 'org.jvnet.staxex:stax-ex:pom:1.0:compile' is invalid. It will
  be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[WARNING]
         Artifact org.apache.tuscany.sca:tuscany-binding-sca:jar:1.1-incubating-S
NAPSHOT:runtime retains local scope 'runtime' overriding broader scope 'compile'

         given by a dependency. If this is not intended, modify or remove the loc
al scope.

[INFO] [jaxws:wsimport {execution: generate-jaxb}]
[INFO] Processing: H:\tuscany59\sca\itest\exceptions-cross-binding\src\main\reso
urces\wsdl\StockExceptionTest.wsdl
[INFO] jaxws:wsimport args: [-s, H:\tuscany59\sca\itest\exceptions-cross-binding
\target\jaxws\wsimport\java, -d, H:\tuscany59\sca\itest\exceptions-cross-binding
\target\classes, -verbose, -p, org.apache.tuscany.sca.test.exceptions.impl.jaxb,
  H:\tuscany59\sca\itest\exceptions-cross-binding\src\main\resources\wsdl\StockEx
ceptionTest.wsdl]
parsing WSDL...


generating code...
org\apache\tuscany\sca\test\exceptions\impl\jaxb\InvalidSymbolFault.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\InvalidSymbolFault_Exception.ja
va
org\apache\tuscany\sca\test\exceptions\impl\jaxb\MarketClosedFault.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\ObjectFactory.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\StockExceptionTest.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\StockExceptionTestService.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\StockOffer.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\StockQuoteOffer.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\StockQuoteOfferResponse.java
org\apache\tuscany\sca\test\exceptions\impl\jaxb\TestNotDeclaredAtSourceFault.ja
va
org\apache\tuscany\sca\test\exceptions\impl\jaxb\package-info.java
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'com.sun.xml.stream.buffer:streambuffer:pom:0.4:compile' is in
valid. It will be ignored for artifact resolution. Reason: Failed to validate PO
M
[WARNING] POM for 'org.jvnet.staxex:stax-ex:pom:1.0:compile' is invalid. It will
  be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [compiler:compile]
[INFO] Compiling 20 source files to H:\tuscany59\sca\itest\exceptions-cross-bind
ing\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'com.sun.xml.stream.buffer:streambuffer:pom:0.4:compile' is in
valid. It will be ignored for artifact resolution. Reason: Failed to validate PO
M
[WARNING] POM for 'org.jvnet.staxex:stax-ex:pom:1.0:compile' is invalid. It will
  be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to H:\tuscany59\sca\itest\exceptions-cross-bindin
g\target\test-classes
[WARNING] POM for 'com.sun.xml.stream.buffer:streambuffer:pom:0.4:compile' is in
valid. It will be ignored for artifact resolution. Reason: Failed to validate PO
M
[WARNING] POM for 'org.jvnet.staxex:stax-ex:pom:1.0:compile' is invalid. It will
  be ignored for artifact resolution. Reason: Not a v4.0.0 POM.
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\tuscany59\sca\itest\exceptions-cross-bindin
g\target\surefire-reports

-------------------------------------------------------
  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: 3.024 sec <<< FA
ILURE!
testInvalidSymbolSDOException(org.apache.tuscany.sca.test.exceptions.IntraCompos
iteTestCase)  Time elapsed: 0.24 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

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to H:\tuscany59\sca\itest\exceptions-cross-binding\target\surefire-
reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 minutes 45 seconds
[INFO] Finished at: Wed Jan 02 21:09:33 GMT 2008
[INFO] Final Memory: 36M/63M
[INFO] ------------------------------------------------------------------------



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


Mime
View raw message