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.
When attempting to import a Web Service to the Services->Web Service tree Netbeans throws the Error "Unable to generate the JAX-WS client.", See attachment WebServiceImportError1.png, this is then followed by the NullPointerException shown in WebServiceImportError2.png. This Exception continues to appear even when close is selected. The only way to remove it is to close Netbeans. When Netbeans restarts it throws the FileNotFoundException being unable to find .netbeans\dev\websvc\null, see attachment WebServiceImportError3.png. The result of this is that the "Test Method" and "Add to Page" menu options are not available for the operations. Attempting to select one of these causes the null pointer exception to be display whenever the mouse moves over a Visual Web Page.
Created attachment 44943 [details] Web Service import Error 1
Created attachment 44944 [details] Web Service Import Error 2
Created attachment 44945 [details] Web Service Import Error 3
Can you attach the wsdl file that you used?
Created attachment 44977 [details] WSDL Causing Issue
The initial import exception appear to have been resolved in NB 6.0 Build 200707110000 although when attempting to test the Web Service the following exception is thrown: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions There's no ObjectFactory with an @XmlElementDecl for the element {urn:wsdl:sierra:msoa:servicesRequest}icon. this problem is related to the following location: at protected javax.xml.bind.JAXBElement websvc.ServiceDTO.icon at websvc.ServiceDTO at protected java.util.List websvc.GetAllServicesResponseComplexType.service at websvc.GetAllServicesResponseComplexType There's no ObjectFactory with an @XmlElementDecl for the element {urn:wsdl:sierra:msoa:servicesRequest}status. this problem is related to the following location: at protected javax.xml.bind.JAXBElement websvc.ServiceDTO.status at websvc.ServiceDTO at protected java.util.List websvc.GetAllServicesResponseComplexType.service at websvc.GetAllServicesResponseComplexType at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361) at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217) at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.xml.internal.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:76) at com.sun.xml.internal.ws.model.RuntimeModel$1.run(RuntimeModel.java:196) at java.security.AccessController.doPrivileged(Native Method) at com.sun.xml.internal.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:193) at com.sun.xml.internal.ws.model.RuntimeModel.postProcess(RuntimeModel.java:79) at com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255) at com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119) at com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87) at com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:136) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:288) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:174) at javax.xml.ws.Service.getPort(Service.java:94) at websvc.GetAllServicesService.getGetAllServicesPort(GetAllServicesService.java:51) at websvc.GetAllServicesPortClient.<init>(GetAllServicesPortClient.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.netbeans.modules.visualweb.websvcmgr.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:300) at org.netbeans.modules.visualweb.websvcmgr.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1011) at java.lang.Thread.run(Thread.java:619) Caused: javax.xml.ws.WebServiceException at com.sun.xml.internal.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:201) at com.sun.xml.internal.ws.model.RuntimeModel.postProcess(RuntimeModel.java:79) at com.sun.xml.internal.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:255) at com.sun.xml.internal.ws.client.ServiceContextBuilder.processAnnotations(ServiceContextBuilder.java:119) at com.sun.xml.internal.ws.client.ServiceContextBuilder.completeServiceContext(ServiceContextBuilder.java:87) at com.sun.xml.internal.ws.client.WSServiceDelegate.processServiceContext(WSServiceDelegate.java:136) at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:288) at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:174) at javax.xml.ws.Service.getPort(Service.java:94) at websvc.GetAllServicesService.getGetAllServicesPort(GetAllServicesService.java:51) at websvc.GetAllServicesPortClient.<init>(GetAllServicesPortClient.java:17) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.netbeans.modules.visualweb.websvcmgr.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:300) at org.netbeans.modules.visualweb.websvcmgr.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1011) [catch] at java.lang.Thread.run(Thread.java:619)
The original issue appears to be resolved. The Test Service issue has already been filed. *** This issue has been marked as a duplicate of 109642 ***