You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Sagara Gunathunga <sa...@gmail.com> on 2011/08/22 16:17:53 UTC

Re: Jenkins build became unstable: Axis2 » Apache Axis2 - Java2WSDL #935

I noticed following error trace on build server due to a new test case
introduced by me but I can't recreate this issue locally ( Ubuntu
11.04 /64 bit - JDk 1.6 ) I will try to test this on JDK 1.5.

BTW any one have any clue ?

Error Message

Generated directory does not exists  expected:<true> but was:<false>

Stacktrace

junit.framework.AssertionFailedError: Generated directory does not
exists  expected:<true> but was:<false>
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.failNotEquals(Assert.java:277)
	at junit.framework.Assert.assertEquals(Assert.java:64)
	at junit.framework.Assert.assertEquals(Assert.java:143)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.verifyGeneration(JAXWS2WSDLCodegenEngineTest.java:98)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:81)
	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)

Standard Output

error: Could not create declaration for annotation type javax.jws.WebMethod
error: Could not create declaration for annotation type javax.jws.WebService
Note: 	ap round: 1
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.annotation.IncompleteAnnotationException:
javax.jws.WebMethod missing element exclude
	at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
	at $Proxy4.exclude(Unknown Source)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
	at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
	at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
	at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
	at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
	at com.sun.tools.apt.main.Main.compile(Main.java:1075)
	at com.sun.tools.apt.main.Main.compile(Main.java:938)
	at com.sun.tools.apt.Main.processing(Main.java:95)
	at com.sun.tools.apt.Main.process(Main.java:85)
	at com.sun.tools.apt.Main.process(Main.java:67)
	at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
	at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithMixOptions(JAXWS2WSDLCodegenEngineTest.java:69)
	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)
error: Could not create declaration for annotation type javax.jws.WebMethod
error: Could not create declaration for annotation type javax.jws.WebService
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.annotation.IncompleteAnnotationException:
javax.jws.WebMethod missing element exclude
	at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
	at $Proxy4.exclude(Unknown Source)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
	at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
	at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
	at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
	at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
	at com.sun.tools.apt.main.Main.compile(Main.java:1075)
	at com.sun.tools.apt.main.Main.compile(Main.java:938)
	at com.sun.tools.apt.Main.processing(Main.java:95)
	at com.sun.tools.apt.Main.process(Main.java:85)
	at com.sun.tools.apt.Main.process(Main.java:67)
	at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
	at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
	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)
error: Could not create declaration for annotation type javax.jws.WebMethod
error: Could not create declaration for annotation type javax.jws.WebService
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.annotation.IncompleteAnnotationException:
javax.jws.WebMethod missing element exclude
	at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
	at $Proxy4.exclude(Unknown Source)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
	at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
	at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
	at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
	at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
	at com.sun.tools.apt.main.Main.compile(Main.java:1075)
	at com.sun.tools.apt.main.Main.compile(Main.java:938)
	at com.sun.tools.apt.Main.processing(Main.java:95)
	at com.sun.tools.apt.Main.process(Main.java:85)
	at com.sun.tools.apt.Main.process(Main.java:67)
	at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
	at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithJAXWSOptions(JAXWS2WSDLCodegenEngineTest.java:91)
	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)

Standard Error

error: Could not create declaration for annotation type javax.jws.WebMethod
error: Could not create declaration for annotation type javax.jws.WebService
Problem encountered during annotation processing;
see stacktrace below for more information.
java.lang.annotation.IncompleteAnnotationException:
javax.jws.WebMethod missing element exclude
	at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
	at $Proxy4.exclude(Unknown Source)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
	at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
	at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
	at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
	at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
	at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
	at com.sun.tools.apt.main.Main.compile(Main.java:1075)
	at com.sun.tools.apt.main.Main.compile(Main.java:938)
	at com.sun.tools.apt.Main.processing(Main.java:95)
	at com.sun.tools.apt.Main.process(Main.java:85)
	at com.sun.tools.apt.Main.process(Main.java:67)
	at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
	at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
	at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
	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)

Thanks !

On Mon, Aug 22, 2011 at 7:22 PM, Apache Jenkins Server
<je...@builds.apache.org> wrote:
> See <https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-java2wsdl/935/changes>
>
>
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

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


Re: Jenkins build became unstable: Axis2 » Apache Axis2 - Java2WSDL #935

Posted by Sagara Gunathunga <sa...@gmail.com>.
thete
On Mon, Aug 22, 2011 at 8:10 PM, Andreas Veithen
<an...@gmail.com> wrote:
> My guess is that you have developed the feature against an old JAX-WS
> version (2.1), while Axis2 uses JAX-WS 2.2, and that by coincidence
> this works on Java 1.6 because the JRE is shipped with the same old
> version...

Andreas,

Axis2 ships geronimo-jaxws_2.2_spec-1.0 but I noticed
jaxws-tools-2.1.3.jar also there that's why I thought it's better to
have same set of Sun dependencies also this feature does not related
Axis2 JAX-WS runtime at all.

Further initially i tested with 2.2.5 of jax-ws-tools and jax-ws-rt
but got following exception may be it's required to change versions of
some other dependencies too.

testGenerateWithMixOptions(org.apache.axis2.wsdl.codegen.jaxws.JAXWSCodeGenerationEngineTest)
 Time elapsed: 0.079 sec  <<< ERROR!
java.lang.IllegalAccessError: tried to access field
com.sun.xml.bind.marshaller.SAX2DOMEx.nodeStack from class
com.sun.tools.ws.wsdl.parser.DOMBuilder
	at com.sun.tools.ws.wsdl.parser.DOMBuilder.comment(DOMBuilder.java:136)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.comment(AbstractSAXParser.java:667)
	at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.comment(XMLDTDValidator.java:978)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:479)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
	at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:221)
	at com.sun.tools.ws.wsdl.parser.DOMForest.parse(DOMForest.java:155)
	at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:109)
	at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:188)
	at org.apache.axis2.wsdl.codegen.jaxws.JAXWSCodeGenerationEngine.generate(JAXWSCodeGenerationEngine.java:99)
	at org.apache.axis2.wsdl.codegen.jaxws.JAXWSCodeGenerationEngineTest.testGenerateWithMixOptions(JAXWSCodeGenerationEngineTest.java:63)
	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:597)
	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:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997


BTW I will try to fix this again.

Thanks !


>
> Andreas
>
> On Mon, Aug 22, 2011 at 16:17, Sagara Gunathunga
> <sa...@gmail.com> wrote:
>> I noticed following error trace on build server due to a new test case
>> introduced by me but I can't recreate this issue locally ( Ubuntu
>> 11.04 /64 bit - JDk 1.6 ) I will try to test this on JDK 1.5.
>>
>> BTW any one have any clue ?
>>
>> Error Message
>>
>> Generated directory does not exists  expected:<true> but was:<false>
>>
>> Stacktrace
>>
>> junit.framework.AssertionFailedError: Generated directory does not
>> exists  expected:<true> but was:<false>
>>        at junit.framework.Assert.fail(Assert.java:47)
>>        at junit.framework.Assert.failNotEquals(Assert.java:277)
>>        at junit.framework.Assert.assertEquals(Assert.java:64)
>>        at junit.framework.Assert.assertEquals(Assert.java:143)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.verifyGeneration(JAXWS2WSDLCodegenEngineTest.java:98)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:81)
>>        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)
>>
>> Standard Output
>>
>> error: Could not create declaration for annotation type javax.jws.WebMethod
>> error: Could not create declaration for annotation type javax.jws.WebService
>> Note:   ap round: 1
>> Problem encountered during annotation processing;
>> see stacktrace below for more information.
>> java.lang.annotation.IncompleteAnnotationException:
>> javax.jws.WebMethod missing element exclude
>>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>>        at $Proxy4.exclude(Unknown Source)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>>        at com.sun.tools.apt.Main.processing(Main.java:95)
>>        at com.sun.tools.apt.Main.process(Main.java:85)
>>        at com.sun.tools.apt.Main.process(Main.java:67)
>>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithMixOptions(JAXWS2WSDLCodegenEngineTest.java:69)
>>        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)
>> error: Could not create declaration for annotation type javax.jws.WebMethod
>> error: Could not create declaration for annotation type javax.jws.WebService
>> Problem encountered during annotation processing;
>> see stacktrace below for more information.
>> java.lang.annotation.IncompleteAnnotationException:
>> javax.jws.WebMethod missing element exclude
>>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>>        at $Proxy4.exclude(Unknown Source)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>>        at com.sun.tools.apt.Main.processing(Main.java:95)
>>        at com.sun.tools.apt.Main.process(Main.java:85)
>>        at com.sun.tools.apt.Main.process(Main.java:67)
>>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>>        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)
>> error: Could not create declaration for annotation type javax.jws.WebMethod
>> error: Could not create declaration for annotation type javax.jws.WebService
>> Problem encountered during annotation processing;
>> see stacktrace below for more information.
>> java.lang.annotation.IncompleteAnnotationException:
>> javax.jws.WebMethod missing element exclude
>>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>>        at $Proxy4.exclude(Unknown Source)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>>        at com.sun.tools.apt.Main.processing(Main.java:95)
>>        at com.sun.tools.apt.Main.process(Main.java:85)
>>        at com.sun.tools.apt.Main.process(Main.java:67)
>>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithJAXWSOptions(JAXWS2WSDLCodegenEngineTest.java:91)
>>        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)
>>
>> Standard Error
>>
>> error: Could not create declaration for annotation type javax.jws.WebMethod
>> error: Could not create declaration for annotation type javax.jws.WebService
>> Problem encountered during annotation processing;
>> see stacktrace below for more information.
>> java.lang.annotation.IncompleteAnnotationException:
>> javax.jws.WebMethod missing element exclude
>>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>>        at $Proxy4.exclude(Unknown Source)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>>        at com.sun.tools.apt.Main.processing(Main.java:95)
>>        at com.sun.tools.apt.Main.process(Main.java:85)
>>        at com.sun.tools.apt.Main.process(Main.java:67)
>>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>>        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)
>>
>> Thanks !
>>
>> On Mon, Aug 22, 2011 at 7:22 PM, Apache Jenkins Server
>> <je...@builds.apache.org> wrote:
>>> See <https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-java2wsdl/935/changes>
>>>
>>>
>>>
>>
>>
>>
>> --
>> Sagara Gunathunga
>>
>> Blog      - http://ssagara.blogspot.com
>> Web      - http://people.apache.org/~sagara/
>> LinkedIn - http://www.linkedin.com/in/ssagara
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

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


Re: Jenkins build became unstable: Axis2 » Apache Axis2 - Java2WSDL #935

Posted by Andreas Veithen <an...@gmail.com>.
My guess is that you have developed the feature against an old JAX-WS
version (2.1), while Axis2 uses JAX-WS 2.2, and that by coincidence
this works on Java 1.6 because the JRE is shipped with the same old
version...

Andreas

On Mon, Aug 22, 2011 at 16:17, Sagara Gunathunga
<sa...@gmail.com> wrote:
> I noticed following error trace on build server due to a new test case
> introduced by me but I can't recreate this issue locally ( Ubuntu
> 11.04 /64 bit - JDk 1.6 ) I will try to test this on JDK 1.5.
>
> BTW any one have any clue ?
>
> Error Message
>
> Generated directory does not exists  expected:<true> but was:<false>
>
> Stacktrace
>
> junit.framework.AssertionFailedError: Generated directory does not
> exists  expected:<true> but was:<false>
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.failNotEquals(Assert.java:277)
>        at junit.framework.Assert.assertEquals(Assert.java:64)
>        at junit.framework.Assert.assertEquals(Assert.java:143)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.verifyGeneration(JAXWS2WSDLCodegenEngineTest.java:98)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:81)
>        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)
>
> Standard Output
>
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Note:   ap round: 1
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithMixOptions(JAXWS2WSDLCodegenEngineTest.java:69)
>        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)
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>        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)
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithJAXWSOptions(JAXWS2WSDLCodegenEngineTest.java:91)
>        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)
>
> Standard Error
>
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>        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)
>
> Thanks !
>
> On Mon, Aug 22, 2011 at 7:22 PM, Apache Jenkins Server
> <je...@builds.apache.org> wrote:
>> See <https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-java2wsdl/935/changes>
>>
>>
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog      - http://ssagara.blogspot.com
> Web      - http://people.apache.org/~sagara/
> LinkedIn - http://www.linkedin.com/in/ssagara
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-dev-help@axis.apache.org
>
>

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


Re: Jenkins build became unstable: Axis2 » Apache Axis2 - Java2WSDL #935

Posted by Sagara Gunathunga <sa...@gmail.com>.
I just changed JDK version to 1.6 temporally on Jenkins and got
expected results. I will try to fix this locally using JDK 1.5.

Thanks !

On Mon, Aug 22, 2011 at 7:47 PM, Sagara Gunathunga
<sa...@gmail.com> wrote:
> I noticed following error trace on build server due to a new test case
> introduced by me but I can't recreate this issue locally ( Ubuntu
> 11.04 /64 bit - JDk 1.6 ) I will try to test this on JDK 1.5.
>
> BTW any one have any clue ?
>
> Error Message
>
> Generated directory does not exists  expected:<true> but was:<false>
>
> Stacktrace
>
> junit.framework.AssertionFailedError: Generated directory does not
> exists  expected:<true> but was:<false>
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.failNotEquals(Assert.java:277)
>        at junit.framework.Assert.assertEquals(Assert.java:64)
>        at junit.framework.Assert.assertEquals(Assert.java:143)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.verifyGeneration(JAXWS2WSDLCodegenEngineTest.java:98)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:81)
>        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)
>
> Standard Output
>
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Note:   ap round: 1
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithMixOptions(JAXWS2WSDLCodegenEngineTest.java:69)
>        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)
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>        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)
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithJAXWSOptions(JAXWS2WSDLCodegenEngineTest.java:91)
>        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)
>
> Standard Error
>
> error: Could not create declaration for annotation type javax.jws.WebMethod
> error: Could not create declaration for annotation type javax.jws.WebService
> Problem encountered during annotation processing;
> see stacktrace below for more information.
> java.lang.annotation.IncompleteAnnotationException:
> javax.jws.WebMethod missing element exclude
>        at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:53)
>        at $Proxy4.exclude(Unknown Source)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:343)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:319)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:123)
>        at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:326)
>        at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:267)
>        at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
>        at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
>        at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
>        at com.sun.tools.apt.main.Main.compile(Main.java:1075)
>        at com.sun.tools.apt.main.Main.compile(Main.java:938)
>        at com.sun.tools.apt.Main.processing(Main.java:95)
>        at com.sun.tools.apt.Main.process(Main.java:85)
>        at com.sun.tools.apt.Main.process(Main.java:67)
>        at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:194)
>        at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:119)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngine.generate(JAXWS2WSDLCodegenEngine.java:81)
>        at org.apache.ws.java2wsdl.jaxws.JAXWS2WSDLCodegenEngineTest.testGenerateWithAxisOptions(JAXWS2WSDLCodegenEngineTest.java:80)
>        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)
>
> Thanks !
>
> On Mon, Aug 22, 2011 at 7:22 PM, Apache Jenkins Server
> <je...@builds.apache.org> wrote:
>> See <https://builds.apache.org/job/Axis2/org.apache.axis2$axis2-java2wsdl/935/changes>
>>
>>
>>
>
>
>
> --
> Sagara Gunathunga
>
> Blog      - http://ssagara.blogspot.com
> Web      - http://people.apache.org/~sagara/
> LinkedIn - http://www.linkedin.com/in/ssagara
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

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