Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 071D9200C0F for ; Thu, 2 Feb 2017 16:44:57 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 05914160B61; Thu, 2 Feb 2017 15:44:57 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 51FF9160B54 for ; Thu, 2 Feb 2017 16:44:56 +0100 (CET) Received: (qmail 32592 invoked by uid 500); 2 Feb 2017 15:44:55 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 32583 invoked by uid 99); 2 Feb 2017 15:44:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2017 15:44:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 0DBE2C1157 for ; Thu, 2 Feb 2017 15:44:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2vlGiAURC4Dh for ; Thu, 2 Feb 2017 15:44:54 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 481475F5C4 for ; Thu, 2 Feb 2017 15:44:53 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 424AEE03A2 for ; Thu, 2 Feb 2017 15:44:52 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9E9612528D for ; Thu, 2 Feb 2017 15:44:51 +0000 (UTC) Date: Thu, 2 Feb 2017 15:44:51 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1803) JMH generated benchmark classes not included in jar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Feb 2017 15:44:57 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15850066#comment-15850066 ] ASF subversion and git services commented on LOG4J2-1803: --------------------------------------------------------- Commit 8ce7dbcdf1d8a92bba3f0c8c9429cd4c8c491306 in logging-log4j2's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=8ce7dbc ] LOG4J2-1803 changelog > JMH generated benchmark classes not included in jar > --------------------------------------------------- > > Key: LOG4J2-1803 > URL: https://issues.apache.org/jira/browse/LOG4J2-1803 > Project: Log4j 2 > Issue Type: Bug > Components: Core, Performance Benchmarks > Affects Versions: 2.8 > Reporter: Remko Popma > Assignee: Ralph Goers > Fix For: 2.8.1 > > > Some time after the 2.7 release, the JMH benchmarks stopped working. When trying to execute them, this error occurs: > {code} > 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 > {code} > When I build the project, the classes generated by JMH under log4j-perf/target/generated-sources/annotations are not included in the shaded benchmarks.jar or in log4j-perf-2.8.1-SNAPSHOT.jar... > 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...) > {code} > > > > default-compile > > compile > > compile > > none > > > > > process-plugins > > compile > > process-classes > > only > > > > {code} > From the log4j-dev mailing list: > {quote} > That maven-compiler-plugin config was originally only included in log4j-core in order to allow the PluginProcessor annotation processor to re-run against log4j-core without needing to split it into its own jar. I'm not sure why it's configured for everything now. > {quote} > Potentially related: somebody reported on StackOverflow that [their custom plugin no longer loads with 2.8|http://stackoverflow.com/questions/41938128/log4j-2-8-cannot-load-custom-converters-in-osgi-environment]. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org