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

NullPointerException while Running Humble Benchmarks with JDK 11 Hotspot #24

Open
piyush286 opened this issue Apr 13, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@piyush286
Copy link
Contributor

Problem Description

Running Humble benchmarks with JDK 11 Hotspot gives NullPointerException as shown below. This benchmark works with JDK 8 Hotpot and JDK 11 and 8 OpenJ9.

I'm trying to add BumbleBench targets for testing at Adopt as part of adoptium/aqa-tests#1379.

Error

15:46:53  Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
15:46:53  	at net.adoptopenjdk.bumblebench.core.Util.freshlyLoadedClass(Util.java:185)
15:46:53  	at net.adoptopenjdk.bumblebench.core.Util.newInstanceOfPossiblyFreshlyLoadedClass(Util.java:221)
15:46:53  	at net.adoptopenjdk.bumblebench.core.Util.newInstanceOfFreshlyLoadedClass(Util.java:208)
15:46:53  	at net.adoptopenjdk.bumblebench.core.HumbleBench$DelayThread.<init>(HumbleBench.java:134)
15:46:53  	at net.adoptopenjdk.bumblebench.core.HumbleBench.<init>(HumbleBench.java:57)
15:46:53  	at net.adoptopenjdk.bumblebench.humble.DistinctStringsEqualsBench.<init>(DistinctStringsEqualsBench.java:35)
15:46:53  	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
15:46:53  	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
15:46:53  	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
15:46:53  	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
15:46:53  	at java.base/java.lang.Class.newInstance(Class.java:584)
15:46:53  	at net.adoptopenjdk.bumblebench.core.Launcher.main(Launcher.java:55)
15:46:53  Caused by: java.lang.NullPointerException
15:46:53  	at java.base/java.lang.reflect.Method.invoke(Method.java:559)
15:46:53  	at net.adoptopenjdk.bumblebench.core.Util.readFully(Util.java:194)
15:46:53  	at net.adoptopenjdk.bumblebench.core.Util.freshlyLoadedClass(Util.java:182)
15:46:53  	... 11 more
15:46:53  
15:46:53  bumbleBench-DistinctStringsEqualsBench_0_FAILED

To Reproduce

  1. Remove the implementation constraint for the tests such as DistinctStringsEqualsBench (https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/perf/bumbleBench/playlist.xml)
  2. Use the bumbleBench-DistinctStringsEqualsBench target on TestKitGen with the relevant SDK
@karianna karianna added the bug Something isn't working label Apr 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants