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 172222 - NPE on Servlet creation in freeform web project
Summary: NPE on Servlet creation in freeform web project
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Servlet (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
: 170095 171109 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-14 19:30 UTC by Denis Anisimov
Modified: 2009-09-18 22:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Anisimov 2009-09-14 19:30:12 UTC
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)
Comment 1 Denis Anisimov 2009-09-15 18:51:07 UTC
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.
Comment 2 Denis Anisimov 2009-09-15 19:19:49 UTC
Web App 2.2 is not supported by NB6.8.

But probably one should care about any unsupported case for Servlet generation.....
Comment 3 Denis Anisimov 2009-09-16 16:41:07 UTC
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
Comment 4 Denis Anisimov 2009-09-16 16:59:35 UTC
*** Issue 171109 has been marked as a duplicate of this issue. ***
Comment 5 Petr Jiricka 2009-09-16 17:28:07 UTC
*** Issue 170095 has been marked as a duplicate of this issue. ***
Comment 6 Quality Engineering 2009-09-18 22:18:02 UTC
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