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

[TEST_BUG] test/script/basic/JDK-8026161.js fails with java.lang.UnsatisfiedLinkError

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b04

      Backports

        Description

        This test fails when running on sc14160022 (Solaris / Solaris 11, i86pc) with 1.8.0_20-ea-langtools-nightly-h1726-20140129-b00
        jdk.nashorn.internal.test.framework.ScriptRunnable::test/script/basic/JDK-8026161.js
        Log file:
        ======
        http://scaaa008.us.oracle.com:9502/runs%2F355863.stt-nashorn-batch-testing-1/results//TEST-jdk-202144.nashorn.internal.test.framework.ScriptRunnable.xml
        Output:
        =====
        <failure type="java.lang.UnsatisfiedLinkError" message="/export/home/aurora/CommonData/nashornjdk/j2sdk-image/jre/lib/amd64/libawt_xawt.so: ld.so.1: java: fatal: libXrender.so.1: open failed: No such file or directory">
              <![CDATA[java.lang.UnsatisfiedLinkError: /export/home/aurora/CommonData/nashornjdk/j2sdk-image/jre/lib/amd64/libawt_xawt.so: ld.so.1: java: fatal: libXrender.so.1: open failed: No such file or directory

        It seems to be a system setup issue - no Xrender library. The test case instantiates some java.awt.Color objects

        print(new java.awt.Color(1, 1, 1)) // creates Color[r=1,g=1,b=1]
        print(new java.awt.Color(1.0, 1.0, 1.0)) // Color[r=255,g=255,b=255]

        To avoid these kind of issues the test should be updated to replace java.awt.Color with StringBuffer.append() since the test is about overloaded java methods that take both int and float arguments, and being able to control which is called using 1 or 1.0

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mnunez Matherey Nunez (Inactive)
                  Reporter:
                  mnunez Matherey Nunez (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: