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

Test bug: jtreg test sun/tools/jconsole/ResourceCheckTest.sh fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • tools
    • b29
    • generic
    • generic
    • Verified

      The fix for:
        6192605: Replaced "J2SE 5.0" with "Java" in jconsole title.
      changed the messages file (JConsoleResources.java) but the
      test case sun/tools/jconsole/ResourceCheckTest.sh was not
      updated to match.

      Here is a copy of the .jtr file:

      #Test Results (version 2)
      #Fri Mar 04 08:37:24 PST 2005
      #checksum:6d9ee2586580781e
      #-----testdescription-----
      $file=D:\\users\\tbell\\b27PIT\\service_int\\test\\sun\\tools\\jconsole\\ResourceCheckTest.sh
      $root=D:\\users\\tbell\\b27PIT\\service_int\\test
      author=Tim Bell
      keywords=bug5023573 bug5062569 shell
      run=USER_SPECIFIED shell ResourceCheckTest.sh\r\n
      source=ResourceCheckTest.sh
      title=jtreg test ResourceCheckTest.java must be able to find jconsole.jar

      #-----environment-----

      #-----testresult-----
      description=file:///D:/users/tbell/b27PIT/service_int/test/sun/tools/jconsole/ResourceCheckTest.sh
      end=Fri Mar 04 08:37:24 PST 2005
      environment=regtest
      execStatus=Failed. Execution failed: exit code 1
      javatestOS=Windows 2003 5.2 (amd64)
      javatestVersion=2.1.6
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages shell
      start=Fri Mar 04 08:37:22 PST 2005
      status=Failed. Execution failed: exit code 1
      test=sun/tools/jconsole/ResourceCheckTest.sh
      work=D:\\users\\tbell\\b27PIT\\service_int\\test\\JTwork\\sun\\tools\\jconsole

      #section:script_messages
      ----------messages:(4/286)----------
      JDK under test: (D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image)
      java version "1.6.0-tbell"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-tbell-2005_03_03.16-33-28)
      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-tbell-2005_03_03.16-33-28, mixed mode)

      #section:shell
      ----------messages:(3/133)----------
      command: shell ResourceCheckTest.sh
      reason: User specified action: run shell ResourceCheckTest.sh
      elapsed time (seconds): 1.343
      ----------System.out:(219/4530)*----------
      JDK under test is: D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image
      SystemRoot=C:\\WINDOWS
      TESTCLASSES=D:\\users\\tbell\\b27PIT\\service_int\\test\\JTwork\\classes\\sun\\tools\\jconsole
      TESTJAVA=D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image
      TESTJAVAHOME=D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image
      TESTSRC=D:\\users\\tbell\\b27PIT\\service_int\\test\\sun\\tools\\jconsole
      TESTVMOPTS=
      _=C:/mksnt/mksnt/env.exe
      PATH=C:/mksnt/mksnt
      Start...
        <
        <<
        >
         1 day
         1 hour
         1 min
         1 month
         1 year
         2 hours
         3 hours
         3 months
         5 min
         6 hours
         6 months
         7 days
         kbytes
         version
        10 min
        12 hours
        30 min
        Advanced
        All
        Architecture
        Attributes
        Total blocked: BlockedCount Total waited: WaitedCount

        Boot class path
        Cancel
        Cascade
        Chart:
        Class path
        Classes
        Clear
        Class and Arguments
        PID
        Committed
        Committed memory
        Committed virtual memory
        Compiler
        Composite Navigation
        Connect...
        Connect
        Connection
        Connection failed
        @
        Phony@Phony (disconnected)
        Create
        Current classes loaded
        Current heap size
        Current value: PhonyValue
        Daemon threads
        Details
        Dimension is not supported:
        Discard chart
        Double click to expand/collapse
        Double click to visualize
        0 day 13 hours 54 minutes
        1 day 13 hours 54 minutes
        2 days 13 hours 54 minutes
        1,024 days 13 hours 45 minutes
        0 hour 13 minutes
        1 hour 0 minutes
        1 hour 1 minute
        2 hours 42 minutes
        0 minute
        1 minute
        2 minutes
        0 seconds
        1 seconds
        2 seconds
        Empty array
        Error
        Error: MBeans already exist
        Error: MBeans do not exist
        Event
        Exit
        expand
        Filter:
        Free physical memory
        Free swap space
        Garbage collector
        GC time
        54 seconds on Phony (11 collections)
        Name = 'Phony', Collections = Unavailable, Total time spent = 768
        Name = 'Phony', Collections = 0, Total time spent = 768
        Name = 'Phony', Collections = 1, Total time spent = 768
        Heap
        Heap Memory Usage
        Host or IP:
        Info
        Invalid URL
      ****lookup failed for key = J2SE 5.0 Monitoring & Management Console
        Java Virtual Machine
        JConsole: Connect to Agent
        JConsole version "PhonyVersion"
        JIT compiler
        JMX URL:
        Library path
        Live Threads
        Loaded
        Local
        Manage Hotspot MBeans in:
        Max
        Maximum heap size
        MBean Java Class
        MBean Name
        MBean Notification
        MBeans
        Memory
        Memory Pool "PhonyMemoryPool"
        Message
        Method successfully invoked
        Minimize All
        PhonyName (Monitoring Self)
        Name
        PhonyName (build PhonyBuild)
        PhonyName (build PhonyBuild, PhonyMode)
        Name: PhonyName
      State: PhonyState

        Name: PhonyName
      State: PhonyState on PhonyLock

        Name: PhonyName
      State: PhonyState on PhonyLock owned by: PhonyOwner

        New Connection...
        Non-Heap
        Non-Heap Memory Usage
        Notifications
        Number of Loaded Classes
        Number of processors
        Number of Threads
        Objects pending for finalization
        Operating System
        Operation return value
        Operations
        Password:
        Peak
        Perform GC
        plot
        Port:
        Problem adding listener
        Problem displaying MBean
        Problem invoking
        Problem setting attribute
        Process CPU time
        Refresh
        Remote
        Restore All
        SeqNum
        512 bytes
        512 Gb
        512 Kb
        512 Mb
        Source
        
      Stack trace:

        Subscribe
        Summary
        Tabular Navigation
        Threads
        Threshold
        Tile
        Time
        Time Range:
        TimeStamp
        Descr : Phonydescr, Type : PhonyType, Modifier : PhonyModifier
        Total classes loaded
        Total classes unloaded
        Total compile time
        Total Loaded
        Total physical memory
        Total Started
        Total started
        Total swap space
        Tree
        Type
        Unavailable
        Unregister
        Unsubscribe
        Uptime
        Usage Threshold
        Used
        User Name:
        UserData
        Value
        Vendor
        Verbose Output
        visualize
        VM
        VM arguments
        VM Information
        Window
        Usage: PhonyName [ -interval=n ] [ -notile ] [ -version ] [ pid | [connection ... ]]

        -interval Set the update interval to n seconds (default is 4 seconds)
        -notile Do not tile windows initially (for two or more connections)
        -version Print program version

        pid The process id of a target process

        connection = host:port || JMX URL (service:jmx:<protocol>://...)
        host A remote host name or IP address
        port The port number for the remote connection
      test status was: 1
      The test failed :-(
      exit status was 1
      ----------System.err:(27/1491)*----------
      #
      #Compile. jconsole.jar is required on the classpath.
      ${TESTJAVA}/bin/javac -source 1.5 -d "${TESTCLASSES}" ${CP} -g \\
                               "${TESTSRC}"/"${TARGETCLASS}".java
      + D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image/bin/javac -source 1.5 -d D:\\users\\tbell\\b27PIT\\service_int\\test\\JTwork\\classes\\sun\\tools\\jconsole -classpath D:\\users\\tbell\\b27PIT\\service_int\\test\\JTwork\\classes\\sun\\tools\\jconsole;D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image/lib/jconsole.jar -g D:\\users\\tbell\\b27PIT\\service_int\\test\\sun\\tools\\jconsole/ResourceCheckTest.java
      #
      #Run the test class, again with the classpath we need:
      ${TESTJAVA}/bin/java ${CP} ${TARGETCLASS}
      + D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image/bin/java -classpath D:\\users\\tbell\\b27PIT\\service_int\\test\\JTwork\\classes\\sun\\tools\\jconsole;D:/users/tbell/b27PIT/control/build/windows-amd64/j2sdk-image/lib/jconsole.jar ResourceCheckTest
      Exception in thread "main" java.lang.Error: Resource lookup failed 1 time(s); Test failed
      at ResourceCheckTest.main(ResourceCheckTest.java:229)
      status=$?
      + status=1
      echo "test status was: $status"
      + echo test status was: 1
      if [ $status -eq "0" ];
         then pass ""

         else fail "unspecified test failure"
      fi
      + [ 1 -eq 0 ]
      + fail unspecified test failure
      + echo The test failed :-(
      + echo unspecified test failure
      unspecified test failure
      + echo exit status was 1
      + exit 1
      result: Failed. Execution failed: exit code 1


      test result: Failed. Execution failed: exit code 1


      ###@###.### 2005-03-04 21:28:33 GMT

            mchung Mandy Chung (Inactive)
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: