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.
Trying to create servlet in web free-form project. After pressing wizard finish button NPE is trown : java.lang.NullPointerException at org.netbeans.modules.web.wizards.ServletData.addServlet(ServletData.java:470) at org.netbeans.modules.web.wizards.ServletData.createDDEntries(ServletData.java:436) at org.netbeans.modules.web.wizards.ServletIterator.instantiate(ServletIterator.java:260) at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1018) at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588) at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409) at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248) at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:161) at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1527) at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1481) at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:127) at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2052) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
As I see this is common issue for Web Application with web.xml version 2.2. The same exception I get when I try to add Servlet to Web Application which based on web-app 2.2.
Web App 2.2 is not supported by NB6.8. But probably one should care about any unsupported case for Servlet generation.....
changeset: 145174:4cc58e92b638 user: Denis Anisimov <ads@netbeans.org> date: Wed Sep 16 19:27:41 2009 +0400 summary: Fix for IZ#172222 - NPE on Servlet creation in freeform web project
*** Issue 171109 has been marked as a duplicate of this issue. ***
*** Issue 170095 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200909181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4cc58e92b638 User: Denis Anisimov <ads@netbeans.org> Log: Fix for IZ#172222 - NPE on Servlet creation in freeform web project