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

java/awt/Component/GetScreenLocTest/GetScreenLocTest.java: wrong state: 0

XMLWordPrintable

    • x86_64
    • windows_10

      ADDITIONAL SYSTEM INFORMATION :
      Microsoft Windows [Version 10.0.16299.431]

      Darwin unit 17.5.0 Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64


      A DESCRIPTION OF THE PROBLEM :
      The test java/awt/Component/GetScreenLocTest/GetScreenLocTest.java fails with the message "java.lang.RuntimeException: wrong state: 0"
      The issue was observed on Windows 10 and MacOS

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      $ jtreg -testjdk:C\:/Program\ Files/Java/jdk-10.0.1/ "-Djava.awt.headless=false" test/java/awt/Component/GetScreenLocTest/GetScreenLocTest.java

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      test passes
      ACTUAL -
      #section:main
      ----------messages:(5/211)----------
      command: main GetScreenLocTest
      reason: Assumed action based on file name: run main GetScreenLocTest
      Mode: othervm
      Additional options from @modules: --add-modules java.desktop
      elapsed time (seconds): 2.917
      ----------configuration:(3/43)----------
      Boot Layer
        add modules: java.desktop

      ----------System.out:(0/0)----------
      ----------System.err:(13/804)----------
      java.lang.RuntimeException: wrong state: 0
      at GetScreenLocTest.main(GetScreenLocTest.java:128)
      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.RuntimeException: wrong state: 0
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: wrong state: 0


      ---------- BEGIN SOURCE ----------
      http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811/test/java/awt/Component/GetScreenLocTest/GetScreenLocTest.java
      ---------- END SOURCE ----------

      FREQUENCY : always


            serb Sergey Bylokhov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: