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 64966 - [50cat] NullPointerException upon opening a project when a J2EE server is missing
Summary: [50cat] NullPointerException upon opening a project when a J2EE server is mis...
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Libor Kotouc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 09:40 UTC by jlaskowski
Modified: 2005-12-12 11:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NullPointerException (7.87 KB, text/plain)
2005-09-23 09:42 UTC, jlaskowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlaskowski 2005-09-23 09:40:20 UTC
[ BUILD # : 200509221800 ]
[ JDK VERSION : 1.5.0_05 ]

Steps to reproduce:

1. Add a J2EE server to Servers in the Runtime tab.
2. Create a web or enterprise project and link it to that server (in my case it was JBoss).
3. Close NetBeans and remove the NETBEANS_HOME directory (~/.netbeans or %USERPROFILE%/.netbeans). It's always adviced when a new version is installed to not introduce bugs because of the previous version configurations.
4. Start up NetBeans
5. Open the project

You'll get java.lang.NullPointerException in a popup window and the project will be marked as misconfigured (i.e. resolve reference problems and resolve missing server problem menus show up).

See the attachement for the stack trace.
Comment 1 jlaskowski 2005-09-23 09:42:34 UTC
Created attachment 25093 [details]
NullPointerException
Comment 2 jlaskowski 2005-09-23 09:43:46 UTC
The serverplugins is not available in the handy yet incomplete NetCAT form.
Comment 3 Sherold Dev 2005-09-23 10:37:08 UTC
-> jboss4
Comment 4 Pavel Buzek 2005-11-10 02:56:53 UTC
There are 2 exceptions. The NPE in JBDeploymentFactory at line 103 has been
fixed (added ==null). The CNFE at line 75 (this was v1.5, now line 85) should be
just swallowed and not reported, certainly not using notify (maybe log?).
Throwing DeploymentManagerCreationException from getDM() should be handled
correctly by j2eeserver.
Comment 5 Libor Kotouc 2005-11-21 15:04:47 UTC
NPE was fixed in JBDeploymentFactory 1.6 (issue 65943) and CNFE was fixed in 1.9

Checking in JBDeploymentFactory.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/JBDeploymentFactory.java,v
 <--  JBDeploymentFactory.java
new revision: 1.9; previous revision: 1.8
done

Comment 6 Michal Mocnak 2005-12-12 11:20:08 UTC
Verified