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 52822 - NullPointerException triggered when closing or opening a web project
Summary: NullPointerException triggered when closing or opening a web project
Status: RESOLVED DUPLICATE of bug 52348
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-28 16:25 UTC by wjbug
Modified: 2005-07-21 14:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
the message.log at the point where I received the NPE error (110.90 KB, text/plain)
2004-12-28 16:27 UTC, wjbug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wjbug 2004-12-28 16:25:11 UTC
I've attached the log file for the NPE reported as
I tried to close a web project.

This same error came up when I launched NB 4.1
(Q-build from 12-20-2004) with an existing web
project previously left open in the IDE.
Comment 1 wjbug 2004-12-28 16:27:37 UTC
Created attachment 19417 [details]
the message.log at the point where I received the NPE error
Comment 2 Marian Mirilovic 2005-01-03 08:10:40 UTC
java.lang.NullPointerException
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$PathParser.createWarIncludesMap(WebProjectProperties.java:917)
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$PathParser.decode(WebProjectProperties.java:837)
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties$PropertyInfo.<init>(WebProjectProperties.java:694)
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.read(WebProjectProperties.java:373)
	at
org.netbeans.modules.web.project.ui.customizer.WebProjectProperties.<init>(WebProjectProperties.java:238)
	at
org.netbeans.modules.web.project.WebProject.getWebProjectProperties(WebProject.java:409)
	at
org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:621)
	at
org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:49)
[catch] at
org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:382)
	at
org.netbeans.modules.project.ui.OpenProjectList.open(OpenProjectList.java:141)
	at
org.netbeans.modules.project.ui.actions.OpenProject.actionPerformed(OpenProject.java:69)
Comment 3 Radko Najman 2005-01-03 12:56:57 UTC
This happens to projects created in NB 4.0 and opened in NB 4.1 EA.
Will be fixed.
Comment 4 Radko Najman 2005-01-03 13:41:10 UTC

*** This issue has been marked as a duplicate of 52348 ***
Comment 5 wjbug 2005-01-03 14:00:50 UTC
Dear NB developers,

This project - created in NB 4.0 - was a "Web Pjt w/existing sources".
 It didn't have many of the typical directories created when you build
a new Web Pjt from scratch.

I went through the pjt directory and altered/added directory names to
conform with the structure created when building a web pjt de novo -
e.g., test, making sure the web app directory is called "web", etc.

Once I did this, the NPE disappeared.

Thanks for help resolving this problem.

Cheers,
Bill Bug