The cause seems to be a change in the master pom: the maven-compiler-plugin plugin now has the below section which was not there in 2.7. If I take it out and build only log4j-perf, the benchmarks run without error. (But building all modules fails: some problem in log4j-core...)
<executions> <execution> <!-- disable annotation processing for first pass --> <id>default-compile</id> <goals> <goal>compile</goal> </goals> <phase>compile</phase> <configuration> <proc>none</proc> </configuration> </execution> <execution> <!-- then do a processing-only pass to generate plugins .dat file --> <id>process-plugins</id> <goals> <goal>compile</goal> </goals> <phase>process-classes</phase> <configuration> <proc>only</proc> </configuration> </execution> </executions> On Sun, Jan 29, 2017 at 6:57 PM, Remko Popma <remko.po...@gmail.com> wrote: > That error is exactly what I am seeing. > For some reason the class files under > log4j-perf\target\generated-sources\annotations > (generated by JMH) are not included in the shaded benchmarks.jar or in > log4j-perf-2.8.1-SNAPSHOT.jar... > > Thanks for mentioning that it works with 2.7. That means it is likely one > of the changes to either the main pom or the log4j-perf pom since 2.7. > > On Sun, Jan 29, 2017 at 4:39 PM, Apache <ralph.go...@dslextreme.com> > wrote: > >> I can no longer get the benchmarks to work. I get >> >> java.lang.IllegalArgumentException: Benchmark does not match a class >> at org.openjdk.jmh.util.ClassUtils.loadClass(ClassUtils.java:90) >> at org.openjdk.jmh.runner.BaseRunner.runBenchmark(BaseRunner.java:198) >> at org.openjdk.jmh.runner.BaseRunner.runBenchmarks(BaseRunner.java:95) >> at org.openjdk.jmh.runner.ForkedRunner.run(ForkedRunner.java:51) >> at org.openjdk.jmh.runner.ForkedMain.main(ForkedMain.java:68) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.logging.log4j.perf.jmh.generated.FileAppenderBenchmark_julFile >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:195) >> at org.openjdk.jmh.util.ClassUtils.loadClass(ClassUtils.java:72) >> ... 4 more >> >> On Jan 28, 2017, at 6:13 PM, Remko Popma <remko.po...@gmail.com> wrote: >> >> >> On Jan 29, 2017, at 9:38, Remko Popma <remko.po...@gmail.com> wrote: >> >> I want to ask a favor: can anyone run the FileAppenderBenchmark >> benchmark >> (with -f 1 -wi 10 -i 10 -t 4) and post the summary? Someone is reporting >> a performance regression. >> >> This is the regression report: >> https://mobile.twitter.com/ceki/status/825368324146155520 >> >> https://mobile.twitter.com/ceki/status/825370795157368832 >> >> >> I get a strange error when trying to run JMH benchmarks and wonder if it >> is just me. >> >> Remko >> >> Sent from my iPhone >> >> >> >