java.lang.SecurityException: reset of script classpath is forbidden.

freeplane | petonic | 12 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Logging Groovy Debug Output (or access to Groovy Console)

    freeplane | 12 months ago | petonic
    java.lang.SecurityException: reset of script classpath is forbidden.
  2. 0

    sourceforge.net | 1 year ago
    java.lang.SecurityException: Prohibited package name: java.awt         at java.lang.ClassLoader.defineClass(ClassLoader.java:477, Compiled Code)         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111, Compiled Code)         at java.net.URLClassLoader.defineClass(URLClassLoader.java:248, Compiled Code)         at java.net.URLClassLoader.access$100(URLClassLoader.java:56, Compiled Code)         at java.net.URLClassLoader$1.run(URLClassLoader.java:195, Compiled Code)         at java.security.AccessController.doPrivileged(Native Method)         at java.net.URLClassLoader.findClass(URLClassLoader.java:188, Compiled Code)         at java.lang.ClassLoader.loadClass(ClassLoader.java:297, Compiled Code)         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286, Compiled Code)         at java.lang.ClassLoader.loadClass(ClassLoader.java:253, Compiled Code)         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313, Compiled Code)         at foxtrot.Worker$EventPump.pumpEvents(Worker.java:239, Compiled Code)         at foxtrot.Worker$EventPump.access$200(Worker.java:200, Compiled Code)         at foxtrot.Worker.post(Worker.java:103, Compiled Code)         at com.calgis.factory.production.gui.panels.SetupPanel.opticalBoxActionPerformed(SetupPanel.java:1507, Compiled Code)         at com.calgis.factory.production.gui.panels.SetupPanel.access$1300(SetupPanel.java:28, Compiled Code)         at com.calgis.factory.production.gui.panels.SetupPanel$16.actionPerformed(SetupPanel.java:571, Compiled Code)         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450, Compiled Code)         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504, Compiled Code)         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378, Compiled Code)         at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:268, Compiled Code)         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216, Compiled Code)         at java.awt.Component.processMouseEvent(Component.java:3715, Compiled Code)         at java.awt.Component.processEvent(Component.java:3544, Compiled Code)         at java.awt.Container.processEvent(Container.java:1164, Compiled Code)         at java.awt.Component.dispatchEventImpl(Component.java:2593, Compiled Code)         at java.awt.Container.dispatchEventImpl(Container.java:1213, Compiled Code)         at java.awt.Component.dispatchEvent(Component.java:2497, Compiled Code)         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451, Compiled Code)         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216, Compiled Code)         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125, Compiled Code)         at java.awt.Container.dispatchEventImpl(Container.java:1200, Compiled Code)         at java.awt.Window.dispatchEventImpl(Window.java:914, Compiled Code)         at java.awt.Component.dispatchEvent(Component.java:2497, Compiled Code)         at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)        

    Root Cause Analysis

    1. java.lang.SecurityException

      reset of script classpath is forbidden.

      at org.freeplane.plugin.script.ScriptResources.setClasspath()
    2. org.freeplane.plugin
      ScriptingConfiguration.<init>
      1. org.freeplane.plugin.script.ScriptResources.setClasspath(ScriptResources.java:54)
      2. org.freeplane.plugin.script.ScriptingConfiguration.<init>(ScriptingConfiguration.java:128)
      2 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    4. Groovy
      AbstractCallSite.callConstructor
      1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
      2. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
      3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
      4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
      5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:186)
      5 frames
    5. org.hardknots.wikd
      WikdShell$newScript.callCurrent
      1. org.hardknots.wikd.wikdshell.WikdShell.newScript(WikdShell.groovy:102)
      2. org.hardknots.wikd.wikdshell.WikdShell$newScript.callCurrent(Unknown Source)
      2 frames
    6. Groovy
      Console.<init>
      1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
      2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
      3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
      4. groovy.ui.Console.<init>(Console.groovy:217)
      5. groovy.ui.Console.<init>(Console.groovy:209)
      5 frames
    7. org.hardknots.wikd
      WikdShell.<init>
      1. org.hardknots.wikd.wikdshell.WikdShell.<init>(WikdShell.groovy)
      1 frame
    8. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    9. Groovy
      AbstractCallSite.callConstructor
      1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
      2. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
      3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
      4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
      5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
      5 frames
    10. Unknown
      wikdShell.run
      1. wikdShell.run(wikdShell.groovy:7)
      1 frame
    11. org.freeplane.plugin
      ExecuteScriptAction.actionPerformed
      1. org.freeplane.plugin.script.GroovyScript.execute(GroovyScript.java:134)
      2. org.freeplane.plugin.script.ExecuteScriptAction.actionPerformed(ExecuteScriptAction.java:90)
      2 frames
    12. org.freeplane.core
      AccelerateableAction.actionPerformed
      1. org.freeplane.core.ui.AccelerateableAction.actionPerformed(AccelerateableAction.java:177)
      1 frame
    13. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:376)
      6. com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:125)
      7. java.awt.MenuItem.processActionEvent(MenuItem.java:669)
      8. java.awt.MenuItem.processEvent(MenuItem.java:628)
      9. java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:351)
      10. java.awt.MenuComponent.dispatchEvent(MenuComponent.java:339)
      11. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:761)
      12. java.awt.EventQueue.access$500(EventQueue.java:97)
      13. java.awt.EventQueue$3.run(EventQueue.java:709)
      14. java.awt.EventQueue$3.run(EventQueue.java:703)
      15. java.security.AccessController.doPrivileged(Native Method)
      16. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      17. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      18. java.awt.EventQueue$4.run(EventQueue.java:731)
      19. java.awt.EventQueue$4.run(EventQueue.java:729)
      20. java.security.AccessController.doPrivileged(Native Method)
      21. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      22. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      23. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      24. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      25. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      26. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      27. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      28. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      28 frames