users@jax-rpc.java.net

Re: wscompile Exception Trying to Parse Amazon WSDL

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Wed, 01 Dec 2004 09:52:06 -0800

David,

The schema contains cyclic references using "ref" attributes(for e.g:
Item-->Variations, Variations-->Item). This isn't handled well in JAXRPC
RI. Can you please file a bug for this.

Thanks,
Jitu

David Botterill wrote:
> I get the following exception trying to parse the Amazon WSDL at:
>
> http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl
>
> I'm on JDS 2 using JWSDP 1.5.
>
> Here's my XML file:
> ----------------------------------------
> <?xml version='1.0' encoding='UTF-8' ?>
> <configuration xmlns='http://java.sun.com/xml/ns/jax-rpc/ri/config'>
> <wsdl
> location='file:/home/david/rave/tests/AWSECommerceService.wsdl'
> packageName='amazon'>
> </wsdl>
> </configuration>
> -------------------------------------------------------------
>
> The exception:
>
> BTW, I get the same exception without the "searchschema".
> ---------------------------------------
> /opt/jwsdp/jwsdp-1.5/jaxrpc/bin/wscompile.sh -verbose -gen -keep
> -f:searchschema AWSECommerceService.xml
> java.lang.reflect.InvocationTargetException
> 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.commons.launcher.ChildMain.run(ChildMain.java:269)
> Caused by: java.lang.StackOverflowError
> at
> com.sun.xml.rpc.processor.schema.ComplexTypeDefinitionComponent.<init>(ComplexTypeDefinitionComponent.java:28)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.commonBuildComplexTypeDefinition(InternalSchemaBuilderBase.java:841)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildImplicitComplexContentComplexTypeDefinition(InternalSchemaBuilderBase.java:1149)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildComplexTypeDefinition(InternalSchemaBuilderBase.java:832)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.internalBuildElementDeclaration(InternalSchemaBuilderBase.java:401)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildTopLevelElementDeclaration(InternalSchemaBuilderBase.java:176)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildElementDeclaration(InternalSchemaBuilderBase.java:125)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchema.findElementDeclaration(InternalSchema.java:92)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.processElementParticle(InternalSchemaBuilderBase.java:345)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildParticle(InternalSchemaBuilderBase.java:1469)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildModelGroup(InternalSchemaBuilderBase.java:1509)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildParticle(InternalSchemaBuilderBase.java:1475)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.processRestrictionComplexTypeDefinition(InternalSchemaBuilderBase.java:1218)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildImplicitComplexContentComplexTypeDefinition(InternalSchemaBuilderBase.java:1159)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildComplexTypeDefinition(InternalSchemaBuilderBase.java:832)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.internalBuildElementDeclaration(InternalSchemaBuilderBase.java:401)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildTopLevelElementDeclaration(InternalSchemaBuilderBase.java:176)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildElementDeclaration(InternalSchemaBuilderBase.java:125)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchema.findElementDeclaration(InternalSchema.java:92)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.processElementParticle(InternalSchemaBuilderBase.java:345)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildParticle(InternalSchemaBuilderBase.java:1469)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildModelGroup(InternalSchemaBuilderBase.java:1509)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.buildParticle(InternalSchemaBuilderBase.java:1475)
>
> at
> com.sun.xml.rpc.processor.schema.InternalSchemaBuilderBase.processRestrictionComplexTypeDefinition(InternalSchemaBuilderBase.java:1218)
>
>
> Thanks!
> -David
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net