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 33382 - troubles with "test module" testing two dependant modules
Summary: troubles with "test module" testing two dependant modules
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-03 20:28 UTC by adel
Modified: 2008-12-23 08:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description adel 2003-05-03 20:28:37 UTC
Iv created a first module and then a second witch is 
dependant on the first. The  second module creates a 
menuitem under the "File" menu to run a module specific 
action. When trying to  execute again the first module it 
tries disables the second before, witch is logic, but i 
got an AccessControlException and all the "File" menu 
items disapear 
here is the stack trace :
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission getClassLoader)
	at 
java.security.AccessControlContext.checkPermission
(AccessControlContext.java:270)
	at java.security.AccessController.checkPermission
(AccessController.java:401)
	at java.lang.SecurityManager.checkPermission
(SecurityManager.java:542)
	at org.netbeans.TopSecurityManager.checkPermission
(TopSecurityManager.java:270)
	at java.lang.Class.getClassLoader(Class.java:496)
	at org.openide.util.NbBundle.getBundle
(NbBundle.java:317)
	at org.openide.util.NbBundle.getMessage
(NbBundle.java:563)
	at 
de.lceconsulting.ecodet.atroidimport.gui.AtroidImportAction
.getName(Unknown Source)
	at org.openide.util.actions.SystemAction.getValue
(SystemAction.java:135)
	at org.openide.awt.Actions$MenuBridge.updateState
(Actions.java:476)
	at org.openide.awt.Actions.connect
(Actions.java:105)
	at org.openide.awt.Actions.connect(Actions.java:92)
	at org.openide.awt.Actions$MenuItem.<init>
(Actions.java:722)
	at 
org.openide.util.actions.CallableSystemAction.getMenuPresen
ter(CallableSystemAction.java:35)
	at 
org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance
(MenuBar.java:431)
	at 
org.openide.loaders.FolderInstance.defaultProcessObjects
(FolderInstance.java:705)
	at org.openide.loaders.FolderInstance.access$000
(FolderInstance.java:69)
	at org.openide.loaders.FolderInstance$2.run
(FolderInstance.java:592)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.awt.AWTTask.run(AWTTask.java:29)
	at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:178)
	at java.awt.EventQueue.dispatchEvent
(EventQueue.java:443)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:191)
	at 
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:144)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:138)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:130)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:98)

Its a problem of ClassLoader since every module has its 
proper one. But i dont know really how to cope with this
Comment 1 adel 2003-05-04 10:48:03 UTC
The problem was fixed, its was a call to scond module 
action from the first module. The access denied in this 
case is logic. I think i like this idea of classloader for 
every module.
Comment 2 Jesse Glick 2003-05-05 15:26:40 UTC
Wrong component anyway. Do not use the "apisupport" component unless
you are really referring to a bug in the Open APIs Support module.
Comment 3 adel 2003-05-05 15:37:54 UTC
Ok thanks ... But i didn't use any API support component.. 
it was only a mistake in the dependency between the two 
modules i was testing.