File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes StackOverFlowError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "StackOverFlowError" Watch "StackOverFlowError" New topic
Author

StackOverFlowError

Altaf Khatri
Greenhorn

Joined: Jul 11, 2006
Posts: 2
Hi,
I am trying to consume a webservice. I am using GLUE for it. I am getting java.lang.StackOverFlowError. Can any one point out what is the problem?
The error is:
at electric.xml.io.complex.ComplexType.addDependencies(Unknown Source
)
at electric.xml.io.Type.addAllDependencies(Unknown Source)
at electric.xml.io.Type.addAllDependencies(Unknown Source)
at electric.xml.io.Mapping.newType(Unknown Source)
at electric.xml.io.mapping.MappingTypeFactory.newType(Unknown Source)
at electric.xml.io.TypeFactories.newType(Unknown Source)

at electric.xml.io.Namespaces.getTypeWithQName(Unknown Source)
at electric.xml.io.Namespaces.getTypeWithQName(Unknown Source)
at electric.xml.io.schema.SchemaEntry.getType(Unknown Source)
at electric.xml.io.schema.SchemaElement.getType(Unknown Source)
at electric.xml.io.schema.SchemaEntry.addDependencies(Unknown Source)
at electric.xml.io.model.All.addDependencies(Unknown Source)
at electric.xml.io.complex.ComplexType.addDependencies(Unknown Source
)

at electric.xml.io.Type.addAllDependencies(Unknown Source)
at electric.xml.io.Type.addAllDependencies(Unknown Source)
at electric.xml.io.Mapping.newType(Unknown Source)
at electric.xml.io.mapping.MappingTypeFactory.newType(Unknown Source)
at electric.xml.io.TypeFactories.newType(Unknown Source)
at electric.xml.io.Namespaces.getTypeWithQName(Unknown Source)
at electric.xml.io.Namespaces.getTypeWithQName(Unknown Source)
at electric.xml.io.schema.SchemaEntry.getType(Unknown Source)
at electric.xml.io.schema.SchemaElement.getType(Unknown Source)
at electric.xml.io.schema.SchemaEntry.addDependencies(Unknown Source)
at electric.xml.io.model.All.addDependencies(Unknown Source)
at electric.xml.io.complex.ComplexType.addDependencies(Unknown Source
)


The one marked in bold is iterated.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
How are you creating the client code?
What types are declared in the WSDL for the service?
Bill
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Welcome to JavaRanch Sunny Java,

You may have missed the JavaRanch official policy on registered names. While the display name can be fictitious, we ask that it is not obviously fictitious. You can adjust your display name here. Your cooperation is appreciated.
Altaf Khatri
Greenhorn

Joined: Jul 11, 2006
Posts: 2
Hi,
I am using wsdl2java to create client side object. The objects defined are like name which contains first name, middle name, last name as string.

Is this error because I am missing out on some properties file at the appropriate place.

Regards,
A K
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
A K,

Please update your display name to comply with the JavaRanch official policy on registered names. While initials are permitted for first names, some plausible (i.e. not obviously fictitious) full last name is required. Please also be aware that your account will be locked if your display name does not comply with the policy after your third reminder.

Your cooperation is appreciated.
praveen mpillai
Greenhorn

Joined: Jun 12, 2008
Posts: 2
Hi I am also getting a StackOverflowError when trying to bind a wsdl using GLUE. I am getting the same error as mentioned in the original thread. Please help. Appreciate the earliest reply
praveen mpillai
Greenhorn

Joined: Jun 12, 2008
Posts: 2
Hi I got the solution. There is a map file getting generated by GLUE as a n output of wsdl2java. When GLUE generates that map file from an Axis wsdl published, It generates the OSA type Set entry in a wrong way so that it leads to a recursion. I have edited the map file to correct thet entry(may be it is a work around) and StackOverFlowError disappeared.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: StackOverFlowError
 
Similar Threads
display CGM images iingn web browser with out using any viewer in java
How to create web service in RAD7
java.lang.ClassCastException:
Why NullPointerException?
Problem creating WebServices on RAD