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: \\thumper\50builds\gfesb\v2\soarelease\promoted\fcs\fcs2 When creating a new WSDL on Open-Solaris using the above build, the NPE exception was then encountered. Step to recreate the problem: 1)Create a new Java Library project (Java/Java Class Library) 2)Create a new JAXB binding (using the provided xsd file) 3)Create new WSDL document, and choose to create ‘Abstract WSDL’ 4)Change the default value (xsd:String) of ‘Element Or Type’ for Input Message Part Name to something non-default (ie. Short) 5)Do the same for the Output Message Part Name. 6)The NPE will occur as you’re trying to save the WSDL. (See attached xsd file, description file with screen shot, and Message.log file)
Created attachment 74550 [details] Test Files
User is unable to save/create the WSDL when using the Complex type: 1)Create a new Java Library project (Java/Java Class Library) 2)Create a new XML Document using the provided xsd file 2)Create a new JAXB binding (using the provided xsd file) 3)Create new WSDL document, and choose to create ‘Abstract WSDL’ 4)Change the default value (xsd:String) of ‘Element Or Type’ for Input Message Part Name to something non-default (ie. Complex element from step2) 5)Do the same for the Output Message Part Name. 6)The NPE will occur and user is unable to create/save the WSDL with this NPE.
Please note that the above scenario only uses JAXB binding to illustrate the problem. Other than JAXB binding (i.e. Web Service client - that created using WSDL with imported XSD, for example) the problem can also be recreatable.
Fixed in soa-dev
Verified on Glassfish ESB 2.1 on windows Vista: PRODUCT_BUILD=20090429-0723 NETBEANS_BUILD=200904151427 NETBEANS_VERSION=6.5.1 SOA_BUILD=090429 I can perform both scenarios without encountering a NullPOinterException.