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 142670 - [65cat] IllegalArgumentException: NB_REPORTER_IGNORE: Project EchoService is not open and cannot be set as main.
Summary: [65cat] IllegalArgumentException: NB_REPORTER_IGNORE: Project EchoService is ...
Status: RESOLVED DUPLICATE of bug 142230
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Milan Kubec
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-02 09:07 UTC by esmithbss
Modified: 2008-08-04 09:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 71860


Attachments
stacktrace (853 bytes, text/plain)
2008-08-02 09:07 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-08-02 09:07:36 UTC
Build: NetBeans IDE Dev (Build 200808010201)
VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25
OS: Linux, 2.6.24-20-rt, i386

User Comments: 
Switching Project Groups to a project group containing the EchoService project referenced in the error.

Apparently, the system cannot set a project in a project group to be the main project before it opens the project.

Stacktrace: 
java.lang.IllegalArgumentException: NB_REPORTER_IGNORE: Project EchoService 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.ui.groups.Group.open(Group.java:331)
        at org.netbeans.modules.project.ui.groups.Group.setActiveGroup(Group.java:166)
        at org.netbeans.modules.project.ui.groups.GroupsMenu$Menu$1$1.run(GroupsMenu.java:117)
Comment 1 esmithbss 2008-08-02 09:07:45 UTC
Created attachment 66375 [details]
stacktrace
Comment 2 sunbiz 2008-08-02 13:09:49 UTC
Issue 141242 had nearly the same problem, but it was while setting an imported eclipse project as the main project. 
This issue was closed as WORKSFORME, but the problem seems to be underlying in setting a project to main project and 
not just the eclipse importer.
Comment 3 Milan Kubec 2008-08-04 09:02:00 UTC
Unfortunately the exception:

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

is only consequence of some other problem that happened sometimes during project opening or creating. The original
exception in this case seems to be (see the XML file at http://statistics.netbeans.org/analytics/loggerasxml?id=85517):

java.io.IOException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'extension'. One of
'{"http://www.netbeans.org/ns/ant-build-extender/1":extension}' is expected.

Which would point to issue #142230, that was fixed on Aug 2nd.

Note: the URL seems to point to wrong trace, correct one is IMO:
http://statistics.netbeans.org/analytics/detail.do?id=85517

To sunbiz: I mentioned wrong issue number in issue #141242, in fact the fixed issue was issue #141766.


*** This issue has been marked as a duplicate of 142230 ***