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 108282 - Error manager exception (EXIT_ON_CLOSE instantiation failure)
Summary: Error manager exception (EXIT_ON_CLOSE instantiation failure)
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
: 116896 (view as bug list)
Depends on:
Reported: 2007-06-27 13:34 UTC by Jana Maleckova
Modified: 2008-05-05 15:57 UTC (History)
0 users

See Also:
Exception Reporter:

108282 (7.96 KB, text/plain)
2007-06-27 13:35 UTC, Jana Maleckova

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2007-06-27 13:34:14 UTC
Product Version: NetBeans IDE Dev (Build 200706270025) Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

have J2se project
1. create two frames
2. build the project
3. then try to insert one frame into other one - exactly - Drag it from project win and try to drop it in in other one
opened in design. 
then warning msg is opened and in cmd there an exception is thrown

SEVERE: Illegal attempt to exit early
org.openide.ErrorManager$AnnException: msg
        at org.openide.ErrorManager$AnnException.findOrCreate(
        at org.openide.ErrorManager$DelegatingErrorManager.annotate(
        at org.openide.ErrorManager.annotate(
        at org.netbeans.modules.form.MetaComponentCreator.showInstErrorMessage(
        at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(
        at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(
        at org.netbeans.modules.form.MetaComponentCreator.addVisualComponent(
        at org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent2(
Comment 1 Jana Maleckova 2007-06-27 13:35:25 UTC
Created attachment 44454 [details]
Comment 2 Tomas Pavek 2007-09-07 13:53:41 UTC
The frame can't be instantiated because it has setDefaultCloseOperation set to WindowConstants.EXIT_ON_CLOSE. Exiting on
close makes it the main frame of an application rather than a reusable component that could be added into another form.
But still we could perhaps identify this case and show a better error message.
Comment 3 Tomas Pavek 2007-09-27 10:41:12 UTC
*** Issue 116896 has been marked as a duplicate of this issue. ***