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 186864

Summary: NullPointerException at org.netbeans.modules.maven.jaxws.WSUtils.addServlet
Product: javaee Reporter: Exceptions Reporter <exceptions_reporter>
Component: MavenAssignee: Martin Janicek <mjanicek>
Status: RESOLVED DUPLICATE    
Severity: normal CC: airmax9999, asafm, dkonecny, mmirilovic
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 150651
Attachments: stacktrace

Description Exceptions Reporter 2010-05-28 07:26:06 UTC
This issue was reported manually by mmirilovic.
It already has 26 duplicates 


Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01-279, Java(TM) SE Runtime Environment, 1.6.0_20-b02-279-10M3065
OS: Mac OS X

User Comments:
GUEST: creating a new web service

GUEST: waiting for the scanning to stop

GUEST: opening up ide and it was scanning a maven project

GUEST: nothing the app had just come up

GUEST: creating a new webservice skeleton : a dialog was shown asking to add servlets to web.xml. then the exception occured.

GUEST: just starting up Netbeans

GUEST: Editing a java source file

GUEST: I imported a maven parent project which includes sub-projects.
Then I clicked "Open Required Projects".
The projects where opened and than this message appeared

GUEST: Opening a maven project (with 1 servlet)

GUEST: just started up netbeans

GUEST: Netbeans was scanning project

GUEST: sending an update




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.maven.jaxws.WSUtils.addServlet(WSUtils.java:737)
   at org.netbeans.modules.maven.jaxws.WSUtils.addServiceToDD(WSUtils.java:695)
   at org.netbeans.modules.maven.jaxws.MavenJAXWSSupportImpl.addService(MavenJAXWSSupportImpl.java:102)
   at org.netbeans.modules.websvc.jaxws.light.api.JAXWSLightSupport.addService(JAXWSLightSupport.java:123)
   at org.netbeans.modules.maven.jaxws.MavenJaxWsSupportProvider$WebservicesChangeListener.updateJaxWs(MavenJaxWsSupportProvider.java:283)
   at org.netbeans.modules.maven.jaxws.MavenJaxWsSupportProvider$WebservicesChangeListener.access$400(MavenJaxWsSupportProvider.java:181)
Comment 1 Exceptions Reporter 2010-05-28 07:26:09 UTC
Created attachment 99584 [details]
stacktrace
Comment 2 David Konecny 2011-09-20 21:37:09 UTC
Martin, some issues can be closed as duplicates. This one is the case.

maven.jaxws is Web Services support for Maven and I used to pass such issues to Denis (ads@n.o) but feel free to fix them if you want.

*** This bug has been marked as a duplicate of bug 196984 ***