NPE in JSONResultFormat

Bernhard Urban lewurm at gmail.com
Fri Feb 21 06:41:30 PST 2014


Hi,

since JMH 0.4 I get a NullPointerException in the JSON result writer:

$ java -jar jmh-samples/target/microbenchmarks.jar ".*JMHSample_01.*" -f 1
-i 1 -wi 0 -rff result.json -rf json

[...]

Benchmark                                          Mode   Samples
Mean   Mean error    Units
o.o.j.s.JMHSample_01_HelloWorld.wellHelloThere    thrpt         1
 2676952.518          NaN   ops/ms
Exception in thread "main" java.lang.NullPointerException
at
org.openjdk.jmh.output.results.JSONResultFormat.writeOut(JSONResultFormat.java:75)
 at
org.openjdk.jmh.output.results.ResultFormatFactory$1.writeOut(ResultFormatFactory.java:53)
at org.openjdk.jmh.runner.Runner.run(Runner.java:225)
 at org.openjdk.jmh.Main.main(Main.java:72)


Thanks,
Bernhard


More information about the jmh-dev mailing list