Looks like this change is responsible for the build failure in Hudson
build #630. The failing test is
org.temp.doclitbare.DocLitBareWSDLTest.testVersion in module jaxbri.
The test fails with the following exception:
org.apache.axis2.AxisFault: 1 counts of IllegalAnnotationExceptions
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at
org.apache.axis2.description.AxisService.createService(AxisService.java:2503)
at
org.apache.ws.java2wsdl.Java2WSDLBuilder.generateWSDL(Java2WSDLBuilder.java:248)
at
org.temp.doclitbare.DocLitBareWSDLTest.testVersion(DocLitBareWSDLTest.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
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.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
this problem is related to the following location:
at java.lang.StackTraceElement
at public java.lang.StackTraceElement[]
java.lang.Throwable.getStackTrace()
at java.lang.Throwable
at java.lang.Exception
at java.lang.InterruptedException
at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at
org.apache.axis2.jaxbri.JaxbSchemaGenerator.createJAXBContext(JaxbSchemaGenerator.java:244)
at
org.apache.axis2.jaxbri.JaxbSchemaGenerator.generateSchemaForParameters(JaxbSchemaGenerator.java:94)
at
org.apache.axis2.jaxbri.JaxbSchemaGenerator.generateSchema(JaxbSchemaGenerator.java:66)
at
org.apache.axis2.description.AxisService.createService(AxisService.java:2501)
... 25 more
I'm going to revert the change because I need a stable build.
Andreas
On Sat, Feb 5, 2011 at 11:39, <[email protected]> wrote:
> Author: amilas
> Date: Sat Feb 5 10:39:53 2011
> New Revision: 1067421
>
> URL: http://svn.apache.org/viewvc?rev=1067421&view=rev
> Log:
> Avoding and special behavior for exception classes at the java.lang package
> such as java.lang.ClassNotFoundException
>
> Modified:
>
> axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
>
> Modified:
> axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
> URL:
> http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java?rev=1067421&r1=1067420&r2=1067421&view=diff
> ==============================================================================
> ---
> axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
> (original)
> +++
> axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java
> Sat Feb 5 10:39:53 2011
> @@ -156,10 +156,18 @@ public class TypeTable {
> public QName getSimpleSchemaTypeName(String typeName) {
> QName qName = (QName) simpleTypetoxsd.get(typeName);
> if(qName == null){
> -
> if((typeName.startsWith("java.lang")||typeName.startsWith("javax.")) &&
> - !Exception.class.getName().equals(typeName)){
> + Class typeClass = null;
> + try {
> + typeClass = Class.forName(typeName);
> + } catch (ClassNotFoundException e) {
> + // we need to do this change only with the proper classes.
> this my gives
> + // the exceptions but that should be ok.
> + }
> + if ((typeName.startsWith("java.lang") ||
> typeName.startsWith("javax.")) &&
> + !Exception.class.isAssignableFrom(typeClass)) {
> return ANY_TYPE;
> }
> +
> }
> return qName;
> }
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]