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

java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java: NPE

XMLWordPrintable

    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.16299.371]

      A DESCRIPTION OF THE PROBLEM :
      The test java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java throws java.lang.NullPointerException on Windows.
      The issue was not observed on Linux
      On MacOS it fails because of JDK-8193941

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ jtreg -testjdk:/cygdrive/c/Program\ Files/Java/jdk-10.0.1 -javaoptions:"-Djava.awt.headless=false" -timeoutFactor:2 test/java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java

      ACTUAL -
      #section:main
      ----------messages:(5/322)----------
      command: main -Dsun.java2d.uiScale=1 MultiResolutionJOptionPaneIconTest
      reason: User specified action: run main/othervm/timeout=300 -Dsun.java2d.uiScale=1 MultiResolutionJOptionPaneIconTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 5.095
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(2/14)----------

      L&F: Metal
      ----------System.err:(14/896)----------
      java.lang.NullPointerException
      at MultiResolutionJOptionPaneIconTest.doTest(MultiResolutionJOptionPaneIconTest.java:109)
      at MultiResolutionJOptionPaneIconTest.main(MultiResolutionJOptionPaneIconTest.java:178)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

      JavaTest Message: Test threw exception: java.lang.NullPointerException
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.NullPointerException

      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/image/multiresolution/MultiResolutionJOptionPaneIconTest.java
      ---------- END SOURCE ----------

      FREQUENCY : always


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: