Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8046826

All permission fx javaws app could not set Security Manager to null.

    XMLWordPrintable

Details

    • b100

    Description

      JavaFX app with all permissions cannot set SecurityManager to null in some cases when run as a Java Web Start application.

      Here is the exception from the test case.

      =================
      java.lang.SecurityException: JVM Shared, not allowed to set security manager
      at sun.plugin2.applet.SecurityManagerHelper.checkPermissionHelper(Unknown Source)
      at sun.plugin2.applet.FXAppletSecurityManager.checkPermission(Unknown Source)
      at java.lang.System.setSecurityManager0(Unknown Source)
      at java.lang.System.setSecurityManager(Unknown Source)
      at FXSetSM2NullApp.start(FXSetSM2NullApp.java:24)
      at com.sun.javafx.applet.FXApplet2$2.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$6$1.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$6$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$6.run(Unknown Source)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$300(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$4$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      >>>Test FAILed, cause: java.lang.SecurityException: JVM Shared, not allowed to set security manager
      ==============

      Attachments

        Issue Links

          Activity

            People

              herrick Andy Herrick (Inactive)
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: