Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK19 jdk_other_0_FAILED error: cannot find symbol HotSpotDiagnosticMXBean.ThreadDumpFormat #15278

Closed
JasonFengJ9 opened this issue Jun 9, 2022 · 1 comment

Comments

@JasonFengJ9
Copy link
Member

Failure link

From an internal build view/Test_grinder/job/Grinder/24751/consoleFull(mac10x64rt02):

23:46:16  openjdk version "19-internal" 2022-09-20
23:46:16  OpenJDK Runtime Environment (build 19-internal-adhoc.jenkins.BuildJDKnextx86-64macPersonal)
23:46:16  Eclipse OpenJ9 VM (build jdk19excludes-5cba1cdc4d8, JRE 19 Mac OS X amd64-64-Bit Compressed References 20220608_74 (JIT enabled, AOT enabled)
23:46:16  OpenJ9   - 5cba1cdc4d8
23:46:16  OMR      - cf8ddbd1adc
23:46:16  JCL      - 4cb748300c8 based on jdk-19+25)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

23:56:47  ===============================================
23:56:47  Running test jdk_other_0 ...
23:56:47  ===============================================
23:56:47  jdk_other_0 Start Time: Wed Jun  8 23:56:47 2022 Epoch Time (ms): 1654747007710
23:56:47  "/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
23:56:47  JVMSHRC005I No shared class caches available
23:56:47  JVMSHRC005I No shared class caches available
23:56:47  cache cleanup done
23:56:47  variation: Mode150
23:56:47  JVM_OPTIONS:  -XX:+UseCompressedOops 

00:00:08  TEST: jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java

00:00:08  /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java:44: error: cannot find symbol
00:00:08  import com.sun.management.HotSpotDiagnosticMXBean.ThreadDumpFormat;
00:00:08                                                   ^
00:00:08    symbol:   class ThreadDumpFormat
00:00:08    location: interface HotSpotDiagnosticMXBean
00:00:08  /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java:150: error: cannot find symbol
00:00:08                  .dumpThreads(file.toString(), ThreadDumpFormat.JSON);
00:00:08                                                ^
00:00:08    symbol:   variable ThreadDumpFormat
00:00:08    location: class StructuredThreadDumpTest
00:00:08  Note: /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java uses preview features of Java SE 19.
00:00:08  Note: Recompile with -Xlint:preview for details.
00:00:08  2 errors
00:00:08  1 warning
00:00:08  
00:00:08  TEST RESULT: Failed. Compilation failed: Compilation failed
00:00:08  --------------------------------------------------
00:00:57  Test results: passed: 264; failed: 1
00:01:09  Report written to /Users/jenkins/workspace/Grinder/jvmtest/openjdk/report/html/report.html
00:01:09  Results written to /Users/jenkins/workspace/Grinder/aqa-tests/TKG/output_16547464946514/jdk_other_0/work
00:01:09  Error: Some tests failed or other problems occurred.
00:01:09  
00:01:09  jdk_other_0_FAILED

It appears hotspot specific test.

@JasonFengJ9 JasonFengJ9 changed the title JDK19 jdk_other_0_FAILED JDK19 jdk_other_0_FAILED error: cannot find symbol HotSpotDiagnosticMXBean.ThreadDumpFormat Jun 9, 2022
babsingh added a commit to babsingh/aqa-tests that referenced this issue Jul 6, 2023
eclipse-openj9/openj9#17709 adds the required support to enable
StructuredThreadDumpTest.

Related issues which can be closed after the test is enabled:
- eclipse-openj9/openj9#17634
- eclipse-openj9/openj9#15278

Signed-off-by: Babneet Singh <[email protected]>
llxia pushed a commit to adoptium/aqa-tests that referenced this issue Jul 6, 2023
eclipse-openj9/openj9#17709 adds the required support to enable
StructuredThreadDumpTest.

Related issues which can be closed after the test is enabled:
- eclipse-openj9/openj9#17634
- eclipse-openj9/openj9#15278

Signed-off-by: Babneet Singh <[email protected]>
@babsingh
Copy link
Contributor

babsingh commented Jul 6, 2023

JDK19 is no longer supported, but a fix for this issue has been pushed in JDK21:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants