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 241857 - java.lang.IllegalStateException: Bundle "reference:file:ide/modules/com-jcraft-jsch.jar" has been uninstalled
Summary: java.lang.IllegalStateException: Bundle "reference:file:ide/modules/com-jcraf...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-14 07:10 UTC by MackSix
Modified: 2014-02-18 03:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log File (82.61 KB, text/plain)
2014-02-14 07:10 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-02-14 07:10:55 UTC
Created attachment 145180 [details]
Log File

I just ran a Qt project and then added a 2nd tool set to C++. I closed the Options dialog and shut down NetBeans and a bunch of exception dialogs popped up on the screen and went away.

See attached log file.

Product Version: NetBeans IDE Dev (Build 201402120001)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Alexander Simon 2014-02-14 08:17:37 UTC
Reassign to evaluation.
Comment 2 Jaroslav Tulach 2014-02-14 11:37:42 UTC
bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped and only later 
org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.call(NativeProcessBuilder.java:208)
calls into an OSGi bundle.

CND should stop all background tasks when the system is shutting down. Or you can just ignore the exception.
Comment 3 Alexander Simon 2014-02-14 13:15:58 UTC
(In reply to Jaroslav Tulach from comment #2)
> bundle org.eclipse.osgi@3.8.0.v20120529-1548 stopped and only later 
> org.netbeans.modules.nativeexecution.api.NativeProcessBuilder.
> call(NativeProcessBuilder.java:208)
> calls into an OSGi bundle.
> 
> CND should stop all background tasks when the system is shutting down. Or
> you can just ignore the exception.

I do not see way how it can be fixed on client side.
Please fix it in platform.
Comment 4 Jaroslav Tulach 2014-02-15 06:20:39 UTC
Wait for your own background tasks to finish, before you let the system shut down. Do it in ModuleInstaller.close().
Comment 5 Alexander Simon 2014-02-15 07:08:38 UTC
(In reply to Jaroslav Tulach from comment #4)
> Wait for your own background tasks to finish, before you let the system shut
> down. Do it in ModuleInstaller.close().

So you suggest modify all runnable in IDE and block shutdowning in all runnable? It is unreal. And why IDE should wait demon runnable?

IMHO bundle org.eclipse.osgi@3.8.0.v20120529-1548 should stop only after all threads have died.

Other solution: Stop all logers when bundle is stopped.
Comment 6 Alexander Simon 2014-02-17 09:29:50 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/7551442e446a
Comment 7 Quality Engineering 2014-02-18 03:15:33 UTC
Integrated into 'main-silver', will be available in build *201402180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7551442e446a
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #241857 java.lang.IllegalStateException: Bundle "reference:file:ide/modules/com-jcraft-jsch.jar" has been uninstalled