You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pannetier Alain <Al...@atosorigin.com> on 2006/04/16 23:13:33 UTC
StackOverflowError using WSDL2Java 0.95 with Amazon's WSDL
Dear all,
Thanx for bringing Axis2 to the OSS Community.
I thought I'd port my Axis1 client to Axis2 and started with generating
the domain classes with WSDL2Java.
The WSDL is available for all to dl at
http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.ws
dl
<http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.w
sdl>
When I use WSDL2Java to generate the java client domain classes, I get
this exception.
C:\Japps\axis2_095\bin>WSDL2Java -uri this.wsdl -o mydir -d xmlbeans -sn
AWSECommerceService
Using AXIS2_HOME: C:\Japps\axis2_095
Using JAVA_HOME: C:\JDK\jdk15004
Exception in thread "main" java.lang.StackOverflowError
at java.util.HashMap$ValueIterator.<init>(HashMap.java:815)
at java.util.HashMap$ValueIterator.<init>(HashMap.java:815)
at java.util.HashMap.newValueIterator(HashMap.java:838)
at java.util.HashMap$Values.iterator(HashMap.java:901)
at
java.util.AbstractCollection.toArray(AbstractCollection.java:173)
at
org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getElementProperties(Sche
maTypeImpl.java:778)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:299)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:312)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:312)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:312)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:312)
at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase6
4Types(XMLBeansExtension.java:312)
repeated zillions of times...
I added the xmlbeans flag because I first got the Unsupported content
exception and read the mailing list archive post from dims that suggests
to use this flag. I accept that I might be doing sth stupid but still
there is an infinite loop pb.
Regards,
Alain
Re: StackOverflowError using WSDL2Java 0.95 with Amazon's WSDL
Posted by Davanum Srinivas <da...@gmail.com>.
Alain,
Please log a bug report as well.
thanks,
dims
On 4/16/06, Pannetier Alain <Al...@atosorigin.com> wrote:
>
>
> Dear all,
>
> Thanx for bringing Axis2 to the OSS Community.
>
> I thought I'd port my Axis1 client to Axis2 and started with generating the
> domain classes with WSDL2Java.
>
> The WSDL is available for all to dl at
>
> http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
>
> When I use WSDL2Java to generate the java client domain classes, I get this
> exception.
>
> C:\Japps\axis2_095\bin>WSDL2Java -uri this.wsdl -o mydir -d
> xmlbeans -sn AWSECommerceService
>
> Using AXIS2_HOME: C:\Japps\axis2_095
> Using JAVA_HOME: C:\JDK\jdk15004
> Exception in thread "main" java.lang.StackOverflowError
> at java.util.HashMap$ValueIterator.<init>(HashMap.java:815)
> at java.util.HashMap$ValueIterator.<init>(HashMap.java:815)
> at
> java.util.HashMap.newValueIterator(HashMap.java:838)
> at
> java.util.HashMap$Values.iterator(HashMap.java:901)
> at
> java.util.AbstractCollection.toArray(AbstractCollection.java:173)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getElementProperties(SchemaTypeImpl.java:778)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:299)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:312)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:312)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:312)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:312)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.findPlainBase64Types(XMLBeansExtension.java:312)
>
> repeated zillions of times...
>
>
> I added the xmlbeans flag because I first got the Unsupported content
> exception and read the mailing list archive post from dims that suggests to
> use this flag. I accept that I might be doing sth stupid but still there is
> an infinite loop pb.
>
> Regards,
>
>
> Alain
--
Davanum Srinivas : http://wso2.com/blogs/