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 141766 - [65cat] IllegalArgumentException: NB_REPORTER_IGNORE: Project CustomerDB is not open and cannot be set as main.
Summary: [65cat] IllegalArgumentException: NB_REPORTER_IGNORE: Project CustomerDB is n...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Konecny
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-26 11:36 UTC by franci
Modified: 2008-09-10 02:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 82360


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description franci 2008-07-26 11:36:52 UTC
Build: NetBeans IDE Dev (Build 200807251401)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Linux, 2.6.24-19-generic, i386

User Comments: 
moving a project to other location

Stacktrace: 
java.lang.IllegalArgumentException: NB_REPORTER_IGNORE: Project CustomerDB is not open and cannot be set as main.
        at org.netbeans.modules.project.ui.OpenProjectList.setMainProject(OpenProjectList.java:782)
        at org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.setMainProject(OpenProjectsTrampolineImpl.java:119)
        at org.netbeans.api.project.ui.OpenProjects.setMainProject(OpenProjects.java:218)
        at org.netbeans.modules.project.uiapi.DefaultProjectOperationsImplementation$8.run(DefaultProjectOperationsImplementation.java:758)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
Comment 1 sunbiz 2008-07-26 12:16:45 UTC
This look very similar to Issue 141242 which I had submitted a few days back. But I will ask someone from the assigned 
QA to confirm the duplicate.
Comment 2 Milan Kubec 2008-07-28 12:02:55 UTC
The original problem behind the IllegalArgumentException is failed WebProject$ProjectOpenedHookImpl

java.lang.NullPointerException: The serverInstanceId parameter cannot be null
...
Comment 3 David Konecny 2008-07-29 01:54:57 UTC
Milan, how did you figure out NullPointerException? Where is full stack trace? This issue is IMO duplicate of 141242.
Comment 4 Milan Kubec 2008-07-29 07:37:08 UTC
See the URL field: http://statistics.netbeans.org/analytics/detail.do?id=82360

and there you need to read the XML file, which contains all exceptions that were thrown:

http://statistics.netbeans.org/analytics/loggerasxml?id=82360

I think that original problem is the mentioned NPE which causes the project not being opened and then setting the
project as main fails.
Comment 5 David Konecny 2008-07-30 05:56:52 UTC
That NPE was introduced by jchalupa and fixed in http://hg.netbeans.org/main?cmd=changeset;node=0945ad92dc9c
Comment 6 Jesse Glick 2008-09-09 20:22:26 UTC
It is a bug in projectui if a bug in web.project can cause projectui to later throw IAE from its own code, isn't it?
Comment 7 David Konecny 2008-09-09 23:18:39 UTC
You mean projectui should be more defensive and not fail with

 "IllegalArgumentException: NB_REPORTER_IGNORE: Project XXX is not open and cannot be set as main."

but rather re-throw underlaying NPE from web.project annotated with "project XXX opening failed"? That would certainly help.
Comment 8 Jesse Glick 2008-09-10 02:44:47 UTC
Yes, something like that.