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

Summary: Error manager exception (EXIT_ON_CLOSE instantiation failure)
Product: guibuilder Reporter: Jana Maleckova <janie>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: 108282

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)

Description:
============
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

StackTrace:
==========
SEVERE: Illegal attempt to exit early
org.openide.ErrorManager$AnnException: msg
        at org.openide.ErrorManager$AnnException.findOrCreate(ErrorManager.java:839)
        at org.openide.ErrorManager$DelegatingErrorManager.annotate(ErrorManager.java:628)
        at org.openide.ErrorManager.annotate(ErrorManager.java:430)
        at org.netbeans.modules.form.MetaComponentCreator.showInstErrorMessage(MetaComponentCreator.java:1317)
        at org.netbeans.modules.form.MetaComponentCreator.initComponentInstance(MetaComponentCreator.java:1305)
        at org.netbeans.modules.form.MetaComponentCreator.createVisualComponent(MetaComponentCreator.java:753)
        at org.netbeans.modules.form.MetaComponentCreator.addVisualComponent(MetaComponentCreator.java:732)
        at org.netbeans.modules.form.MetaComponentCreator.createAndAddComponent2(MetaComponentCreator.java:335)
Comment 1 Jana Maleckova 2007-06-27 13:35:25 UTC
Created attachment 44454 [details]
108282
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. ***