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

Test library OSInfo.getSolarisVersion cannot determine Solaris version

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 11.0.1
    • Fix Version/s: 11.0.3
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      master
    • CPU:
      x86_64, sparc_64
    • OS:
      solaris_11

      Backports

        Description

        During st_035 we are seeing jdk/jdk/net/Sockets/Test.java fail when attempting to retrieve solaris version

        'uname -v' finished with code 0
        First attempt failed with: multiple points
        Second attempt failed with: For input string: "Trunk"

        Solaris produces the following when calling uname -v
        root@spv-x5-2-01:~# pkg info entire | grep Version
                  Version: 11.5 (Oracle Solaris 11.5.0.0.0.35.0)
        root@spv-x5-2-01:~# uname -v
        11.5.0.35.0
        root@spv-x5-2-01:~#


        #-----testdescription-----
        $file=/opt/jdk/jdk11local/test/jdk/jdk/net/Sockets/Test.java
        $root=/opt/jdk/jdk11local/test/jdk
        keywords=bug8032808 bug8044773 othervm
        library=/lib/testlibrary
        modules=jdk.net
        run=USER_SPECIFIED build jdk.testlibrary.*\nUSER_SPECIFIED main/othervm -Xcheck\:jni Test success\nUSER_SPECIFIED main/othervm/policy\=policy.fail -Xcheck\:jni Test fail\nUSER_SPECIFIED main/othervm/policy\=policy.success -Xcheck\:jni Test success\n
        source=Test.java
        title=\


        #-----testresult-----
        description=file\:/opt/jdk/jdk11local/test/jdk/jdk/net/Sockets/Test.java
        elapsed=1033 0\:00\:01.033
        end=Wed Nov 28 20\:47\:42 UTC 2018
        environment=regtest
        execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.ExceptionInInitializerError
        harnessLoaderMode=Classpath Loader
        harnessVariety=Full Bundle
        hostname=spv-t5-2-01-ld8
        javatestOS=SunOS 5.11 (sparcv9)
        javatestVersion=5.0
        jtregVersion=jtreg 4.2 fcs b12
        modules=jdk.net
        script=com.sun.javatest.regtest.exec.RegressionScript
        sections=script_messages build build compile main
        start=Wed Nov 28 20\:47\:41 UTC 2018
        test=jdk/net/Sockets/Test.java
        testJDK=/usr/jdk/jdk-11.0.1
        totalTime=1034
        user.name=root
        work=/autohome/jdk.2135926/work/jdk/net/Sockets

        ----------System.out:(3/129)----------
        'uname -v' finished with code 0
        First attempt failed with: multiple points
        Second attempt failed with: For input string: "Trunk"
        ----------System.err:(13/832)----------
        java.lang.ExceptionInInitializerError
                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:566)
                at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
                at java.base/java.lang.Thread.run(Thread.java:834)
        Caused by: java.lang.RuntimeException: Unable to get Solaris version
                at jdk.testlibrary.OSInfo.getSolarisVersion(OSInfo.java:172)
                at Test.checkExpectedOptionSupport(Test.java:194)
                at Test.<clinit>(Test.java:55)
                ... 6 more
        STATUS:Failed.`main' threw exception: java.lang.ExceptionInInitializerError

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  iignatyev Igor Ignatyev
                  Reporter:
                  ckavanagh Colin Kavanagh
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: