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 Brian De Pradine <PR...@uk.ibm.com> on 2007/09/03 12:22:44 UTC

[Axis2] Test Failure

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






Re: [Axis2] Test Failure

Posted by Brian De Pradine <PR...@uk.ibm.com>.
Thanks, it's fixed now.

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?


Deepal jayasinghe <de...@gmail.com> wrote on 04/09/2007 12:10:02:

> Yes , I am also getting the same exception
> 
> Thanks
> Deepal
> >
> > Hello Amila,
> >
> > Sorry, but this still doesn't work. I get the same error as before, as
> > shown below. I think there may be an
> > extra slash before the drive letter, F: in this case, that probably
> > shouldn't be there.
> >
> > Running org.apache.axis2.xmlbeans.WSDL2Java1Test
> > Retrieving schema at 'wsat.xsd', relative to
> > 'file:*/F:/Drivers/axis2/modules/xml*
> > *beans/test-resources/'.*
> > 04-Sep-2007 11:38:03
> > 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-resources\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.89
> > 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" <am...@gmail.com> wrote on 04/09/2007
> > 05:58:32:
> >
> > > I am working on linux and had set the file seperator as "/"
> > > now I replace it with  File.separator. please try it now.
> >
> > > If you can't find the time to do it right the first time, where will
> > > you find the time to do it again?
> >
> > >
> > > good saying.
> > >
> > > --
> > > 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/
> >
> >
> >
> >
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 






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






Re: [Axis2] Test Failure

Posted by Deepal jayasinghe <de...@gmail.com>.
Yes , I am also getting the same exception

Thanks
Deepal
>
> Hello Amila,
>
> Sorry, but this still doesn't work. I get the same error as before, as
> shown below. I think there may be an
> extra slash before the drive letter, F: in this case, that probably
> shouldn't be there.
>
> Running org.apache.axis2.xmlbeans.WSDL2Java1Test
> Retrieving schema at 'wsat.xsd', relative to
> 'file:*/F:/Drivers/axis2/modules/xml*
> *beans/test-resources/'.*
> 04-Sep-2007 11:38:03
> 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-resources\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.89
> 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" <am...@gmail.com> wrote on 04/09/2007
> 05:58:32:
>
> > I am working on linux and had set the file seperator as "/"
> > now I replace it with  File.separator. please try it now.
>
> > If you can't find the time to do it right the first time, where will
> > you find the time to do it again?
>
> >
> > good saying.
> >
> > --
> > 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/
>
>
>
>
>
>



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


Re: [Axis2] Test Failure

Posted by Brian De Pradine <PR...@uk.ibm.com>.
Hello Amila,

Sorry, but this still doesn't work. I get the same error as before, as 
shown below. I think there may be an
extra slash before the drive letter, F: in this case, that probably 
shouldn't be there.

Running org.apache.axis2.xmlbeans.WSDL2Java1Test
Retrieving schema at 'wsat.xsd', relative to 'file:
/F:/Drivers/axis2/modules/xml
beans/test-resources/'.
04-Sep-2007 11:38:03 
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-resources\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.89 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" <am...@gmail.com> wrote on 04/09/2007 
05:58:32:

> I am working on linux and had set the file seperator as "/"
> now I replace it with  File.separator. please try it now.

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

> 
> good saying.
> 
> -- 
> 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






Re: [Axis2] Test Failure

Posted by Amila Suriarachchi <am...@gmail.com>.
I am working on linux and had set the file seperator as "/"
now I replace it with  File.separator. please try it now.

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

-- 
Amila Suriarachchi,
WSO2 Inc.

Re: [Axis2] Test Failure

Posted by Brian De Pradine <PR...@uk.ibm.com>.
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" <am...@gmail.com> wrote on 03/09/2007 
14:45:45:

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

> On 9/3/07, Brian De Pradine <PR...@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






Re: [Axis2] Test Failure

Posted by Amila Suriarachchi <am...@gmail.com>.
fixed. please take an update.

Amila.

On 9/3/07, Brian De Pradine <PR...@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.