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: | NPE thrown when runnig project opened during class path scan | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | jglick |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 59972 | ||
Attachments: |
NPE
Exception_II |
Description
Jiri Prox
2005-05-19 10:54:57 UTC
Created attachment 22193 [details]
NPE
ClassIndex.getIndex (mofPackage) returns null. What should I do when this happen? *** Issue 59201 has been marked as a duplicate of this issue. *** Increasing priority since the duplicate is a P2. *** Issue 59367 has been marked as a duplicate of this issue. *** I don't understand why this issue is P2. Anyway, Tomasi, please add JMManager.waitScanFinished() before starting your transaction. It should help. I have this bug happen repeatedly. It is quite common now that background scanning is on. I agree with a P2 designation. BTW aren't there duplicates of this floating around IZ? Guys, please note that this issue is <a href="http://qa.netbeans.org/q-builds/Q-build-report-200506142000.html">Q-build</a> stopper. Please fix ASAP and commit also to QBE200506142000 branch, don't forget that it's your responsibility to check if the fix is good enought and safe. OK, I will try to use the JMManager.waitScanFinished(). It is strange that the user cannot run project before the scanning finished but there is probably no nicer solution and nearly nothing works in this state. Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectUtil.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectUtil.java,v <-- J2SEProjectUtil.java new revision: 1.15; previous revision: 1.14 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties,v <-- Bundle.properties new revision: 1.77; previous revision: 1.76 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java,v <-- MainClassChooser.java new revision: 1.28; previous revision: 1.27 done Tomasi, I have to reopen this bug. I applied your patch to build from qbuild branch and .. an attached exception is thrown for same test case Created attachment 22806 [details]
Exception_II
Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/Bundle.properties; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/Bundle.properties,v <-- Bundle.properties new revision: 1.21; previous revision: 1.20 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java,v <-- J2SEActionProvider.java new revision: 1.43; previous revision: 1.42 done I verified this issue in the continuous build 20050621-0235. The new "Run project" informational dialog (Please wait, classpath scaning still in progress - Cancel Run Project) is displayed. The dialog is automatically closed when classpath scaning is finished. Integrated into QBE200506142000 branch Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/Bundle.properties; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/Bundle.properties,v <-- Bundle.properties new revision: 1.20.20.1; previous revision: 1.20 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEActionProvider.java,v <-- J2SEActionProvider.java new revision: 1.42.6.1; previous revision: 1.42 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectUtil.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProjectUtil.java,v <-- J2SEProjectUtil.java new revision: 1.14.2.1; previous revision: 1.14 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/Bundle.properties,v <-- Bundle.properties new revision: 1.76.6.1; previous revision: 1.76 done Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java,v <-- MainClassChooser.java new revision: 1.27.20.1; previous revision: 1.27 done *** Issue 60439 has been marked as a duplicate of this issue. *** *** Issue 60015 has been marked as a duplicate of this issue. *** |