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

TEST failures: com/sun/servicetag/JavaServiceTagTest.java and JavaServiceTagTest1.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: install
    • Labels:
      None

      Description

      Failing with JPRT latest TL forest in combination with vendor changes, not sure vendor changes relate but might.

      --------------------------------------------------
      TEST: com/sun/servicetag/JavaServiceTagTest.java
      JDK under test: (/tmp/jprt/P1/T/181720.ohair/testproduct/linux_i586_2.6-product)
      openjdk version "1.7.0-201009221817.ohair.jdk"
      OpenJDK Runtime Environment (build 1.7.0-201009221817.ohair.jdk-jprtadm_2010_09_22_13_14-b00)
      Java HotSpot(TM) Client VM (build 19.0-b05, mixed mode, sharing)

      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build JavaServiceTagTest
      TIME: 0.052 seconds
      messages:
      command: build JavaServiceTagTest
      reason: User specified action: run build JavaServiceTagTest
      elapsed time (seconds): 0.052

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.051 seconds
      messages:
      command: compile /tmp/jprt/P1/T/181720.ohair/source/test/com/sun/servicetag/JavaServiceTagTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.051
      direct:
      /tmp/jprt/P1/T/181720.ohair/source/test/com/sun/servicetag/JavaServiceTagTest.java:164: warning: Version is internal proprietary API and may be removed in a future release
              int version = sun.misc.Version.jdkMinorVersion();
                                    ^
      1 warning

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.0 seconds
      messages:
      command: build JavaServiceTagTest
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
      REASON: User specified action: run main JavaServiceTagTest
      TIME: 0.034 seconds
      messages:
      command: main JavaServiceTagTest
      reason: User specified action: run main JavaServiceTagTest
      elapsed time (seconds): 0.034
      STDOUT:
      STDERR:
      java.lang.NullPointerException
      at JavaServiceTagTest.checkServiceTag(JavaServiceTagTest.java:91)
      at JavaServiceTagTest.main(JavaServiceTagTest.java:65)
      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:613)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:729)

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


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
      --------------------------------------------------
      TEST: com/sun/servicetag/JavaServiceTagTest1.java
      JDK under test: (/tmp/jprt/P1/T/181720.ohair/testproduct/linux_i586_2.6-product)
      openjdk version "1.7.0-201009221817.ohair.jdk"
      OpenJDK Runtime Environment (build 1.7.0-201009221817.ohair.jdk-jprtadm_2010_09_22_13_14-b00)
      Java HotSpot(TM) Client VM (build 19.0-b05, mixed mode, sharing)

      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build JavaServiceTagTest1 SvcTagClient Util
      TIME: 0.133 seconds
      messages:
      command: build JavaServiceTagTest1 SvcTagClient Util
      reason: User specified action: run build JavaServiceTagTest1 SvcTagClient Util
      elapsed time (seconds): 0.133

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.133 seconds
      messages:
      command: compile /tmp/jprt/P1/T/181720.ohair/source/test/com/sun/servicetag/JavaServiceTagTest1.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.133
      direct:
      /tmp/jprt/P1/T/181720.ohair/source/test/com/sun/servicetag/JavaServiceTagTest1.java:236: warning: Version is internal proprietary API and may be removed in a future release
              int version = sun.misc.Version.jdkMinorVersion();
                                    ^
      1 warning

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.0 seconds
      messages:
      command: build JavaServiceTagTest1
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
      REASON: User specified action: run main JavaServiceTagTest1
      TIME: 0.009 seconds
      messages:
      command: main JavaServiceTagTest1
      reason: User specified action: run main JavaServiceTagTest1
      elapsed time (seconds): 0.009
      STDOUT:
      stclient cmd: "/tmp/jprt/P1/T/181720.ohair/testproduct/linux_i586_2.6-product/jre/bin/java" -cp "/tmp/jprt/P1/T/181720.ohair/source/build/linux-i586/testoutput/jdk_tools2/JTwork/classes/com/sun/servicetag" "-Dstclient.registry.path=/tmp/jprt/P1/T/181720.ohair/source/build/linux-i586/testoutput/jdk_tools2/JTwork/classes/com/sun/servicetag/registry.xml" SvcTagClient
      STDERR:
      java.lang.NullPointerException
      at JavaServiceTagTest1.checkServiceTag(JavaServiceTagTest1.java:163)
      at JavaServiceTagTest1.testJavaServiceTag(JavaServiceTagTest1.java:104)
      at JavaServiceTagTest1.runTest(JavaServiceTagTest1.java:68)
      at JavaServiceTagTest1.main(JavaServiceTagTest1.java:51)
      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:613)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:729)

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


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
      --------------------------------------------------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: