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 221614 - [73cat] IllegalStateException: Bundle "reference:file:ide/modules/org-eclipse-jgit.jar" has been uninstalled
Summary: [73cat] IllegalStateException: Bundle "reference:file:ide/modules/org-eclipse...
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: All All
: P4 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 235358 (view as bug list)
Depends on:
Blocks: 247735
  Show dependency tree
 
Reported: 2012-11-07 11:02 UTC by misterm
Modified: 2014-10-22 12:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 194684


Attachments
stacktrace (2.37 KB, text/plain)
2012-11-07 11:02 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2012-11-07 11:02:52 UTC
Build: NetBeans IDE Dev (Build 20121104-a43924360613)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08
OS: Windows 7

Stacktrace: 
java.lang.IllegalStateException: Bundle "reference:file:ide/modules/org-eclipse-jgit.jar" has been uninstalled
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.checkValid(AbstractBundle.java:1175)
   at org.eclipse.osgi.framework.internal.core.BundleHost.checkLoader(BundleHost.java:183)
   at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:225)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
   at org.netbeans.core.netigso.NetigsoLoader.doLoadClass(NetigsoLoader.java:104)
   at org.netbeans.NetigsoModule$DelegateCL.doLoadClass(NetigsoModule.java:250)
Comment 1 misterm 2012-11-07 11:02:53 UTC
Created attachment 127283 [details]
stacktrace
Comment 2 Jaroslav Tulach 2012-11-09 17:37:43 UTC
I can't be fully sure, but if it is possible to leave a background Git task running while the IDE shuts down, then exception of this kind can happen.

OSGi frameworks refuse to load classes when they are shut down. 

A natural fix would be to have @OnStop Callable<?> to prevent shutdown while Git tasks are running. Possibly, you can use progress API to indicate background Git tasks and then you should get the behavior for free.
Comment 3 Ondrej Vrabec 2012-11-09 17:52:02 UTC
misterm: did it happen during IDE shutdown? If so then how were you able to upload the exception? Did the exception actually canceled the shutdown?
Comment 4 misterm 2012-11-09 17:54:12 UTC
During shutdown, it showed the dialog and allowed me to submit it. Then it hit CTRL + C to terminate the IDE or had to kill the process manually, I can't remember this part. I use my own daily builds to work, so time is money :-)
Comment 5 Ondrej Vrabec 2012-11-09 17:59:16 UTC
i see
Comment 6 Ondrej Vrabec 2013-09-02 07:19:40 UTC
*** Bug 235358 has been marked as a duplicate of this bug. ***
Comment 7 Ondrej Vrabec 2013-12-04 13:03:08 UTC
fix: http://hg.netbeans.org/core-main/rev/53eeedd59d99
Comment 8 Quality Engineering 2013-12-05 02:53:17 UTC
Integrated into 'main-silver', will be available in build *201312050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/53eeedd59d99
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #221614 - [73cat] IllegalStateException: Bundle "reference:file:ide/modules/org-eclipse-jgit.jar" has been uninstalled
- cancel the running refresh
- block netigso from shutting down until git refresh finishes or a small amount of time passes
Comment 9 Quality Engineering 2013-12-06 02:46:14 UTC
Integrated into 'main-silver', will be available in build *201312060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/da05cf580d1b
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #221614 - [73cat] IllegalStateException: Bundle "reference:file:ide/modules/org-eclipse-jgit.jar" has been uninstalled
implementing the delegating method would also be useful