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.
Summary: | NullPointerException at org.netbeans.modules.maven.jaxws.WSUtils.addServlet | ||
---|---|---|---|
Product: | webservices | Reporter: | airmax9999 |
Component: | JAX-WS | Assignee: | Denis Anisimov <ads> |
Status: | RESOLVED INCOMPLETE | ||
Severity: | normal | CC: | exceptions_reporter |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 177809 |
Attachments: | stacktrace |
Description
airmax9999
2011-03-22 20:36:03 UTC
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. |