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.
Summary: | Wrong setting of class name in dialog "Choose Bean" causes exceptions | ||
---|---|---|---|
Product: | platform | Reporter: | Jana Maleckova <janie> |
Component: | -- Other -- | Assignee: | Jaroslav Tulach <jtulach> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jstola, mmirilovic |
Priority: | P2 | Keywords: | REGRESSION |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 211176 | ||
Bug Blocks: | |||
Attachments: | 79227 |
Description
Jana Maleckova
2006-06-27 15:40:06 UTC
Created attachment 31422 [details]
79227
It seems to be a problem of ErrorManager. It is not able to annotate ClassNotFoundException. It calls initCause() on CNFE, but CNFE refuses such a call. See also issue 79015 and revision 1.5 of Exceptions class for a similar problem. Yarda, please look at this. Checking in src/org/openide/ErrorManager.java; /shared/data/ccvs/repository/openide/util/src/org/openide/ErrorManager.java,v <-- ErrorManager.java new revision: 1.10; previous revision: 1.9 done Checking in test/unit/src/org/openide/ErrorManagerDelegatesToLoggingTest.java; /shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/ErrorManagerDelegatesToLoggingTest.java,v <-- ErrorManagerDelegatesToLoggingTest.java new revision: 1.5; previous revision: 1.4 The behaviour is different by now, but the ErrorManager still seems to have problem with annotations of CNFE. The mentioned use case leads to the CNFE that is processed in MetaComponentCreator.showClassLoadingErrorMessage(). The exception is annotated and then displayed using USER and INFORMATIONAL levels. Unfortunately a dialog corresponding to EXCEPTION level is displayed and the message shown in the dialog is not the one used in annotation. Ok, I'll check it tomorrow, but do you guys know that you should replace usage of ErrorManager with Logger as described at: http://www.netbeans.org/download/dev/javadoc/org-openide-util/org/openide/util/doc-files/logging.html Right, the USER mode did not worked for ClassNotFoundException. Fixed. However think about the usage of Logging, please. /shared/data/ccvs/repository/core/test/unit/src/org/netbeans/core/NbErrorManagerTest.java,v <-- NbErrorManagerTest.java new revision: 1.13; previous revision: 1.12 done Checking in openide/util/src/org/openide/ErrorManager.java; /shared/data/ccvs/repository/openide/util/src/org/openide/ErrorManager.java,v <-- ErrorManager.java new revision: 1.11; previous revision: 1.10 verified on NetBeans IDE Dev (Build 200610261800) 1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99 Windows XP version 5.1 running on x86 cs_CZ (nb); Cp1250 it's OK |