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)