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: | IllegalArgumentException: Attempt to remove nonexistent path C:\Program Files\Java\jdk1.7.0\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\s | ||
---|---|---|---|
Product: | projects | Reporter: | tim_sa <tim_sa> |
Component: | Generic Infrastructure | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexvsimon, cyhelsky, dds.dhawal, dkonecny, jglick, jkovalsky, jomello_br, jportway, k4emic, mhmdchebbi, RageSteel, stefan79, sunbiz, tmysik, tzezula, yardus |
Priority: | P2 | Keywords: | ERGONOMICS |
Version: | 7.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 180922 |
Bug Depends on: | |||
Bug Blocks: | 200500 | ||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
tim_sa
2011-09-05 09:23:56 UTC
Created attachment 110387 [details]
stacktrace
Created attachment 111100 [details]
stacktrace
Opened an FX sample on Linux then closed it.
*** Bug 201331 has been marked as a duplicate of this bug. *** *** Bug 199590 has been marked as a duplicate of this bug. *** *** Bug 201710 has been marked as a duplicate of this bug. *** I closed a few instances of this issue for different project types which I found as deplicate of this one. It does look like they all have the same cause. I evaluated web project and there does not seem to be anything wrong - the code has been this way for a while. I'm adding more diagnostics to GlobalPathRegistry.unregister: web-main#1f10c327be57 Integrated into 'main-golden', will be available in build *201109260601* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1f10c327be57 User: David Konecny <dkonecny@netbeans.org> Log: #201617 - added more diagnostics From the last exception report it seems that either the CP was not registered in the GPR or someone else has removed it. I will add more logging keeps stack traces of register and unregister. Created attachment 111627 [details]
stacktrace
Closed two projects after importing + my settings + restarting NB.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=180922 Created attachment 111728 [details]
stacktrace
closing projects while initialization of projects on IDE startup
The logging I added is not particularly helpful to identify the cause. In the http://statistics.netbeans.org/exceptions/exception.do?id=531746 case the path being removed is (classpath/boot): C:\Program Files\JDK1.6\jre\lib\resources.jar C:\Program Files\JDK1.6\jre\lib\rt.jar C:\Program Files\JDK1.6\jre\lib\sunrsasign.jar C:\Program Files\JDK1.6\jre\lib\jsse.jar C:\Program Files\JDK1.6\jre\lib\jce.jar C:\Program Files\JDK1.6\jre\lib\charsets.jar C:\Program Files\JDK1.6\jre\lib\modules\jdk.boot.jar C:\Program Files\JDK1.6\jre\classes C:\Program Files\JDK1.6\jre\lib\ext\dnsns.jar C:\Program Files\JDK1.6\jre\lib\ext\localedata.jar C:\Program Files\JDK1.6\jre\lib\ext\sunjce_provider.jar but one which is registered is (notice that first file is not present in classpath being removed): C:\Program Files\NetBeans 6.9.1\ide\modules\ext\jaxb\api\jaxb-api.jar C:\Program Files\JDK1.6\jre\lib\resources.jar C:\Program Files\JDK1.6\jre\lib\rt.jar C:\Program Files\JDK1.6\jre\lib\sunrsasign.jar C:\Program Files\JDK1.6\jre\lib\jsse.jar C:\Program Files\JDK1.6\jre\lib\jce.jar C:\Program Files\JDK1.6\jre\lib\charsets.jar C:\Program Files\JDK1.6\jre\lib\modules\jdk.boot.jar C:\Program Files\JDK1.6\jre\classes C:\Program Files\JDK1.6\jre\lib\ext\dnsns.jar C:\Program Files\JDK1.6\jre\lib\ext\localedata.jar C:\Program Files\JDK1.6\jre\lib\ext\sunjce_provider.jar In the case of http://statistics.netbeans.org/exceptions/exception.do?id=532266 it looks like classpath/boot was already removed. In both cases IDE.log shows that IDE was started with some set of module and later another set of modules was enabled. Perhaps that's the key to reproduce this problem? Created attachment 111751 [details]
stacktrace
Startet NetBeans after a new installation and closed than my projects.
Created attachment 111757 [details]
stacktrace
1. Opened a J2SE project in clean installation
2. Ergonomics kicks in and enables Java SE support
3. Closed the project
Caused by fix of issue #200500 (http://hg.netbeans.org/main-golden/rev/d90c6e4868ea). The following happens: The org.netbeans.modules.ide.ergonomics.fod.FeatureProjectFactory$FeatureNonProject creates merged POH (UILookupMergerSupport.OpenHookImpl) for org.netbeans.modules.ide.ergonomics.fod.FeatureProjectFactory$FeatureNonProject$FeatureOpenHook which is the defaultInstance. The UILookupMergerSupport.OpenHookImpl calls defaultInstance.projectOpened() on the FeatureOpenHook which activates the features, changes Lookup and adds POH of the real project to the old lookup. The UILookupMergerSupport.OpenHookImpl iterates over the old lookup which was extended by real project's POHs. But the real project's POH is also UILookupMergerSupport.OpenHookImpl as the J2SEProject also creates merged lookup. As the real project POH is instanceof OpenHookImpl it's not executed. *** Bug 192386 has been marked as a duplicate of this bug. *** In PHP, we also have a problem with project opening/closing - OPH is called twice in a row, see issue #192386 if you are interested (might be already fixed, exception reports are from NB 7.1 Beta). Anyway, I will mark it as a duplicate. *** Bug 203233 has been marked as a duplicate of this bug. *** The issue #203233 is also duplicate of this one. The POH is not called and no CPs are registered in GPR (so the java infrastructure does not know about the project) => no scan is started and the java waits for the initial scan. The CoS debug, run, profile as well as Go To Type, Symbol and other Java features does not work until you open the first java file and forces the scan. Created attachment 111791 [details]
stacktrace
popped on closing of anagram game
Created attachment 111951 [details] stacktrace I had ReproduceNB Maven projects [1] opened and compiled. On the parent project called "Close Dependent Projects" and then "Close Project" on the remaining parent project generated this exception. [1] http://netbeans.org/bugzilla/attachment.cgi?id=111943 (In reply to comment #15) > Caused by fix of issue #200500 > (http://hg.netbeans.org/main-golden/rev/d90c6e4868ea). OK, I will back that out and look for a different fix. core-main #a1e1ee18d049 Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/a1e1ee18d049 User: Jesse Glick <jglick@netbeans.org> Log: #201617: IllegalArgumentException: Attempt to remove nonexistent path C:\Program Files\Java\jdk1.7.0\jre\lib\resources.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\rt.jar;C:\Program Files\Java\jdk1.7.0\jre\lib\s Backing out fix of bug #200500 which seems to have introduced regressions. |