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 141692 - NullPointerException: The serverInstanceId parameter cannot be null
Summary: NullPointerException: The serverInstanceId parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Chalupa
URL: http://statistics.netbeans.org/except...
Keywords:
: 141614 141736 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-25 15:36 UTC by Petr Jiricka
Modified: 2008-08-20 10:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 82030


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2008-07-25 15:36:40 UTC
Build: NetBeans IDE Dev (Build 20080725075415)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-121, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_13-b05-241
OS: Mac OS X, 10.4.11, i386

User Comments: 
Creating the samples from the Identity BluePrints category

Stacktrace: 
java.lang.NullPointerException: The serverInstanceId parameter cannot be null
        at org.openide.util.Parameters.notNull(Parameters.java:86)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.getServerInstance(Deployment.java:426)
        at org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:859)
        at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
        at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:193)
        at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
Comment 1 Petr Jiricka 2008-07-25 16:32:15 UTC
Is this an issue with the server integration infrastructure or with the sample project?
Comment 2 Petr Hejl 2008-07-25 16:42:28 UTC
It is caused by USG logging - issue 141506.

serverInstanceId seems to be null under some circumstances (like samples, projects without private.properties). There
has to be null check.
Comment 3 Jan Chalupa 2008-07-25 17:37:49 UTC
Got it. Working on it.
Comment 4 Petr Hejl 2008-07-26 07:45:43 UTC
*** Issue 141736 has been marked as a duplicate of this issue. ***
Comment 5 Jan Chalupa 2008-07-26 13:11:09 UTC
Fixed: http://hg.netbeans.org/main/rev/0945ad92dc9c

However, I get another NPE when I try to create a Identity Blueprints sample project with no server defined. It's
unrelated to the usage logging. Filed issue #141768.
Comment 6 Petr Hejl 2008-08-20 10:31:32 UTC
*** Issue 141614 has been marked as a duplicate of this issue. ***