FXML doesn't work in applet mode

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 7u40, 8
    • Component/s: javafx
    • None

      Running FXML-LoginDemo with enabled security manager throws exception:

      java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
              at java.security.AccessController.checkPermission(AccessController.java:560)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
              at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1679)
              at java.lang.Class.checkMemberAccess(Class.java:2174)
              at java.lang.Class.getDeclaredFields(Class.java:1759)
              at sun.reflect.misc.FieldUtil.getDeclaredFields(FieldUtil.java:51)
              at javafx.fxml.FXMLLoader.getControllerFields(FXMLLoader.java:2577)
              at javafx.fxml.FXMLLoader.access$1400(FXMLLoader.java:66)
              at javafx.fxml.FXMLLoader$ValueElement.processValue(FXMLLoader.java:653)
              at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:570)
              at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2348)
              at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2164)
              at demo.Main.replaceSceneContent(Main.java:94)
              at demo.Main.gotoLogin(Main.java:80)
              at demo.Main.start(Main.java:43)
              at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
              at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:217)
              at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:180)
              at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:177)
              at java.security.AccessController.doPrivileged(Native Method)
              at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:177)
              at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
              at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
              at java.lang.Thread.run(Thread.java:722)

            Assignee:
            Eva Krejčířová (Inactive)
            Reporter:
            Martin Šoch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: