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

WSDL2Java tool doesnt generate code for empty Input/Output (RPC/Literal)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Tooling
    • None
    • windows

    Description

      error stack is:
      ------------------------------

      generate.code:
      [echo] Generating code using wsdl2java...
      [mkdir] Created dir: D:\works\CAT\trunk\interop\dotnet\InteropPlugFest\wcf-interop\void-rpclit\b
      uild\classes
      [mkdir] Created dir: D:\works\CAT\trunk\interop\dotnet\InteropPlugFest\wcf-interop\void-rpclit\b
      uild\src
      [java] Loading FrontEnd jaxws ...
      [java] Loading DataBinding jaxb ...
      [java] wsdl2java -verbose -d D:\works\CAT\trunk\interop\dotnet\InteropPlugFest\wcf-interop\void
      -rpclit\build\src D:\works\CAT\trunk\interop\dotnet\InteropPlugFest\wcf-interop\void-rpclit/wsdl/voi
      drpclit.wsdl
      [java] wsdl2java - 2.1-incubator-SNAPSHOT
      [java]
      [java]
      [java] WSDLToJava Error : java.lang.NullPointerException
      [java]
      [java] org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
      268)
      [java] at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171)
      [java] Caused by: java.lang.NullPointerException
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.
      isValidOrdering(ParameterProcessor.java:576)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.
      process(ParameterProcessor.java:69)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProcessor.
      processMethod(OperationProcessor.java:84)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProcessor.
      process(OperationProcessor.java:58)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.PortTypeProcessor.p
      rocess(PortTypeProcessor.java:128)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.wsdlDefi
      nitionToJavaModel(WSDLToJavaProcessor.java:87)
      [java] at org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.process(
      WSDLToJavaProcessor.java:59)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
      224)
      [java] at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
      260)
      [java] ... 3 more

      Attachments

        1. voidrpclit.wsdl
          3 kB
          Jeff Yu

        Activity

          People

            maomaode maomaode
            jeff.yu Jeff Yu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: