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 49772 - Deployement of web project NullPointerException
Summary: Deployement of web project NullPointerException
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords:
: 49673 50920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-01 07:15 UTC by psecheresse
Modified: 2005-05-03 18:35 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 psecheresse 2004-10-01 07:15:49 UTC
When you deploy a new web projet, the message 
NullPointerException is send.
To fix the issue, go to Project properties, 
select Run and Running project. The Server is 
empty. Select a server and it's OK.

The log contain 
	at 
org.netbeans.modules.j2ee.deployment.devmodules.a
pi.Deployment.getInstancesOfServer
(Deployment.java:163)
	at 
org.netbeans.modules.web.project.ui.NoSelectedSer
verWarning$ServerListModel.<init>
(NoSelectedServerWarning.java:117)
	at 
org.netbeans.modules.web.project.ui.NoSelectedSer
verWarning.<init>
(NoSelectedServerWarning.java:29)
	at 
org.netbeans.modules.web.project.WebActionProvide
r.isSelectedServer(WebActionProvider.java:722)
	at 
org.netbeans.modules.web.project.WebActionProvide
r.invokeAction(WebActionProvider.java:152)
BEFORE the log contains
Plugin J2EE installation failed
INFORMATIONAL *********** Exception occurred 
************ at 12:40 PM on Oct 1, 2004
java.lang.IllegalStateException: Bad server 
plugin: cant locate layer filesystem {0}
	at 
org.netbeans.modules.j2ee.deployment.impl.Server.
<init>(Server.java:58)
[catch] at 
org.netbeans.modules.j2ee.deployment.impl.ServerR
egistry.addPlugin(ServerRegistry.java:107)
	at 
org.netbeans.modules.j2ee.deployment.impl.ServerR
egistry.init(ServerRegistry.java:78)
	at 
org.netbeans.modules.j2ee.deployment.impl.ServerR
egistry.instancesMap(ServerRegistry.java:98)
	at 
org.netbeans.modules.j2ee.deployment.impl.ServerR
egistry.getServerInstance
(ServerRegistry.java:200)
	at 
org.netbeans.modules.j2ee.deployment.impl.ServerS
tring.getServerInstance(ServerString.java:125)
	at 
org.netbeans.modules.j2ee.deployment.devmodules.a
pi.Deployment.getDefaultServerInstanceID
(Deployment.java:154)
	at 
org.netbeans.modules.web.project.WebProjectGenera
tor.setupProject(WebProjectGenerator.java:213)
	at 
org.netbeans.modules.web.project.WebProjectGenera
tor.createProject(WebProjectGenerator.java:67)
	at 
org.netbeans.modules.web.project.ui.wizards.NewWe
bProjectWizardIterator.instantiate
(NewWebProjectWizardIterator.java:74)
Comment 1 Nam Nguyen 2004-10-02 05:42:43 UTC
Check for null serverid and no server in registry cases and return all
instances list.

Fixed:
http://j2eeserver.netbeans.org/source/browse/j2eeserver/src/org/netbeans/modules/j2ee/deployment/devmodules/api/Deployment.java.diff?r1=1.10&r2=1.11
Comment 2 Pavel Buzek 2004-10-11 16:28:17 UTC
*** Issue 49673 has been marked as a duplicate of this issue. ***
Comment 3 Nam Nguyen 2004-10-27 23:29:58 UTC
*** Issue 50920 has been marked as a duplicate of this issue. ***