This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 6.7 (Build 200906241340) VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: GUEST: creating WS from WSDL chrnb: create a new maven webapp project create web service from WSDL Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.jaxws.wizards.JaxWsServiceCreator$5.run(JaxWsServiceCreator.java:414) at org.netbeans.modules.maven.jaxws.wizards.JaxWsServiceCreator$5.run(JaxWsServiceCreator.java:402) at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:647) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:129) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:113) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:189)
Created attachment 85134 [details] stacktrace
Reporter, please can you provide the wsdl url from which you were trying to ceate web service implementation ? I cannot reproduce this issue.
Created attachment 85552 [details] WSDL
Thanks for wsdl file
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=147046
Reason for this exception is the inability of JAXB xjc utility (called by JAX-WS) to generate classes from this wsdl. The "CancelImageResponse" element and "CancelImageResponse" complex type has the same name. The workaround is to rename "CancelImageResponse" type (e.g. to "CancelImageResponseType") : <s:element name="CancelImageResponse"> <s:complexType> <s:sequence> <s:element maxOccurs="1" minOccurs="1" name="cancelImageResponse" nillable="true" type="tns:CancelImageResponseType"/> </s:sequence> </s:complexType> </s:element> <s:complexType name="CancelImageResponseType"> ... </s:complexType> Another workaround is to use jaxb customization to force xjc generate another java class name for "CancelImageResponse" type. Nevertheless, we should avoid throwing NPE.
Fixed: http://hg.netbeans.org/web-main/rev/086c24dd76b0
Integrated into 'main-golden', will be available in build *201008130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/086c24dd76b0 User: mkuchtiak@netbeans.org Log: #169050: fixed NPE - show the dialog instead