Author Topic: permissions DENIED!  (Read 4244 times)

0 Members and 1 Guest are viewing this topic.

Offline Snake X

  • Ancient Veteran
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 810
  • Rating: +33/-8
    • View Profile
permissions DENIED!
« on: August 08, 2011, 04:40:44 pm »
This line: Clipboard clipboard = getToolkit().getSystemClipboard();

will not let my applet work. it gives this:

Code: [Select]
--------------------Configuration: link generator - JDK version 1.6.0_26 <Default> - <Default>--------------------
java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkSystemClipboardAccess(SecurityManager.java:1377)
at sun.awt.windows.WToolkit.getSystemClipboard(WToolkit.java:650)
at link_generator.<init>(link_generator.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:662)

Process completed.

edit: and yes i have tried looking this up.
« Last Edit: August 08, 2011, 04:41:24 pm by Snake X »
Loved this place, still the best producers of power metal, and sparked my dreams of coding.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: permissions DENIED!
« Reply #1 on: August 08, 2011, 04:47:43 pm »
your problem is that the applet is in a sandboxed environment.

Look here right under where it says "Unsigned applets cannot perform the following operations:"

Also, check out this page for common applet problems.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: permissions DENIED!
« Reply #2 on: August 08, 2011, 04:48:55 pm »
It looks like you're trying to access something improperly. First of all, you should check that your types are all in order. Also, make sure that you have something in the clipboard beforehand to test it with. Some systems respond differently when the clipboard is empty.

EDIT: Graphmastur is right.
« Last Edit: August 08, 2011, 04:49:43 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: permissions DENIED!
« Reply #3 on: August 08, 2011, 04:50:26 pm »
It looks like you're trying to access something improperly. First of all, you should check that your types are all in order. Also, make sure that you have something in the clipboard beforehand to test it with. Some systems respond differently when the clipboard is empty.

EDIT: Graphmastur is right.
and graphmastur is a ninja!

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: permissions DENIED!
« Reply #4 on: August 08, 2011, 04:51:23 pm »
* Qwerty.55 was double Ninja'd
* Qwerty.55 uses !quote 100
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: permissions DENIED!
« Reply #5 on: August 08, 2011, 04:52:01 pm »
* Qwerty.55 was double Ninja'd
* Qwerty.55 uses !quote 100
* King Graphmastur uses !quote !quote