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

serviceability_jvmti_j9_0 serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedClass.java NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null #20534

Closed
JasonFengJ9 opened this issue Nov 7, 2024 · 4 comments · Fixed by #20573

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Nov 7, 2024

Failure link

From internal Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1 (ubu22-aarch64-11)

java version "21.0.6-beta" 2025-01-21
IBM Semeru Runtime Certified Edition 21.0.6+1-202411021503 (build 21.0.6-beta+1-202411021503)
Eclipse OpenJ9 VM 21.0.6+1-202411021503 (build master-5439dcfe42, JRE 21 Linux aarch64-64-Bit Compressed References 20241102_298 (JIT enabled, AOT enabled)
OpenJ9   - 5439dcfe42
OMR      - 2c5b8df92
JCL      - 83a2966fb based on jdk-21.0.6+1)

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

Optional info

Failure output (captured from console output)

[2024-11-02T21:31:25.663Z] variation: Mode150
[2024-11-02T21:31:25.663Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-11-02T21:33:22.067Z] TEST: serviceability/jvmti/GetMethodDeclaringClass/TestUnloadedClass.java

[2024-11-02T21:33:22.068Z] STDERR:
[2024-11-02T21:33:22.068Z] java.lang.NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null
[2024-11-02T21:33:22.068Z] 	at jdk.test.lib.Platform.isDebugBuild(Platform.java:188)
[2024-11-02T21:33:22.068Z] 	at TestUnloadedClass.main(TestUnloadedClass.java:52)
[2024-11-02T21:33:22.068Z] 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2024-11-02T21:33:22.068Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2024-11-02T21:33:22.068Z] 	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
[2024-11-02T21:33:22.068Z] 	at java.base/java.lang.Thread.run(Thread.java:1595)
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] JavaTest Message: Test threw exception: java.lang.NullPointerException
[2024-11-02T21:33:22.068Z] JavaTest Message: shutting down test
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] 
[2024-11-02T21:33:22.068Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException: Cannot invoke "java.lang.String.toLowerCase()" because "jdk.test.lib.Platform.jdkDebug" is null
[2024-11-02T21:33:22.068Z] --------------------------------------------------
[2024-11-02T21:38:19.806Z] Test results: passed: 156; failed: 1
[2024-11-02T21:38:31.894Z] Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/jvmtest/openjdk/report/html/report.html
[2024-11-02T21:38:31.894Z] Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_aarch64_linux_testList_1/aqa-tests/TKG/output_17305830831273/serviceability_jvmti_j9_0/work
[2024-11-02T21:38:31.894Z] Error: Some tests failed or other problems occurred.
[2024-11-02T21:38:31.894Z] -----------------------------------
[2024-11-02T21:38:31.894Z] serviceability_jvmti_j9_0_FAILED

3x internal Grinder - all failed

Copy link

github-actions bot commented Nov 7, 2024

Issue Number: 20534
Status: Open
Recommended Components: comp:vm, comp:jvmti, comp:test
Recommended Assignees: babsingh, jasonfengj9, pshipton

@keithc-ca
Copy link
Contributor

Hotspot defines the system property "jdk.debug", but OpenJ9 does not.

@keithc-ca
Copy link
Contributor

It might be reasonable to define the property based on the --with-debug-level configuration option; see https://github.com/ibmruntimes/openj9-openjdk-jdk21/blob/openj9/make/autoconf/jdk-options.m4#L30-L36.

Copy link

Issue Number: 20534
Status: Closed
Actual Components: comp:vm, test failure
Actual Assignees: No one :(
PR Assignees: keithc-ca

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

Successfully merging a pull request may close this issue.

3 participants