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

JTReg test failure due to java.lang.UnsatisfiedLinkError: jdk/test/whitebox/WhiteBox.registerNatives()V #18049

Closed
fengxue-IS opened this issue Aug 30, 2023 · 1 comment · Fixed by adoptium/aqa-tests#4737
Assignees
Labels
perm excluded The test is unsuitable and permanently excluded. test failure

Comments

@fengxue-IS
Copy link
Contributor

fengxue-IS commented Aug 30, 2023

Failing JTReg testcases:

jdk/internal/vm/Continuation/MovingCompWindow.java
serviceability/jvmti/vthread/ToggleNotifyJvmtiTest/ToggleNotifyJvmtiTest.java

Error message for ToggleNotifyJvmtiTest:

java.lang.UnsatisfiedLinkError: jdk/test/whitebox/WhiteBox.registerNatives()V
at jdk.test.whitebox.WhiteBox.<clinit>(WhiteBox.java:67)
at ToggleNotifyJvmtiTest.<clinit>(ToggleNotifyJvmtiTest.java:102)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1522)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newMethodAccessor(MethodHandleAccessorFactory.java:71)
at java.base/jdk.internal.reflect.ReflectionFactory.newMethodAccessor(ReflectionFactory.java:159)
at java.base/java.lang.reflect.Method.acquireMethodAccessor(Method.java:726)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1595)

Error message for MovingCompWindow:

15:24:46  java.lang.UnsatisfiedLinkError: jdk/test/whitebox/WhiteBox.registerNatives()V
15:24:46  	at jdk.test.whitebox.WhiteBox.<clinit>(WhiteBox.java:67)
15:24:46  	at MovingCompWindow.<clinit>(MovingCompWindow.java:69)
15:24:46  	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
15:24:46  	at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1522)
15:24:46  	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.ensureClassInitialized(MethodHandleAccessorFactory.java:300)
15:24:46  	at java.base/jdk.internal.reflect.MethodHandleAccessorFactory.newMethodAccessor(MethodHandleAccessorFactory.java:71)
15:24:46  	at java.base/jdk.internal.reflect.ReflectionFactory.newMethodAccessor(ReflectionFactory.java:159)
15:24:46  	at java.base/java.lang.reflect.Method.acquireMethodAccessor(Method.java:726)
15:24:46  	at java.base/java.lang.reflect.Method.invoke(Method.java:577)
15:24:46  	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
15:24:46  	at java.base/java.lang.Thread.run(Thread.java:1595)
15:24:46  STATUS:Failed.`main' threw exception: java.lang.UnsatisfiedLinkError: jdk/test/whitebox/WhiteBox.registerNatives()V

The WhiteBox class is Hotspot specific and not supported by OpenJ9.

@babsingh
Copy link
Contributor

The above stack trace only reflects the issue for ToggleNotifyJvmtiTest. We should also add the stack trace for MovingCompWindow in the issue description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perm excluded The test is unsuitable and permanently excluded. test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants