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.
hudson #2466, jdk6u2 -create new ejbmodule (1.4) -create new ws in it -try to invoke "Add Operation" action => java.lang.NullPointerException at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsAddOperation.getService(JaxWsAddOperation.java:87) at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsAddOperation.<init>(JaxWsAddOperation.java:55) at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsAddOperationProvider.getAddOperationCookie(JaxWsAddOperationProvider.java:32) at org.netbeans.modules.websvc.core.WebServiceActionProvider.getAddOperationAction(WebServiceActionProvider.java:40) at org.netbeans.modules.websvc.core.webservices.action.WebServiceActionGroup.hasWebService(WebServiceActionGroup.java:86) at org.netbeans.modules.websvc.core.webservices.action.WebServiceActionGroup.getPopupPresenter(WebServiceActionGroup.java:51) at org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.createLocalizedMenuItem(NbEditorKit.java:337) ...
The reason is that JAXWSSupport is in the web project lookpup for j2ee 1.4 web project. investigating.
I cannot reproduce with current development build. Kindly try this again and reopen if necessary. Meanwhile, closing as WORKSFORME.
you're right, this somehow got fixed.
happens again in beta2 build with JAXRPC plugin...
*** Issue 119131 has been marked as a duplicate of this issue. ***
Ajit kindly look at this.
its really a jaxws issue. the jax-ws.xml has empty service entry which causes this.
I can reproduce this 100% with the following: 1. Create J2EE4 web project. 2. Create web service from wsdl. Note that a spurious web service reference folder is created in the project. 3. Restart the IDE. 4. Create a web service (from java) in the project. At this point, the jax-ws.xml file has been created and two webservices root folder appear on the explorer. It looks like creating a ws from wsdl in the J2EE4 project somehow gives the project a "JAXWS capability" (not sure what this is yet). When the IDE is restarted and the project is reopened, it can locate a JAXWSSupport in its lookup and thus a listener for creating a jaxws.xml file is attached to the project. When a new web service is added to the project, the spurious jaxws.xml file is created.
*** Issue 112794 has been marked as a duplicate of this issue. ***
*** Issue 116255 has been marked as a duplicate of this issue. ***
When a web project that has existing jaxrpc web services is opened, WebProject.getAPIJAXWSSupport() returns a non-null value (because the JAXWSSupport instance is created in the project regardless of its EE level.) Because of this, a jaxws listener is appended to the project which creates the spurious jax-ws.xml file.
The jaxws listener is attached to the web project in org.netbeans.modules.websvc.core.jaxws.projects.WebWSSupportLookupProvider's ProjectOpenedHook object.
I have added check in the lookupprovider to add metadatamodel listener to only javaee5 web/ejb projects. Now new j2ee 1.4 web and ejb projects should not have this issue.
v.