[
http://jira.jboss.com/jira/browse/JBWS-1231?page=all ]
Thomas Diesler updated JBWS-1231:
---------------------------------
Fix Version/s: jbossws-1.0.6
(was: jbossws-1.0.5)
If this issue has been rescheduled to 1.0.6 it is because we currently focus 80% of our
effort on JAXWS. If need a particular feature or bugfix to be included in 1.0.5 you are
welcome to get involved and contribute.
wstools/java-wsdl does not handle recursive types
-------------------------------------------------
Key: JBWS-1231
URL:
http://jira.jboss.com/jira/browse/JBWS-1231
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: wstools
Affects Versions: jbossws-1.0.3
Reporter: Ole Matzura
Fix For: jbossws-1.0.6
Hello,
I have the following fault class (generated from an existing wsdl with wstool/wsdl-java)
package v1.publishmessage.integrations.bis_bonnier_se;
public class BisFault extends Exception {
private java.lang.String code;
private java.lang.String message;
private v1.publishmessage.integrations.bis_bonnier_se.BisFault wrappedFault;
public BisFault(java.lang.String code, java.lang.String message,
v1.publishmessage.integrations.bis_bonnier_se.BisFault wrappedFault) {
super(code);
this.code = code;
this.message = message;
this.wrappedFault = wrappedFault;
}
public java.lang.String getCode() {
return code;
}
public java.lang.String getMessage() {
return message;
}
public v1.publishmessage.integrations.bis_bonnier_se.BisFault getWrappedFault() {
return wrappedFault;
}
}
as you can see, it contains a member of its own type (getWrappedFault..).. when I now
try to publish a service using this fault with wstools/java-wsdl I get an error:
Exception in thread "main" java.lang.StackOverflowError
at java.util.TreeMap.access$300(TreeMap.java:81)
at java.util.TreeMap$PrivateEntryIterator.<init>(TreeMap.java:1015)
at java.util.TreeMap$KeyIterator.<init>(TreeMap.java:1056)
at java.util.TreeMap$KeyIterator.<init>(TreeMap.java:1056)
at java.util.TreeMap$1.iterator(TreeMap.java:580)
at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateExceptionParticles(SchemaTypeCreator.java:834)
at
org.jboss.ws.tools.schema.SchemaTypeCreator.getComplexTypeForJavaException(SchemaTypeCreator.java:712)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:269)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:132)
at org.jboss.ws.tools.schema.SchemaTypeCreator.generateType(SchemaTypeCreator.java:127)
at
org.jboss.ws.tools.schema.SchemaTypeCreator.createFieldParticle(SchemaTypeCreator.java:607)
at
org.jboss.ws.tools.schema.SchemaTypeCreator.generateExceptionParticles(SchemaTypeCreator.java:838)
at
org.jboss.ws.tools.schema.SchemaTypeCreator.getComplexTypeForJavaException(SchemaTypeCreator.java:712)
at org.jboss.ws.tools.schema.SchemaTypeCreator.getType(SchemaTypeCreator.java:269)
etc...
seems there is a problem with this kind of recursive structure.. any workaround
available?
regards!
/Ole
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira