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

FX dependency on PlatformLogger broken by 8010309

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P3
    • Resolution: Fixed
    • None
    • 8
    • core-libs

    Backports

      Description


        It turns out that FX is using sun.util.logging.PlatformLogger and is broken by the changes in JDK-8010309

        --------------------------------------------------
        TEST: tools/launcher/FXLauncherTest.java
        JDK under test: (C:\jprt\T\P1\092709~1.ALB\TESTPR~1\WINDOW~1.2-P)
        java version "1.8.0-internal"
        Java(TM) SE Runtime Environment (build 1.8.0-internal-jprtadm_2013_04_03_02_53-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b24, mixed mode)



        ACTION: build -- Passed. Build successful
        REASON: Named class compiled on demand
        TIME: 0.078 seconds
        messages:
        command: build FXLauncherTest
        reason: Named class compiled on demand
        elapsed time (seconds): 0.078

        ACTION: compile -- Passed. Compilation successful
        REASON: .class file out of date or does not exist
        TIME: 0.078 seconds
        messages:
        command: compile C:\jprt\T\P1\092709.albatem\s\jdk\test\tools\launcher\FXLauncherTest.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.078

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Tests failed: 2
        REASON: User specified action: run main FXLauncherTest
        TIME: 3.266 seconds
        messages:
        command: main FXLauncherTest
        reason: User specified action: run main FXLauncherTest
        elapsed time (seconds): 3.266
        STDOUT:
        _____________________________________________
        test# 1- Main method: public static void main(String[] args) { launch(args); }
        Main-Class: helloworld.HelloWorld
        added manifest
        adding: helloworld/(in = 0) (out= 0)(stored 0%)
        adding: helloworld/HelloWorld$1.class(in = 905) (out= 494)(deflated 45%)
        adding: helloworld/HelloWorld.class(in = 1985) (out= 1101)(deflated 44%)
        renaming fxtest.jar to testBasicFXApp_useCP_noJAC-1-fxtest.jar
        FAIL: testBasicFXApp_useCP_noJAC:1 : test with helloworld.HelloWorld
        Test static void FXLauncherTest.testBasicFXApp() throws java.lang.Exception failed: java.lang.Exception: Failed: testBasicFXApp_useCP_noJAC:1
        _____________________________________________
        test# 2- Main method: public static void main(String[] args) { launch(args); }
        Main-Class: helloworld.ExtHello
        added manifest
        adding: helloworld/(in = 0) (out= 0)(stored 0%)
        adding: helloworld/ExtHello.class(in = 300) (out= 221)(deflated 26%)
        adding: helloworld/HelloWorld$1.class(in = 905) (out= 494)(deflated 45%)
        adding: helloworld/HelloWorld.class(in = 1985) (out= 1101)(deflated 44%)
        renaming fxtest.jar to testExtendFXApp_useCP_noJAC-2-fxtest.jar
        FAIL: testExtendFXApp_useCP_noJAC:2 : test with helloworld.ExtHello
        Test static void FXLauncherTest.testExtendFXApp() throws java.lang.Exception failed: java.lang.Exception: Failed: testExtendFXApp_useCP_noJAC:2
        _____________________________________________
        test# 3: test for erroneous jfxrt.jar loading
        Main-Class: helloworld.HelloJava
        added manifest
        adding: helloworld/(in = 0) (out= 0)(stored 0%)
        adding: helloworld/HelloJava.class(in = 682) (out= 437)(deflated 35%)
        PASS: testExtraneousJars_useCP:3 : test with helloworld.HelloJava
        _____________________________________________
        test# 4: test for erroneous jfxrt.jar loading
        Main-Class: helloworld.HelloJava
        added manifest
        adding: helloworld/(in = 0) (out= 0)(stored 0%)
        adding: helloworld/HelloJava.class(in = 682) (out= 437)(deflated 35%)
        PASS: testExtraneousJars:4 : test with helloworld.HelloJava
        testExtraneousJars: OK
        Passed: 1, Failed: 2, ExitValue: 2
        _____________________________________________
        test# 5: abort on missing Main-Class
        JavaFX-Application-Class: helloworld.HelloWorld
        added manifest
        adding: helloworld/(in = 0) (out= 0)(stored 0%)
        adding: helloworld/HelloWorld$1.class(in = 905) (out= 494)(deflated 45%)
        adding: helloworld/HelloWorld.class(in = 1891) (out= 1064)(deflated 43%)
        PASS: testMissingMC:5 : test with helloworld.HelloWorld
        testMissingMC: OK
        Passed: 2, Failed: 2, ExitValue: 2
        Total: Passed: 2, Failed 2
        STDERR:
        Executed command: C:\jprt\T\P1\092709~1.ALB\TESTPR~1\WINDOW~1.2-P\bin\java.exe -cp C:\jprt\T\P1\092709.albatem\s\jdk\build\windows-amd64\testoutput\jdk_tools\JTwork\scratch\fxtest.jar helloworld.HelloWorld one two

        ###TestError###: test did not return 0 exit value
        ++++Begin Test Info++++
        Test Status: FAIL
        ++++Test Environment++++
          SystemRoot=C:\WINDOWS
          TMP=C:\jprt\T\P1\092709.albatem
          PATH=C:\jprt\products\P1\jdk7u7-latest\jdk1.7.0_07\bin;C:\jprt\products\P1\gnumake3.81\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\jprt\jdk\bin;C:\jprt\dist\sbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem;C:\WINDOWS\SysWOW64
          SystemDrive=C:
          windir=C:\WINDOWS
          CLASSPATH=C:\jprt\products\P1\jtreg4.1-latest\jtreg\lib\javatest.jar;C:\jprt\products\P1\jtreg4.1-latest\jtreg\lib\jtreg.jar;C:\jprt\T\P1\092709~1.ALB\TESTPR~1\WINDOW~1.2-P\lib\tools.jar
          TEMP=C:\jprt\T\P1\092709.albatem
        ++++Test Output++++
          Exception in Application start method
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:496)
           at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:778)
          Caused by: java.lang.RuntimeException: Exception in Application start method
           at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:829)
           at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
           at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:150)
           at java.lang.Thread.run(Thread.java:722)
          Caused by: java.lang.NoSuchMethodError: sun.util.logging.PlatformLogger.getLevel()I
           at com.sun.javafx.css.parser.CSSParser.<clinit>(CSSParser.java:164)
           at com.sun.javafx.css.StyleManager.loadStylesheetUnPrivileged(StyleManager.java:854)
           at com.sun.javafx.css.StyleManager.loadStylesheet(StyleManager.java:674)
           at com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1050)
           at com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1020)
           at com.sun.javafx.application.PlatformImpl$10.run(PlatformImpl.java:525)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.javafx.application.PlatformImpl.setPlatformUserAgentStylesheet(PlatformImpl.java:522)
           at com.sun.javafx.application.PlatformImpl.setDefaultPlatformUserAgentStylesheet(PlatformImpl.java:474)
           at javafx.scene.control.Control.<clinit>(Control.java:82)
           at helloworld.HelloWorld.start(HelloWorld.java:14)
           at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:772)
           at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:260)
           at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:223)
           at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:220)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:220)
           at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:94)
           at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
           at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
           at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
           ... 1 more
        ++++Test Stack Trace++++
        java.lang.Throwable: current stack of the test
          TestHelper.doExec(TestHelper.java:481)
          TestHelper.doExec(TestHelper.java:442)
          FXLauncherTest.testBasicFXApp(FXLauncherTest.java:244)
          FXLauncherTest.testBasicFXApp(FXLauncherTest.java:219)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:496)
          TestHelper.run(TestHelper.java:191)
          FXLauncherTest.main(FXLauncherTest.java:396)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:496)
          com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
          java.lang.Thread.run(Thread.java:722)
        ++++End of Test Info++++

        Executed command: C:\jprt\T\P1\092709~1.ALB\TESTPR~1\WINDOW~1.2-P\bin\java.exe -cp C:\jprt\T\P1\092709.albatem\s\jdk\build\windows-amd64\testoutput\jdk_tools\JTwork\scratch\fxtest.jar helloworld.ExtHello one two

        ###TestError###: test did not return 0 exit value
        ++++Begin Test Info++++
        Test Status: FAIL
        ++++Test Environment++++
          SystemRoot=C:\WINDOWS
          TMP=C:\jprt\T\P1\092709.albatem
          PATH=C:\jprt\products\P1\jdk7u7-latest\jdk1.7.0_07\bin;C:\jprt\products\P1\gnumake3.81\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\jprt\jdk\bin;C:\jprt\dist\sbin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\Wbem;C:\WINDOWS\SysWOW64
          SystemDrive=C:
          windir=C:\WINDOWS
          CLASSPATH=C:\jprt\products\P1\jtreg4.1-latest\jtreg\lib\javatest.jar;C:\jprt\products\P1\jtreg4.1-latest\jtreg\lib\jtreg.jar;C:\jprt\T\P1\092709~1.ALB\TESTPR~1\WINDOW~1.2-P\lib\tools.jar
          TEMP=C:\jprt\T\P1\092709.albatem
        ++++Test Output++++
          Exception in Application start method
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:496)
           at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:778)
          Caused by: java.lang.RuntimeException: Exception in Application start method
           at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:829)
           at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
           at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:150)
           at java.lang.Thread.run(Thread.java:722)
          Caused by: java.lang.NoSuchMethodError: sun.util.logging.PlatformLogger.getLevel()I
           at com.sun.javafx.css.parser.CSSParser.<clinit>(CSSParser.java:164)
           at com.sun.javafx.css.StyleManager.loadStylesheetUnPrivileged(StyleManager.java:854)
           at com.sun.javafx.css.StyleManager.loadStylesheet(StyleManager.java:674)
           at com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1050)
           at com.sun.javafx.css.StyleManager.setDefaultUserAgentStylesheet(StyleManager.java:1020)
           at com.sun.javafx.application.PlatformImpl$10.run(PlatformImpl.java:525)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.javafx.application.PlatformImpl.setPlatformUserAgentStylesheet(PlatformImpl.java:522)
           at com.sun.javafx.application.PlatformImpl.setDefaultPlatformUserAgentStylesheet(PlatformImpl.java:474)
           at javafx.scene.control.Control.<clinit>(Control.java:82)
           at helloworld.HelloWorld.start(HelloWorld.java:14)
           at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:772)
           at com.sun.javafx.application.PlatformImpl$6.run(PlatformImpl.java:260)
           at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:223)
           at com.sun.javafx.application.PlatformImpl$5$1.run(PlatformImpl.java:220)
           at java.security.AccessController.doPrivileged(Native Method)
           at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:220)
           at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:94)
           at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
           at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
           at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
           ... 1 more
        ++++Test Stack Trace++++
        java.lang.Throwable: current stack of the test
          TestHelper.doExec(TestHelper.java:481)
          TestHelper.doExec(TestHelper.java:442)
          FXLauncherTest.testExtendFXApp(FXLauncherTest.java:295)
          FXLauncherTest.testExtendFXApp(FXLauncherTest.java:269)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:496)
          TestHelper.run(TestHelper.java:191)
          FXLauncherTest.main(FXLauncherTest.java:396)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.lang.reflect.Method.invoke(Method.java:496)
          com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
          java.lang.Thread.run(Thread.java:722)
        ++++End of Test Info++++

        java.lang.RuntimeException: Tests failed: 2
        at TestHelper.run(TestHelper.java:204)
        at FXLauncherTest.main(FXLauncherTest.java:396)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:496)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
        at java.lang.Thread.run(Thread.java:722)

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


        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Tests failed: 2
        --------------------------------------------------

        Attachments

          Issue Links

            Activity

              People

                mchung Mandy Chung
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: