This discussion is archived
2 Replies Latest reply: Feb 28, 2013 12:49 AM by alabala_kiril RSS

Security Exception when loading Image in the background?

alabala_kiril Newbie
Currently Being Moderated
I've written a javafx app running in the browser. It loads a bunch of images in the background. It worked fine prior JRE 7 u11.
However it is broken since JRE 7 u13. Images are not loaded correctly, failing with a SecurityException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
     at java.lang.SecurityManager.checkPermission(
     at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
     at sun.plugin2.applet.FXAppletSecurityManager.checkAccess(Unknown Source)
     at java.lang.ThreadGroup.checkAccess(
     at java.lang.Thread.init(
     at java.lang.Thread.<init>(
     at com.sun.javafx.runtime.async.BackgroundExecutor$1.newThread(
     at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(
     at java.util.concurrent.ThreadPoolExecutor.addWorker(
     at java.util.concurrent.ThreadPoolExecutor.execute(
     at com.sun.javafx.runtime.async.AbstractAsyncOperation.start(
     at javafx.scene.image.Image$ImageTask.start(
     at javafx.scene.image.Image.cycleTasks(
     at javafx.scene.image.Image.access$200(
     at javafx.scene.image.Image$ImageTask.onCompletion(
     at javafx.scene.image.Image$ImageTask.onCompletion(
     at com.sun.javafx.runtime.async.AbstractAsyncOperation$
     at com.sun.javafx.application.PlatformImpl$4$
     at com.sun.javafx.application.PlatformImpl$4$
     at Method)
     at com.sun.javafx.application.PlatformImpl$
     at Method)
If I dont' load the Image in the background -> it's working. Is it a bug?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points