NPE in Runner.run().entrySet() in JMH > 0.4.2

Aleksey Shipilev aleksey.shipilev at oracle.com
Fri Apr 11 20:30:22 UTC 2014


On 04/11/2014 09:27 PM, Roman Leventov wrote:
> What changed between 0.4.2 and 0.5.0?

Benchmark generation strategy changed, as said here:
 http://mail.openjdk.java.net/pipermail/jmh-dev/2014-March/000583.html

Also, JMH page says: "Make sure you tried these things before getting
support: * Archetypes provide the golden build configuration. Try to
generate the clean JMH benchmark project and transplant the benchmark
there. This is important to try when upgrading to the newer JMH
versions, since the minute differences in the build configurations may
attribute to the failures you are seeing."

And I see your Gradle build script lacks jmh-generator-annprocess. See
how it's done here:

http://gvsmirnov.ru/blog/tech/2014/03/10/keeping-your-benchmarks-separate.html

Thanks,
-Aleksey.





More information about the jmh-dev mailing list