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

java/awt/Toolkit/GetScreenInsetsCustomGC/GetScreenInsetsCustomGC.java failed with 'Cannot invoke "sun.awt.X11GraphicsDevice.getInsets()" because "device" is null'

XMLWordPrintable

    • b26
    • x86_64
    • linux
    • Verified

      The following test failed in the JDK21 CI:

      java/awt/Toolkit/GetScreenInsetsCustomGC/GetScreenInsetsCustomGC.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(7/297)----------
      command: main GetScreenInsetsCustomGC
      reason: Assumed action based on file name: run main GetScreenInsetsCustomGC
      started: Thu May 25 02:39:08 UTC 2023
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      finished: Thu May 25 02:39:08 UTC 2023
      elapsed time (seconds): 0.224
      ----------configuration:(3/40)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(12/893)----------
      java.lang.NullPointerException: Cannot invoke "sun.awt.X11GraphicsDevice.getInsets()" because "device" is null
      at java.desktop/sun.awt.X11.XToolkit.getScreenInsets(XToolkit.java:891)
      at GetScreenInsetsCustomGC.main(GetScreenInsetsCustomGC.java:81)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1583)

      JavaTest Message: Test threw exception: java.lang.NullPointerException: Cannot invoke "sun.awt.X11GraphicsDevice.getInsets()" because "device" is null
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.NullPointerException: Cannot invoke "sun.awt.X11GraphicsDevice.getInsets()" because "device" is null
      ----------rerun:(44/5845)*----------

            mkartashev Maxim Kartashev
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: