axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Auvil (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-340) wsdl2java fails
Date Thu, 12 Jan 2006 15:59:21 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-340?page=comments#action_12362542 ] 

Nathaniel Auvil commented on AXIS2-340:
---------------------------------------

this also fails in Axis 0.94.  here is the stack trace i am getting:

wsdl2java.command:
   [delete] Deleting directory C:\dev\cpe-async\src\main\.work-axis2
   [delete] Deleting directory C:\dev\cpe-async\src\main\.work-axis2
     [java] Executing 'C:\java\jsdk\j2sdk1.4.2_07\jre\bin\java.exe' with arguments:
     [java] '-classpath'
     [java] 'C:\dev\cpe-jars\axis2\0.94\XmlSchema-SNAPSHOT.jar;C:\dev\cpe-jars\axis2\0.94\axis-wsdl4j-1.2.jar;C:\dev\cpe-jars\axis2\0.94\axis2-codegen-0.94.jar;C:\dev\cpe-jars\axis2\0.94\axis2-core-0.94.jar;C:\dev\cpe-jars\axis2\0.94\commons-logging-1.0.4.jar;C:\dev\cpe-jars\axis2\0.94\log4j-1.2.12.jar;C:\dev\cpe-jars\axis2\0.94\xbean-2.1.0.jar'
     [java] 'org.apache.axis2.wsdl.WSDL2Java'
     [java] '-uri'
     [java] 'C:\dev\cpe-async\src\main\xml-test\asyncConcrete.wsdl'
     [java] '-ss'
     [java] '-sd'
     [java] '-o'
     [java] 'C:\dev\cpe-async\src\main\.work-axis2'
     [java]
     [java] The ' characters around the executable and arguments are
     [java] not part of the command.
     [java] Retrieving document at 'asyncAbstract.wsdl', relative to 'file:/C:/dev/cpe-async/src/main/xml-test/'.
     [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
java.lang.NullPointerException
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:118)
     [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:31)
     [java]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
     [java] Caused by: java.lang.RuntimeException: java.lang.NullPointerException
     [java]     at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:152)
     [java]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:80)
     [java]     ... 2 more
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.ws.commons.schema.SchemaBuilder.handleDocumentation(SchemaBuilder.java:1774)
     [java]     at org.apache.ws.commons.schema.SchemaBuilder.handleAnnotation(SchemaBuilder.java:1747)
     [java]     at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:596)
     [java]     at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:102)
     [java]     at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:233)
     [java]     at org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:86)
     [java]     ... 3 more
     [java] Exception in thread "main"
     [java] Java Result: 1
  [antcall] Exiting C:\dev\cpe-async\src\main\build-axis2.xml.
      [ant] Exiting C:\dev\cpe-async\src\main\build-axis2.xml.

BUILD SUCCESSFUL
Total time: 1 second

> wsdl2java fails
> ---------------
>
>          Key: AXIS2-340
>          URL: http://issues.apache.org/jira/browse/AXIS2-340
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: Tools
>     Versions: 0.93
>  Environment: windows xp sp2, Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode),
Apache Ant version 1.6.2 compiled on July 16 2004
>     Reporter: Nathaniel Auvil
>  Attachments: xml.zip
>
> trying to navigate around another issue (AXIS2-337) i eliminated my schema imports and
inlined them in my wsdl.  Now i am getting an error under 0.93. This works under Axis 1.2.1.
> -wsdl2java:
>   [codegen] path is C:\dev\cpe-async\ant\.work-webapp
>   [codegen] Retrieving document at 'asyncAbstract.wsdl', relative to 'file:/C:/dev/cpe-async/ant/../src/xml/'.
>   [antcall] Exiting C:\dev\cpe-async\ant\build-axis2.xml.
>       [ant] Exiting C:\dev\cpe-async\ant\build-axis2.xml.
> BUILD FAILED
> C:\dev\cpe-async\ant\build.xml:54: The following error occurred while executing this
line:
> C:\dev\cpe-async\ant\build-axis2.xml:177: The following error occurred while executing
this line:
> C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> Caused by: C:\dev\cpe-async\ant\build-axis2.xml:177: The following error occurred while
executing this line:
> C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         ... 10 more
> Caused by: C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: T
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:180)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         ... 17 more
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:178)
>         ... 23 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
The 0th supplied input is not a schema document: its type is N=
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:195)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
>         ... 24 more
> Caused by: org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
a schema document: its type is N=
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:211)
>         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:324)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:171)
>         ... 25 more
> --- Nested Exception ---
> C:\dev\cpe-async\ant\build-axis2.xml:177: The following error occurred while executing
this line:
> C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
>         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:539)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> Caused by: C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: T
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:180)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         ... 17 more
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:178)
>         ... 23 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
The 0th supplied input is not a schema document: its type is N=
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:195)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
>         ... 24 more
> Caused by: org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
a schema document: its type is N=
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:211)
>         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:324)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:171)
>         ... 25 more
> --- Nested Exception ---
> C:\dev\cpe-async\ant\build-axis2.xml:40: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:180)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:178)
>         ... 23 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
The 0th supplied input is not a schema document: its type is N=
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:195)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
>         ... 24 more
> Caused by: org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
a schema document: its type is N=
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:211)
>         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:324)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:171)
>         ... 25 more
> --- Nested Exception ---
> org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
Thread main: The 0th supplied input is not a schema d
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
>         at org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:178)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: Thread main:
The 0th supplied input is not a schema document: its type is N=
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:195)
>         at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
>         ... 24 more
> Caused by: org.apache.xmlbeans.XmlException: Thread main: The 0th supplied input is not
a schema document: its type is N=
>         at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:211)
>         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:324)
>         at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:665)
>         at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:171)
>         ... 25 more
> Total time: 1 second

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message