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.
[ 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.
Created attachment 25093 [details] NullPointerException
The serverplugins is not available in the handy yet incomplete NetCAT form.
-> jboss4
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.
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
Verified