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.
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
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.
Wrong component anyway. Do not use the "apisupport" component unless you are really referring to a bug in the Open APIs Support module.
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.