[jboss-user] [JBossWS] - ArrayIndexOutOfBoundsException with wstools in jboss 2.0

matt_law do-not-reply at jboss.com
Wed Aug 8 10:00:02 EDT 2007


I am trying to generate client stubs from a 3rd party WSDL. I am running jboss ws 2.0.0 GA on jboss 4.0.5 with jboss ejb 3.0 rc9 installed. I invoke the wstools task through ant. Initially I got the following error 


  | Caused by: org.jboss.ws.WSException: [JAX-RPC 2.3.1.2] Unable to unwrap model group with multiple particles.
  | 	at org.jboss.ws.tools.helpers.ReturnTypeUnwrapper.unwrapModelGroup(ReturnTypeUnwrapper.java:120)
  | 	at org.jboss.ws.tools.helpers.ReturnTypeUnwrapper.unwrap(ReturnTypeUnwrapper.java:87)
  | 	at org.jboss.ws.tools.WSDLToJava.getReturnType(WSDLToJava.java:696)
  | 	at org.jboss.ws.tools.WSDLToJava.appendDocParameters(WSDLToJava.java:401)
  | 	at org.jboss.ws.tools.WSDLToJava.appendMethods(WSDLToJava.java:290)
  | 	at org.jboss.ws.tools.WSDLToJava.createSEIFile(WSDLToJava.java:650)
  | 	at org.jboss.ws.tools.WSDLToJava.createSEI(WSDLToJava.java:682)
  | 	at org.jboss.ws.tools.WSDLToJava.generateSEI(WSDLToJava.java:185)
  | 	at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:303)
  | 	at org.jboss.ws.tools.WSTools.process(WSTools.java:147)
  | 	at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
  | 	at org.jboss.ws.tools.WSTools.generate(WSTools.java:123)
  | 	at org.jboss.ws.tools.ant.wstools.execute(wstools.java:101)
  | 


I added the attribute  parameter-style="bare" to the wsdl config, and re ran wstools, and got this


  | java.lang.ArrayIndexOutOfBoundsException: 0
  | 	at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(ToolsHelper.java:313)
  | 	at org.jboss.ws.tools.WSTools.process(WSTools.java:147)
  | 	at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
  | 	at org.jboss.ws.tools.WSTools.generate(WSTools.java:123)
  | 	at org.jboss.ws.tools.ant.wstools.execute(wstools.java:101)
  | 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | 	at org.apache.tools.ant.Task.perform(Task.java:364)
  | 	at org.apache.tools.ant.Target.execute(Target.java:341)
  | 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
  | 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
  | 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
  | 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
  | 	at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
  | 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
  | 	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
  | 	at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
  | 

What can I do to fix it ? I can't change the wsdl, it's not something I've got ownership of.

I don't understand what part of the WSDL is causing the problem either.

I've read in JIRA that focus is being applied to jaxws, and this might not get fixed. Is this the case ? 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072031#4072031

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072031



More information about the jboss-user mailing list