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: NetBeans IDE 6.9.1 (Build 201011082200) VM: Java HotSpot(TM) Client VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07 OS: Windows XP Stacktrace: java.lang.NullPointerException at org.netbeans.modules.maven.jaxws.WSUtils.addServlet(WSUtils.java:740) at org.netbeans.modules.maven.jaxws.WSUtils.addServicesToDD(WSUtils.java:724) at org.netbeans.modules.maven.jaxws.WSUtils.checkNonJSR109Entries(WSUtils.java:920) at org.netbeans.modules.maven.jaxws.MavenJaxWsSupportProvider.reactOnPomChanges(MavenJaxWsSupportProvider.java:176) at org.netbeans.modules.maven.jaxws.MavenJaxWsSupportProvider.access$000(MavenJaxWsSupportProvider.java:71) at org.netbeans.modules.maven.jaxws.MavenJaxWsSupportProvider$1.run(MavenJaxWsSupportProvider.java:79)
Created attachment 107199 [details] stacktrace
*** Bug 186864 has been marked as a duplicate of this bug. ***
Reassigning to WS product
The NPE appears on the line : servlet.setLoadOnStartup(new java.math.BigInteger("1")); It means null value for servlet var. The latter variable is created on the previous line : Servlet servlet = (Servlet)webApp.addBean("Servlet", new String[]{"ServletName","ServletClass"}, new Object[]{servletName, SERVLET_CLASS_NAME}, "ServletName"); So the issue is somewhere inside DD module. I reviewed various implementations of WebApp interface ( the type of webApp var ) and don't see how it can return null value ( there is a possibility for that but in this case other NPE would have thrown previously ). Probably I missed some implementations or something else. So I can't realize the problem without additional information. Please provide exact steps to reproduce.