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

tools/launcher/FXLauncherTest.java fails with java.lang.UnsatisfiedLinkError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • 10
    • tools
    • b40
    • linux

        tools/launcher/FXLauncherTest.java fails with java.lang.UnsatisfiedLinkError: /sandbox/testJDK/lib/libglass.so: libX11.so.6: cannot open shared object file: No such file or directory

        ----------System.err:(140/10012)----------
        Executed command: /sandbox/testJDK/bin/java -cp /sandbox/testResult/JTwork/scratch/fxtest.jar helloworld.HelloWorld one two

        ###TestError###: test did not return 0 exit value
        ++++Begin Test Info++++
        Test Status: FAIL
        ++++Test Environment++++
          PATH=/bin:/usr/bin
          CLASSPATH=/sandbox/testResult/JTwork/classes/tools/launcher/FXLauncherTest.d:/sandbox/ws/open/test/jdk/tools/launcher:/opt/jtreg/lib/javatest.jar:/opt/jtreg/lib/jtreg.jar
          HOME=/root
        ++++Test Output++++
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           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 java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:941)
          Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /sandbox/testJDK/lib/libglass.so: libX11.so.6: cannot open shared object file: No such file or directory
           at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:267)
           at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:255)
           at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:154)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:731)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:418)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:372)
           ... 5 more
          Caused by: java.lang.UnsatisfiedLinkError: /sandbox/testJDK/lib/libglass.so: libX11.so.6: cannot open shared object file: No such file or directory
           at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
           at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2424)
           at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2481)
           at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2678)
           at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2632)
           at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:876)
           at java.base/java.lang.System.loadLibrary(System.java:1875)
           at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:127)
           at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
           at javafx.graphics/com.sun.glass.ui.Application.loadNativeLibrary(Application.java:112)
           at javafx.graphics/com.sun.glass.ui.Application.loadNativeLibrary(Application.java:120)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$static$2(GtkApplication.java:109)
           at java.base/java.security.AccessController.doPrivileged(Native Method)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.<clinit>(GtkApplication.java:108)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
           at javafx.graphics/com.sun.glass.ui.Application.run(Application.java:146)
           at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
           ... 10 more
        ++++Test Stack Trace++++
        java.lang.Throwable: current stack of the test
          TestHelper.doExec(TestHelper.java:468)
          TestHelper.doExec(TestHelper.java:429)
          FXLauncherTest.testBasicFXApp(FXLauncherTest.java:245)
          FXLauncherTest.testBasicFXApp(FXLauncherTest.java:220)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.base/java.lang.reflect.Method.invoke(Method.java:564)
          TestHelper.run(TestHelper.java:203)
          FXLauncherTest.main(FXLauncherTest.java:402)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.base/java.lang.reflect.Method.invoke(Method.java:564)
          com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
          java.base/java.lang.Thread.run(Thread.java:844)
        ++++End of Test Info++++

        Executed command: /sandbox/testJDK/bin/java -cp /sandbox/testResult/JTwork/scratch/fxtest.jar helloworld.ExtHello one two

        ###TestError###: test did not return 0 exit value
        ++++Begin Test Info++++
        Test Status: FAIL
        ++++Test Environment++++
          PATH=/bin:/usr/bin
          CLASSPATH=/sandbox/testResult/JTwork/classes/tools/launcher/FXLauncherTest.d:/sandbox/ws/open/test/jdk/tools/launcher:/opt/jtreg/lib/javatest.jar:/opt/jtreg/lib/jtreg.jar
          HOME=/root
        ++++Test Output++++
          Exception in thread "main" java.lang.reflect.InvocationTargetException
           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 java.base/sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:941)
          Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /sandbox/testJDK/lib/libglass.so: libX11.so.6: cannot open shared object file: No such file or directory
           at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:267)
           at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:255)
           at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:154)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:731)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:418)
           at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:372)
           ... 5 more
          Caused by: java.lang.UnsatisfiedLinkError: /sandbox/testJDK/lib/libglass.so: libX11.so.6: cannot open shared object file: No such file or directory
           at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
           at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2424)
           at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2481)
           at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2678)
           at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2632)
           at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:876)
           at java.base/java.lang.System.loadLibrary(System.java:1875)
           at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:127)
           at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
           at javafx.graphics/com.sun.glass.ui.Application.loadNativeLibrary(Application.java:112)
           at javafx.graphics/com.sun.glass.ui.Application.loadNativeLibrary(Application.java:120)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$static$2(GtkApplication.java:109)
           at java.base/java.security.AccessController.doPrivileged(Native Method)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.<clinit>(GtkApplication.java:108)
           at javafx.graphics/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
           at javafx.graphics/com.sun.glass.ui.Application.run(Application.java:146)
           at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
           ... 10 more
        ++++Test Stack Trace++++
        java.lang.Throwable: current stack of the test
          TestHelper.doExec(TestHelper.java:468)
          TestHelper.doExec(TestHelper.java:429)
          FXLauncherTest.testExtendFXApp(FXLauncherTest.java:296)
          FXLauncherTest.testExtendFXApp(FXLauncherTest.java:270)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.base/java.lang.reflect.Method.invoke(Method.java:564)
          TestHelper.run(TestHelper.java:203)
          FXLauncherTest.main(FXLauncherTest.java:402)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          java.base/java.lang.reflect.Method.invoke(Method.java:564)
          com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
          java.base/java.lang.Thread.run(Thread.java:844)
        ++++End of Test Info++++

        java.lang.RuntimeException: Tests failed: 2
        at TestHelper.run(TestHelper.java:222)
        at FXLauncherTest.main(FXLauncherTest.java:402)
        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: Tests failed: 2
        JavaTest Message: shutting down test

              ksrini Kumar Srinivasan
              mli Hamlin Li
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: