Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-4820

wsdl2js throws Exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: 2.7.4, 2.6.7, 2.5.10
    • Component/s: WS-* Components
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      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.

        Attachments

        1. HAN_Server.wsdl
          748 kB
          Venkatesh

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              venkatgk22 Venkatesh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: