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.
I run my daily automated tests where I open Enterprise Application and perform several tests. It worked untill build 200508181800. From build 200508211800 immediatelly after opening project error message appears saying that target server is missing. But project isn't in red color, hasn't "Resolve.." menu item and everything works (start/stop server, deployment). I just found NPE in message.log. Since the error message is modal it blocks my automated tests. When I opened same project manually it worked without problem.
Created attachment 24157 [details] NullPointerException
Line 121 is this.userName = InstanceProperties.getInstanceProperties("deployer:Sun:AppServer::"+host+":"+adminPortNumber). //NOI18N getProperty(InstanceProperties.USERNAME_ATTR); Is means that at that time, InstanceProperties.getInstanceProperties() is null again, and this might be due to changes in j2eeserver int he way it inits its own server repository... Vince, can you see if this bug can be moved to j2eeserver?
it looks like InstanceProperties used to trigger an IllegalStateException, and may have changed to just returning null. I have updated our code to be a bit safer: http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/dm/SunDeploymentManager.java?r1=1.10&r2=1.11 http://serverplugins.netbeans.org/source/browse/serverplugins/sun/appsrv90/src/org/netbeans/modules/j2ee/sun/appsrv9/ide/dm/SunDeploymentManager.java?r1=1.5&r2=1.6
Verified