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

java2wsdl can't handle interface without package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.0
    • Tooling
    • None
    • RHAS 4.0

    Description

      How to reproduce:

      • create a simple interface without package defined, I attach it
      • run command like: java2wsdl -verbose Hello
      • I get exceptions like:
        Error : null

      java.lang.NullPointerException
      at org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper.getPackageName(Wrapper.java:135)
      at org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.RequestWrapper.getWrapperBeanClass(RequestWrapper.java:100)
      at org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper.getJavaClass(Wrapper.java:114)
      at org.apache.cxf.tools.java2wsdl.processor.internal.jaxws.Wrapper.buildWrapperBeanClass(Wrapper.java:121)
      at org.apache.cxf.tools.java2wsdl.generator.wsdl11.WrapperBeanGenerator.generateBeanClasses(WrapperBeanGenerator.java:41)
      at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generate(BeanGenerator.java:54)
      at org.apache.cxf.tools.java2wsdl.generator.wsdl11.BeanGenerator.generate(BeanGenerator.java:34)
      at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.generate(JavaToProcessor.java:121)
      at org.apache.cxf.tools.java2wsdl.processor.JavaToProcessor.process(JavaToProcessor.java:90)
      at org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLContainer.java:59)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
      at org.apache.cxf.tools.java2wsdl.JavaToWSDL.run(JavaToWSDL.java:74)
      at org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:42)
      Error : null

      org.apache.cxf.tools.common.ToolException
      at org.apache.cxf.tools.java2wsdl.JavaToWSDLContainer.execute(JavaToWSDLContainer.java:76)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:52)
      at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:39)
      at org.apache.cxf.tools.java2wsdl.JavaToWSDL.run(JavaToWSDL.java:74)
      at org.apache.cxf.tools.java2wsdl.JavaToWSDL.main(JavaToWSDL.java:42)

      Attachments

        1. Hello.java
          0.1 kB
          Alex Chen

        Activity

          People

            ema Jim Ma
            alex.chen@iona.com Alex Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: