axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-2262) [axis-wsdl2java] java.io.IOException: The definition of {http://www.axa.be/scheduler/MonitorResponse}ProcessType results in a loop.
Date Thu, 20 Oct 2005 08:51:45 GMT
[axis-wsdl2java] java.io.IOException: The definition of {http://www.axa.be/scheduler/MonitorResponse}ProcessType
results in a loop.
-----------------------------------------------------------------------------------------------------------------------------------

         Key: AXIS-2262
         URL: http://issues.apache.org/jira/browse/AXIS-2262
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: current (nightly)    
 Environment: Windows XP professional SP2
Ant 1.5.4
JDK 1.4.2_06
AXIS 1.3 final
    Reporter: David


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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message