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: | IllegalStateException if IMT closed prematurely | ||
---|---|---|---|
Product: | java | Reporter: | _ gtzabari <gtzabari> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | genero, jkovar |
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Proposed patch to fix this bug.
Corrected patch for this bug. |
Description
_ gtzabari
2003-04-23 22:26:42 UTC
This (or similar) bug appears randomly on S1S5. Here is exception I've got after numerous attempts to reproduce it: S1S5 jdk1.4.1_02 Annotation: Exception occurred in Request Processor java.lang.NullPointerException at org.netbeans.modules.java.imptool.ImpDataSource.createRootFQNNode(ImpDataSource.java:278) at org.netbeans.modules.java.imptool.ImpDataSource.runSilentFromNextStage(ImpDataSource.java:552) at org.netbeans.modules.java.imptool.ImpToolExecutor.execute(ImpToolExecutor.java:85) at org.netbeans.modules.java.imptool.ImpToolAction.performAction(ImpToolAction.java:41) at org.openide.util.actions.NodeAction.performAction(NodeAction.java:184) at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:175) at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:97) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670) Gili could you please add a testcase for this bug? The problem is a variant of reader/writer mistiming. If Initializazion of data source called during asynchronious GUI job hasn't finished at the moment when user press "Finish" button then one of the earlier reported exception may appear. To fix this problem I propose to disable "Finish" and "Next" buttons during asynchronious initilalization of data source. Once data has initialized buttons are enabled again. This fix is doesn't lock "Cancel" button so user still have an option to interrupt the process. Created attachment 11607 [details]
Proposed patch to fix this bug.
Created attachment 11645 [details]
Corrected patch for this bug.
*** Issue 36508 has been marked as a duplicate of this issue. *** Evgeni, is this issue solved? Closing as WONTFIX. Import Management Tool was replaced by Fix Imports action |