axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diego <di...@tiscalinet.it>
Subject Re: [axis2 latest checkout] wsdl2java problem + stackoverflow
Date Tue, 18 Apr 2006 13:44:14 GMT
Hi Anne!

I included xbean-2.1.0.jar of the 0.94 release in the classpath and it 
seems to solve the previous exception.  The problem now is that I get 
the following stack overflow exception.

Thanks a lot!

Diego


wsdl2java-astrodas-peer:
      [java] Retrieving schema at 
'http://www.ivoa.net/xml/VOTable/v1.1', relative to 
'file:/Users/diego/Babylon/java/workspace/astrodas-test/wsdl/'.
      [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
      [java]     at 
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
      [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
      [java]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
      [java]     at 
org.apache.tools.ant.Target.performTasks(Target.java:369)
      [java]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [java]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [java]     at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [java]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [java]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [java]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [java] Caused by: 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
      [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
      [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
      [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
      [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
      [java]     ... 15 more
      [java] Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
      [java]     at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:96)
      [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
      [java]     ... 22 more
      [java] Caused by: java.lang.reflect.InvocationTargetException
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
      [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
      [java]     at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
      [java]     ... 23 more
      [java] Caused by: java.lang.StackOverflowError
      [java] --- Nested Exception ---
      [java] org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
      [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
      [java]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
      [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
      [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
      [java]     at 
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
      [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
      [java]     at 
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
      [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
      [java]     at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
      [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
      [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
      [java]     at 
org.apache.tools.ant.Target.performTasks(Target.java:369)
      [java]     at 
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
      [java]     at 
org.apache.tools.ant.Project.executeTarget(Project.java:1185)
      [java]     at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
      [java]     at 
org.apache.tools.ant.Project.executeTargets(Project.java:1068)
      [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
      [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
      [java]     at 
org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
      [java]     at 
org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
      [java] Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
      [java]     at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:96)
      [java]     at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
      [java]     ... 22 more
      [java] Caused by: java.lang.reflect.InvocationTargetException
      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
      [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java]     at java.lang.reflect.Method.invoke(Method.java:324)
      [java]     at 
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
      [java]     ... 23 more
      [java] Caused by: java.lang.StackOverflowError


Anne Thomas Manes wrote:
> Make sure the XMLbeans framework jars are in your classpath.
> 
> Anne
> 
> On 4/17/06, *Diego* <diegs@tiscalinet.it <mailto:diegs@tiscalinet.it> > 
> wrote:
> 
>     Hi everybody,
> 
>     using the latest checkout axis2 I get the following exception executing
>     the wsdl2java tool.  The same wsdl file worked fine with all the
>     previous axis and axis2 releases up to v0.94.
> 
>     Am I doing something wrong?
> 
>     I build axis2 using maven v1.1 beta2 and executing the following
>     sequence of commands:
> 
>     maven
>     maven dist-std-bin
> 
>     I don't get any error.  Is this the right way to do it?
> 
>     Thanks a lot for your help!
> 
>     Diego
> 
>     =================================================================
>                                 ant target
>     =================================================================
> 
>       <target name="wsdl2java-astrodas-peer">
>        <java classname="org.apache.axis2.wsdl.WSDL2Code "
>           classpathref="axis2.classpath">
>         <arg value="-uri" />
>         <arg value="${astrodas-peer.wsdl}" />
>         <arg value="-o" />
>         <arg value="${basedir}" />
>         <arg value="-p" />
>         <arg value="org.astrodas.ws.peer" />
>         <arg value="-d"/>
>         <arg value="xmlbeans" />
>        </java>
>       </target>
> 
>     =================================================================
>                                  exception
>     =================================================================
> 
>     wsdl2java-astrodas-peer:
>           [java] Retrieving schema at
>     'http://www.ivoa.net/xml/VOTable/v1.1', relative to
>     'file:/Users/diego/Babylon/java/workspace/astrodas-test/wsdl/'.
>           [java] org.apache.axis2.wsdl.codegen.CodeGenerationException :
>     java.lang.RuntimeException: XMLBeans framework jars not in classpath
>           [java]     at
>     org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
>           [java]     at org.apache.tools.ant.taskdefs.Java.run
>     (Java.java:710)
>           [java]     at
>     org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>           [java]     at
>     org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>           [java]     at
>     org.apache.tools.ant.UnknownElement.execute (UnknownElement.java:275)
>           [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>           [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
>           [java]     at
>     org.apache.tools.ant.Target.performTasks (Target.java:369)
>           [java]     at
>     org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>           [java]     at
>     org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>           [java]     at
>     org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>           [java]     at
>     org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>           [java]     at org.apache.tools.ant.Main.runBuild (Main.java:668)
>           [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
>           [java]     at
>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>           [java]     at
>     org.apache.tools.ant.launch.Launcher.main (Launcher.java:67)
>           [java] Caused by:
>     org.apache.axis2.wsdl.codegen.CodeGenerationException:
>     java.lang.RuntimeException: XMLBeans framework jars not in classpath
>           [java]     at
>     org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
>     (CodeGenerationEngine.java:185)
>           [java]     at
>     org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>     Method)
>           [java]     at
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>           [java]     at
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>           [java]     at java.lang.reflect.Method.invoke (Method.java:324)
>           [java]     at
>     org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
>           [java]     at
>     org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
>           [java]     ... 15 more
>           [java] Caused by: java.lang.RuntimeException: XMLBeans framework
>     jars not in classpath
>           [java]     at
>     org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:70)
>           [java]     at
>     org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
>           [java]     ... 22 more
>           [java] --- Nested Exception ---
>           [java] org.apache.axis2.wsdl.codegen.CodeGenerationException :
>     java.lang.RuntimeException: XMLBeans framework jars not in classpath
>           [java]     at
>     org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
>           [java]     at org.apache.axis2.wsdl.WSDL2Code.main
>     (WSDL2Code.java:32)
>           [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>     Method)
>           [java]     at
>     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>           [java]     at
>     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>           [java]     at java.lang.reflect.Method.invoke(Method.java:324)
>           [java]     at
>     org.apache.tools.ant.taskdefs.ExecuteJava.run (ExecuteJava.java:202)
>           [java]     at
>     org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
>           [java]     at
>     org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
>           [java]     at
>     org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
>           [java]     at
>     org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
>           [java]     at
>     org.apache.tools.ant.UnknownElement.execute(UnknownElement.java :275)
>           [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
>           [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
>           [java]     at
>     org.apache.tools.ant.Target.performTasks( Target.java:369)
>           [java]     at
>     org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
>           [java]     at
>     org.apache.tools.ant.Project.executeTarget(Project.java:1185)
>           [java]     at
>     org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
>           [java]     at
>     org.apache.tools.ant.Project.executeTargets(Project.java:1068)
>           [java]     at org.apache.tools.ant.Main.runBuild (Main.java:668)
>           [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
>           [java]     at
>     org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
>           [java]     at
>     org.apache.tools.ant.launch.Launcher.main (Launcher.java:67)
>           [java] Caused by: java.lang.RuntimeException: XMLBeans framework
>     jars not in classpath
>           [java]     at
>     org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java
>     :70)
>           [java]     at
>     org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:140)
>           [java]     ... 22 more
> 
> 
>     =================================================================
>                                 wsdl file
>     =================================================================
> 
>     <?xml version="1.0" encoding="UTF-8"?>
>     <wsdl:definitions targetNamespace=" http://astrodas.org/ws/peer"
>                              xmlns:tns="http://astrodas.org/ws/peer"
>                             xmlns:tns1=" http://astrodas.org/ws/model"
>                             xmlns:tns2="http://www.ivoa.net/xml/VOTable/v1.1"
>                             xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"
>                             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> 
>                              xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 
>       <wsdl:types>
>        <xsd:schema elementFormDefault="qualified"
>     targetNamespace="http://astrodas.org/ws/model">
>         <xsd:import namespace="http://www.w3.org/2001/XMLSchema
>     <http://www.w3.org/2001/XMLSchema>" />
>         <!--
>         <xsd:import namespace="http://www.ivoa.net/xml/VOTable/v1.1"
>     schemaLocation="xsd/votable.xsd" />
>         -->
>         <xsd:import namespace="http://www.ivoa.net/xml/VOTable/v1.1"
>     schemaLocation="http://www.ivoa.net/xml/VOTable/v1.1
>     <http://www.ivoa.net/xml/VOTable/v1.1>" />
>         <!-- insertMappingAnnotations -->
>         <xsd:complexType name="external-object">
>          <xsd:sequence>
>           <xsd:element minOccurs="0" maxOccurs="1" name="id"
>     type="xsd:integer" />
>           <xsd:element minOccurs="1" maxOccurs="1" name="external-id"
>     type="xsd:integer" />
>           <xsd:element minOccurs="1" maxOccurs="1" name="external-db"
>     type="xsd:string" />
>           <xsd:element minOccurs="1" maxOccurs="1" name="match"
>     type="xsd:boolean" />
>          </xsd:sequence>
>         </xsd:complexType>
>         <xsd:complexType name="annotation">
>          <xsd:sequence>
>           <xsd:element minOccurs="0" maxOccurs="1" name="id"
>     type="xsd:integer" />
>           <xsd:element minOccurs="0" maxOccurs="1" name="type"
>     type="xsd:string" />
>           <xsd:element minOccurs="1" maxOccurs="1" name="author"
>     type="xsd:string" />
>           <xsd:element minOccurs="0" maxOccurs="1" name="timestamp"
>     type="xsd:string" />
>          </xsd:sequence>
>         </xsd:complexType>
>         <xsd:complexType name="mapping-annotation">
>          <xsd:complexContent mixed="false">
>           <xsd:extension base="tns1:annotation">
>            <xsd:sequence>
>             <xsd:element minOccurs="1" maxOccurs="unbounded"
>     name="external-object" type="tns1:external-object" />
>             <xsd:element minOccurs="0" maxOccurs="1"         name="text"
>              type="xsd:string" />
>             <xsd:element minOccurs="0" maxOccurs="1"
>     name="reliability"     type="xsd:float" />
>             <xsd:element minOccurs="0" maxOccurs="1"         name="ra-mean"
>              type="xsd:double" />
>             <xsd:element minOccurs="0" maxOccurs="1"         name="dec-mean"
>             type="xsd:double" />
>            </xsd:sequence>
>           </xsd:extension>
>          </xsd:complexContent>
>         </xsd:complexType>
>         <xsd:element name="insertMappingAnnotations">
>          <xsd:complexType>
>           <xsd:sequence>
>            <xsd:element minOccurs="1" maxOccurs="unbounded"
>     name="mapping-annotation" type="tns1:mapping-annotation" />
>           </xsd:sequence>
>          </xsd:complexType>
>         </xsd:element>
>         <xsd:element name="insertMappingAnnotationsResponse">
>          <xsd:complexType>
>           <xsd:sequence>
>            <xsd:element minOccurs="1" maxOccurs="1" name="result"
>     type="xsd:int" />
>           </xsd:sequence>
>          </xsd:complexType>
>         </xsd:element>
>         <!-- executeGlobalMappingTableQuery -->
>         <xsd:element name="executeGlobalMappingTableQuery">
>          <xsd:complexType>
>           <xsd:sequence>
>            <xsd:element minOccurs="1" maxOccurs="1" name="query"
>     type="xsd:string" />
>           </xsd:sequence>
>          </xsd:complexType>
>         </xsd:element>
>         <xsd:element name="executeGlobalMappingTableQueryResponse">
>          <xsd:complexType>
>           <xsd:sequence>
>            <xsd:element minOccurs="1" maxOccurs="1" ref="tns2:VOTABLE" />
>           </xsd:sequence>
>          </xsd:complexType>
>         </xsd:element>
>        </xsd:schema>
>       </wsdl:types>
> 
>       <!-- insertMappingAnnotations -->
>       <wsdl:message name="insertMappingAnnotationsMessage">
>        <wsdl:part name="body" element="tns1:insertMappingAnnotations" />
>       </wsdl:message>
>       <wsdl:message name="insertMappingAnnotationsResponseMessage">
>        <wsdl:part name="body"
>     element="tns1:insertMappingAnnotationsResponse" />
>       </wsdl:message>
>       <!-- executeGlobalMappingTableQuery -->
>       <wsdl:message name="executeGlobalMappingTableQueryMessage">
>        <wsdl:part name="body"
>     element="tns1:executeGlobalMappingTableQuery" />
>       </wsdl:message>
>       <wsdl:message name="executeGlobalMappingTableQueryResponseMessage">
>        <wsdl:part name="body"
>     element="tns1:executeGlobalMappingTableQueryResponse" />
>       </wsdl:message>
> 
>       <wsdl:portType name="AstrodasPeer">
>        <wsdl:operation name="insertMappingAnnotations">
>         <wsdl:documentation>Stores an array of annotations in the
>     annotation
>     backend database</wsdl:documentation>
>         <wsdl:input message="tns:insertMappingAnnotationsMessage" />
>         <wsdl:output
>     message="tns:insertMappingAnnotationsResponseMessage" />
>        </wsdl:operation>
>        <wsdl:operation name="executeGlobalMappingTableQuery">
>         <wsdl:documentation>Executes a query on the global mapping table of
>     the p2p network of annotation</wsdl:documentation>
>         <wsdl:input message="tns:executeGlobalMappingTableQueryMessage" />
>         <wsdl:output
>     message="tns:executeGlobalMappingTableQueryResponseMessage" />
>        </wsdl:operation>
>       </wsdl:portType>
> 
>       <wsdl:binding name="AstrodasPeerBinding" type="tns:AstrodasPeer">
>        <soap:binding transport="http://schemas.xmlsoap.org/soap/http
>     <http://schemas.xmlsoap.org/soap/http>"
>     style="document" />
>        <wsdl:operation name="insertMappingAnnotations">
>         <soap:operation soapAction="insertMappingAnnotations" />
>         <wsdl:input>
>          <soap:body use="literal" />
>         </wsdl:input>
>         <wsdl:output>
>          <soap:body use="literal" />
>         </wsdl:output>
>        </wsdl:operation>
>        <wsdl:operation name="executeGlobalMappingTableQuery">
>         <soap:operation soapAction="executeGlobalMappingTableQuery" />
>         <wsdl:input>
>          <soap:body use="literal" />
>         </wsdl:input>
>         <wsdl:output>
>          <soap:body use="literal" />
>         </wsdl:output>
>        </wsdl:operation>
>       </wsdl:binding>
> 
>       <wsdl:service name="astrodas-peer">
>        <wsdl:port name="astrodas-peer" binding="tns:AstrodasPeerBinding">
>         <soap:address
>     location="http://localhost:8080/axis2/services/astrodas-peer" />
>        </wsdl:port>
>       </wsdl:service>
> 
>     </wsdl:definitions>
> 
> 

Mime
View raw message