cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Venkatesh (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CXF-4820) wsdl2js throws IndexOutOfBoundsException
Date Fri, 15 Feb 2013 22:31:13 GMT

     [ https://issues.apache.org/jira/browse/CXF-4820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Venkatesh reopened CXF-4820:
----------------------------


When i dont specify version 1.2, i get another error. 
org.apache.cxf.common.xmlschema.UnsupportedConstruct: GROUP_CHILD


wsdl2js -wv 1.1 -verbose http://172.18.90.72:8001/multispeak/services/HAN_Server?wsdl
wsdl2js - Apache CXF 2.7.3

Feb 15, 2013 2:27:36 PM org.apache.cxf.common.xmlschema.XmlSchemaUtils unsupportedConstruct
SEVERE: GROUP_CHILD

WSDLToJS Error : org.apache.cxf.common.xmlschema.UnsupportedConstruct: GROUP_CHILD

org.apache.cxf.tools.common.ToolException: org.apache.cxf.common.xmlschema.UnsupportedConstruct:
GROUP_CHILD
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:308)
	at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:154)
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:67)
	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.run(WSDLToJavaScript.java:60)
	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.main(WSDLToJavaScript.java:97)
Caused by: org.apache.cxf.common.xmlschema.UnsupportedConstruct: GROUP_CHILD
	at org.apache.cxf.common.xmlschema.XmlSchemaUtils.unsupportedConstruct(XmlSchemaUtils.java:657)
	at org.apache.cxf.common.xmlschema.XmlSchemaUtils.getObjectParticle(XmlSchemaUtils.java:455)
	at org.apache.cxf.javascript.ParticleInfo.forLocalItem(ParticleInfo.java:133)
	at org.apache.cxf.javascript.types.SchemaJavascriptBuilder.complexTypeConstructorAndAccessors(SchemaJavascriptBuilder.java:190)
	at org.apache.cxf.javascript.types.SchemaJavascriptBuilder.generateCodeForSchema(SchemaJavascriptBuilder.java:107)
	at org.apache.cxf.javascript.types.SchemaJavascriptBuilder.generateCodeForSchemaCollection(SchemaJavascriptBuilder.java:84)
	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScriptProcessor.process(WSDLToJavaScriptProcessor.java:87)
	at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:147)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300)
	... 5 more

                
> wsdl2js throws IndexOutOfBoundsException
> ----------------------------------------
>
>                 Key: CXF-4820
>                 URL: https://issues.apache.org/jira/browse/CXF-4820
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>    Affects Versions: 2.7.3
>            Reporter: Venkatesh
>            Assignee: Daniel Kulp
>             Fix For: 2.7.4, 2.6.7, 2.5.10
>
>
> wsdl2java.bat works fine for the same wsdl file & generates all the java files. 
> But i want to use it in javascript. 
> >wsdl2js.bat -wv 1.2 -verbose HAN_Server.wsdl
> wsdl2js -wv 1.2 -verbose HAN_Server.wsdl
> wsdl2js - Apache CXF 2.6.6
> WSDLToJS Error : java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> org.apache.cxf.tools.common.ToolException: java.lang.IndexOutOfBoundsException: Index:
0, Size: 0
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:308)
>         at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:154)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
>         at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:67)
>         at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.run(WSDLToJavaScript.java:60)
>         at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.main(WSDLToJavaScript.java:97)
> Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
>         at java.util.ArrayList.rangeCheck(ArrayList.java:604)
>         at java.util.ArrayList.get(ArrayList.java:382)
>         at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:133)
>         at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300)
>         ... 5 more
> >
> I get exactly the same error in 2.7.3 too. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message