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.

Bug 109369 - Add Web Service throws Unable to generate JAX-WS client.
Summary: Add Web Service throws Unable to generate JAX-WS client.
Status: RESOLVED DUPLICATE of bug 109642
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-11 14:34 UTC by dante
Modified: 2007-07-16 19:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Web Service import Error 1 (16.27 KB, application/octet-stream)
2007-07-11 14:35 UTC, dante
Details
Web Service Import Error 2 (35.74 KB, application/octet-stream)
2007-07-11 14:37 UTC, dante
Details
Web Service Import Error 3 (24.67 KB, application/octet-stream)
2007-07-11 14:38 UTC, dante
Details
WSDL Causing Issue (4.19 KB, application/octet-stream)
2007-07-11 20:49 UTC, dante
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dante 2007-07-11 14:34:51 UTC
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.
Comment 1 dante 2007-07-11 14:35:41 UTC
Created attachment 44943 [details]
Web Service import Error 1
Comment 2 dante 2007-07-11 14:37:17 UTC
Created attachment 44944 [details]
Web Service Import Error 2
Comment 3 dante 2007-07-11 14:38:34 UTC
Created attachment 44945 [details]
Web Service Import Error 3
Comment 4 Quy Nguyen 2007-07-11 19:50:02 UTC
Can you attach the wsdl file that you used?
Comment 5 dante 2007-07-11 20:49:22 UTC
Created attachment 44977 [details]
WSDL Causing Issue
Comment 6 dante 2007-07-13 13:41:15 UTC
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)
Comment 7 Quy Nguyen 2007-07-16 19:23:00 UTC
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 ***