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 114847

Summary: Exception after deactivation
Product: platform Reporter: novakm <novakm>
Component: Module SystemAssignee: Jesse Glick <jglick>
Status: RESOLVED WONTFIX    
Severity: blocker CC: jrechtacek
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception Stacktrace

Description novakm 2007-09-06 09:20:06 UTC
I've deactivated the whole mobility category in plugins manager and following exception was thrown:

Annotation: Offending classloader:
org.netbeans.StandardModule$OneModuleClassLoader@1347d33[org.netbeans.modules.mobility.editor]
Annotation: Offending classloader:
org.netbeans.StandardModule$OneModuleClassLoader@1347d33[org.netbeans.modules.mobility.editor]
Offending classloader: org.netbeans.StandardModule$OneModuleClassLoader@1347d33[org.netbeans.modules.mobility.editor]
Offending classloader: org.netbeans.StandardModule$OneModuleClassLoader@1347d33[org.netbeans.modules.mobility.editor]
Caused: java.util.MissingResourceException: No such bundle org.netbeans.modules.mobility.editor.Bundle
	at org.openide.util.NbBundle.getBundle(NbBundle.java:416)
	at org.openide.util.NbBundle.getBundle(NbBundle.java:364)
	at org.openide.util.NbBundle.getMessage(NbBundle.java:607)
	at org.netbeans.modules.mobility.editor.J2MEKit.createMenu(J2MEKit.java:92)
        ...

Although the exception comes from openide, I've filed it for mobility as the resources are missing there probably.
Please reassign if that's not the case.

-----
Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709060000)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Comment 1 novakm 2007-09-06 09:20:34 UTC
Created attachment 48232 [details]
Exception Stacktrace
Comment 2 Lukas Hasik 2007-09-06 10:21:37 UTC
reassigning for evaluation
Comment 3 Adam Sotona 2007-09-06 11:42:00 UTC
I don't know how can I affect exceptions after deactivation of our modules.
When the modules provide DataLoaders, EditorKits, etc... many references remain in the running IDE and many exceptions
are thrown then.
Is there any way how to solve it (for example some module flag "restart after deactivation")?
Comment 4 Jesse Glick 2007-09-06 16:56:38 UTC
AFAIK Jirka plans to disable "live" deactivation for 6.0. It looks most likely that there is a bug in the mobility
editor kit - it is failing to remove itself during module deactivation? But hard to tell for sure.
Comment 5 Jesse Glick 2008-07-30 03:46:14 UTC
No deactivation in 6.0+ (unless you use the Module Manager), so I don't plan to fix. No idea how I could fix anyway -
some asynchronous code is running using stale data. Would require major overhaul of NB internals to fix this kind of bug
reliably.