Issue Details (XML | Word | Printable)

Key: AXIS-2262
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: David
Votes: 4
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Axis

[axis-wsdl2java] java.io.IOException: The definition of {http://www.axa.be/scheduler/MonitorResponse}ProcessType results in a loop.

Created: 20/Oct/05 05:50 PM   Updated: 10/May/06 12:59 AM
Component/s: WSDL processing
Affects Version/s: current (nightly)
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Windows XP professional SP2
Ant 1.5.4
JDK 1.4.2_06
AXIS 1.3 final


 Description  « Hide
When using the WSDL2Java tool on my wsdl file I get the following Exception:

[axis-wsdl2java] java.io.IOException: The definition of {http://www.axa.be/scheduler/MonitorResponse}ProcessType results in a loop.
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.TypeEntry.updateUndefined(TypeEntry.java:343)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.UndefinedDelegate.update(UndefinedDelegate.java:73)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.UndefinedType.update(UndefinedType.java:61)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.symbolTablePut(SymbolTable.java:3621)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.createTypeFromDef(SymbolTable.java:1257)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:986)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.addTypes(SymbolTable.java:1119)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populateTypes(SymbolTable.java:909)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:705)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.lookForImports(SymbolTable.java:859)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.lookForImports(SymbolTable.java:865)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.lookForImports(SymbolTable.java:865)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.lookForImports(SymbolTable.java:865)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:710)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
[axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
[axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
[axis-wsdl2java] at java.lang.Thread.run(Thread.java:534)

With a previous nightly version of axis 1.2 it worked fine.
The Schema indeed contains some kind of recursive element, but in my opinion that is fine.

The XSD:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.axa.be/scheduler/MonitorResponse" xmlns:monitorresponse="http://www.axa.be/scheduler/MonitorResponse" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:complexType name="ProcessType">
<xs:sequence>
<xs:element name="Process" type="monitorresponse:ProcessType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="Id" type="xs:string" use="required"/>
<xs:attribute name="running" type="xs:boolean" use="required"/>
<xs:attribute name="startType" use="required">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="always"/>
<xs:enumeration value="onFail"/>
<xs:enumeration value="onSuccess"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:element name="RootProcesses">
<xs:complexType>
<xs:sequence>
<xs:element name="Process" type="monitorresponse:ProcessType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Thanks a lot


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Lars Olson added a comment - 10/May/06 12:59 AM
Duplicate of AXIS-2261?