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

[17u] Six sun/tools/jstatd testcases fail after JDK-8233725

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 17
    • tools
    • generic
    • generic

      The below 6 sun/tools/jstatd testcases fail after JDK-8233725:
      sun/tools/jstatd/TestJstatdExternalRegistry.java
      sun/tools/jstatd/TestJstatdPort.java
      sun/tools/jstatd/TestJstatdPortAndServer.java
      sun/tools/jstatd/TestJstatdRmiPort.java
      sun/tools/jstatd/TestJstatdDefaults.java
      sun/tools/jstatd/TestJstatdServer.java

      test log snippet:
      cmd: /var/tmp/tone/run/jtreg/jdk-repo/build/linux-aarch64-server-release/images/jdk/bin/jstatd -J-XX:+UsePerfData -J-Djava.security.manager=allow -J-Djava.security.policy=/var/tmp/tone/run/jtreg/jdk-repo/test/jdk/sun/tools/jstatd/all.policy -n TestJstatdServer
      exitvalue: 143
      stderr: WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
      WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
      WARNING: System::setSecurityManager will be removed in a future release

      stdout: jstatd started (bound to /TestJstatdServer)


      [2024-06-06T15:02:39.257108791Z] Waiting for completion for process 3843518
      [2024-06-06T15:02:39.257194549Z] Waiting for completion finished for process 3843518
      STDERR:
      [Jstatd-Thread] WARNING: A terminally deprecated method in java.lang.System has been called
      [Jstatd-Thread] WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
      [Jstatd-Thread] WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
      [Jstatd-Thread] WARNING: System::setSecurityManager will be removed in a future release
       stdout: [jstatd started (bound to /TestJstatdServer)
      ];
       stderr: [WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by sun.tools.jstatd.Jstatd (jrt:/jdk.jstatd)
      WARNING: Please consider reporting this to the maintainers of sun.tools.jstatd.Jstatd
      WARNING: System::setSecurityManager will be removed in a future release
      ]
       exitValue = 143

      java.lang.RuntimeException: Output should contain one line: expected 5 to equal 1
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at JstatdTest.runTest(JstatdTest.java:361)
      at JstatdTest.doTest(JstatdTest.java:320)
      at TestJstatdServer.main(TestJstatdServer.java:39)

            syan Sendao Yan
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: