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

[XWayland] TokenStorage fails under Security Manager

XMLWordPrintable

    • b22

        Throwing following exception on XWayland:

        WARNING: A command line option has enabled the Security Manager
        WARNING: The Security Manager is deprecated and will be removed in a future release
        java.lang.ExceptionInInitializerError
        at java.desktop/sun.awt.screencast.ScreencastHelper.loadPipewire(Native Method)
        at java.desktop/sun.awt.screencast.ScreencastHelper.<clinit>(ScreencastHelper.java:73)
        at java.desktop/sun.awt.X11.XRobotPeer.getRGBPixel(XRobotPeer.java:126)
        at java.desktop/java.awt.Robot.getPixelColor(Robot.java:450)
        at ReadDisplayPixelsPermission.main(ReadDisplayPixelsPermission.java:31)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "user.home" "read")
        at java.base/java.security.AccessControlContext.checkPermission(AccessControlContext.java:488)
        at java.base/java.security.AccessController.checkPermission(AccessController.java:1071)
        at java.base/java.lang.SecurityManager.checkPermission(SecurityManager.java:411)
        at java.base/java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1146)
        at java.base/java.lang.System.getProperty(System.java:1003)
        at java.desktop/sun.awt.screencast.TokenStorage.setupPath(TokenStorage.java:88)
        at java.desktop/sun.awt.screencast.TokenStorage.<clinit>(TokenStorage.java:73)
        ... 9 more

              azvegint Alexander Zvegintsev
              azvegint Alexander Zvegintsev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: