axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian De Pradine <PRAD...@uk.ibm.com>
Subject Re: [Axis2] Test Failure
Date Mon, 03 Sep 2007 16:14:32 GMT
Hello Amila,

I don't believe that it is fixed yet. Now I get the following:

Running org.apache.axis2.xmlbeans.WSDL2Java1Test
Retrieving schema at 'wsat.xsd', relative to 
'file:/F:/Drivers/axis2/modules/xml
beans/test-resources/'.
03-Sep-2007 17:01:28 
org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2Entity
Resolver resolveEntity
INFO: Resolving schema with publicId [null] and systemId [wsat.xsd]
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
org.apache.axis2.wsdl.cod
egen.CodeGenerationException: java.lang.RuntimeException: Schema writing 
failed!

        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
        at 
org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.codeGenerate(WSDL2JavaSuccessTestBase.java:172)
        at 
org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.generateAndCompile(WSDL2JavaSuccessTestBase.java:157)
        at 
org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.testWSDLFile(WSDL2JavaSuccessTestBase.java:104)
        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: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:76)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.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(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: Schema writing failed!
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1371)
        at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:247)
        ... 26 more
Caused by: java.lang.RuntimeException: Schema writing failed!
        at 
org.apache.axis2.wsdl.codegen.writer.SchemaWriter.writeSchema(SchemaWriter.java:59)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1411)
        at 
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1342)
        ... 27 more
Caused by: java.io.FileNotFoundException: 
F:\Drivers\axis2\modules\xmlbeans\out_put_classes\test1\resources\file:\F:\Drivers\axis2\modules\xmlbeans\test-resourc
es\wsat.xsd (The filename, directory name, or volume label syntax is 
incorrect)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
        at 
org.apache.axis2.wsdl.codegen.writer.SchemaWriter.writeSchema(SchemaWriter.java:50)
        ... 29 more
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.609 sec 
<<< FAILURE!

Cheers

Brian DePradine
Web Services Development
IBM Hursley
External  +44 (0) 1962 816319         Internal 246319

If you can't find the time to do it right the first time, where will you 
find the time to do it again?


"Amila Suriarachchi" <amilasuriarachchi@gmail.com> wrote on 03/09/2007 
14:45:45:

> fixed. please take an update.
> 
> Amila.

> On 9/3/07, Brian De Pradine <PRADINE@uk.ibm.com> wrote: 
> 
> Hello all, 
> 
> I am trying to build the trunk and I get the following failure in 
> the XMLBeans module. Has anyone else seen this? 
> 
> Running org.apache.axis2.xmlbeans.WSDL2Java1Test 
> Retrieving schema wsdl:imported from 'wsat.xsd', relative to 'file:
> /F:/Drivers/a 
> xis2/modules/xmlbeans/test-resources/'. 
> Retrieving schema wsdl:imported from 'wsat.xsd', relative to 'file:
> /F:/Drivers/a 
> xis2/modules/xmlbeans/test-resources/'. 
> org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.
> axis2.wsdl.cod 
> egen.CodeGenerationException: java.lang.RuntimeException: WSDL writing 
failed!
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.
> generate(CodeGenerationEngine.java:265) 
>         at org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.
> codeGenerate(WSDL2JavaSuccessTestBase.java:172) 
>         at org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.
> generateAndCompile(WSDL2JavaSuccessTestBase.java:157) 
>         at org.apache.axis2.xmlbeans.WSDL2JavaSuccessTestBase.
> testWSDLFile(WSDL2JavaSuccessTestBase.java:104) 
>         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: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:76) 
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.
> execute(JUnit4TestSet.java:62) 
>         at org.apache.maven.surefire.suite.
> 
AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.
> AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.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(DelegatingMethodAccessorImpl.java:25) 
>         at java.lang.reflect.Method.invoke(Method.java:585) 
>         at org.apache.maven.surefire.booter.SurefireBooter.
> runSuitesInProcess(SurefireBooter.java:290) 
>         at org.apache.maven.surefire.booter.SurefireBooter.
> main(SurefireBooter.java:818) 
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: 
> java.lang.RuntimeException: WSDL writing failed! 
>         at org.apache.axis2.wsdl.codegen.emitter.
> AxisServiceBasedMultiLanguageEmitter.
> emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1371) 
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.
> generate(CodeGenerationEngine.java:247) 
>         ... 26 more 
> Caused by: java.lang.RuntimeException: WSDL writing failed! 
>         at org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.
> writeWSDL(WSDL11Writer.java:81) 
>         at org.apache.axis2.wsdl.codegen.emitter.
> AxisServiceBasedMultiLanguageEmitter.
> writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:1438) 
>         at org.apache.axis2.wsdl.codegen.emitter.
> AxisServiceBasedMultiLanguageEmitter.
> emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1342) 
>         ... 27 more 
> Caused by: java.lang.StringIndexOutOfBoundsException: String index 
> out of range: -1 
>         at java.lang.String.substring(String.java:1768) 
>         at org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.
> writeWSDL(WSDL11Writer.java:107) 
>         at org.apache.axis2.wsdl.codegen.writer.WSDL11Writer.
> writeWSDL(WSDL11Writer.java:78) 
>         ... 29 more 
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 6.
> 344 sec <<< FAILURE! 
> 
> Cheers
> 
> Brian DePradine
> Web Services Development
> IBM Hursley
> External  +44 (0) 1962 816319         Internal 246319
> 
> If you can't find the time to do it right the first time, where will
> you find the time to do it again?
> 
> 
> 
> 

> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with 
> number 741598. 
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 
3AU 
> 
> 
> 
> 

> 
> 
> 
> -- 
> Amila Suriarachchi,
> WSO2 Inc. 





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU






Mime
View raw message