Thanks for taking the time to look at this. I've been swamped at work recently and unable to contribute much to log4j at the moment... Remko
Sent from my iPhone > On 2014/04/07, at 7:45, Ralph Goers <[email protected]> wrote: > > It is a bug in StatusLogger.getStackTraceElement. > > Ralph > >> On Apr 6, 2014, at 3:37 PM, Ralph Goers <[email protected]> wrote: >> >> I’m stepping through this in the debugger and the reason it isn’t working is >> that the caller of the log statement no longer shows up properly as >> ResolverUtil but is instead AbstractLoggerProvider. >> >> Ralph >> >>> On Mar 23, 2014, at 3:35 PM, Remko Popma <[email protected]> wrote: >>> >>> Understood, thanks. If this has always been the behaviour then there is no >>> reason to change it now. >>> -Remko >>> >>> >>>> On Mon, Mar 24, 2014 at 7:25 AM, Ralph Goers <[email protected]> >>>> wrote: >>>> That warning message has been present since the first commit. However, I >>>> don’t recall ever seeing it before. I guess that is because I usually run >>>> at error level. >>>> >>>> The warning makes sense as it is basically saying the plugin won’t work >>>> due to a missing dependency. Can you think of a better way to deal with >>>> this? >>>> >>>> Ralph >>>> >>>> >>>> On Mar 23, 2014, at 2:55 PM, Remko Popma <[email protected]> wrote: >>>> >>>> > If I run a simple HelloWorld log test program, with a log4j2.xml config >>>> > that has >>>> > <Configuration status="warn"> >>>> > >>>> > then I get _a lot_ of warnings (see below). >>>> > They seem to be generated by ResolverUtil#addIfMatching when loading >>>> > plugins. >>>> > Just wondering: has this always been the case, or is this caused by a >>>> > recent change? >>>> > >>>> > C:\Users\remko\workspace\log4j-perf\bin>java -cp >>>> > .;..\lib\log4j-api-2.0-rc2-SNAPSHOT.jar;..\lib\log4j-core-2.0-rc2-SNAPSHOT.jar;..\lib\disruptor-3.2.0.jar >>>> > LOG4J2_537.HelloWorld >>>> > 2014-03-24 06:48:31,491 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,493 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,494 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,496 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,498 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,499 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,500 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/LevelAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,502 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MarkerAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,503 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MessageAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,505 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/StackTraceElementAttributeConverter.class' >>>> > due toa java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,506 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ThrowableAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,512 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > org/bson/Transformer >>>> > 2014-03-24 06:48:31,626 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/AbstractJMSReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError withmessage: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,634 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSQueueReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,638 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSTopicReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,644 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/SMTPManager$SMTPManagerFactory$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/mail/Authenticator >>>> > 2014-03-24 06:48:31,669 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContainerInitializer.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContainerInitializer >>>> > 2014-03-24 06:48:31,670 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContextListener.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContextListener >>>> > 2014-03-24 06:48:31,671 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletFilter.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/servlet/Filter >>>> > 2014-03-24 06:48:31,686 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,687 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,689 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,690 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,691 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,693 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,694 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/LevelAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,695 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MarkerAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,697 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MessageAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,698 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/StackTraceElementAttributeConverter.class' >>>> > due toa java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,700 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ThrowableAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,704 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > org/bson/Transformer >>>> > 2014-03-24 06:48:31,741 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/AbstractJMSReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError withmessage: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,744 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSQueueReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,747 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSTopicReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,749 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/SMTPManager$SMTPManagerFactory$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/mail/Authenticator >>>> > 2014-03-24 06:48:31,759 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContainerInitializer.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContainerInitializer >>>> > 2014-03-24 06:48:31,761 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContextListener.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContextListener >>>> > 2014-03-24 06:48:31,763 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletFilter.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/servlet/Filter >>>> > 2014-03-24 06:48:31,789 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,790 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,792 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextMapJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,794 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,796 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > com/fasterxml/jackson/core/type/TypeReference >>>> > 2014-03-24 06:48:31,798 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ContextStackJsonAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,800 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/LevelAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,801 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MarkerAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,803 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/MessageAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,804 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/StackTraceElementAttributeConverter.class' >>>> > due toa java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,805 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/jpa/converter/ThrowableAttributeConverter.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/persistence/AttributeConverter >>>> > 2014-03-24 06:48:31,808 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/appender/db/nosql/mongodb/MongoDBConnection$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > org/bson/Transformer >>>> > 2014-03-24 06:48:31,840 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/AbstractJMSReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError withmessage: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,843 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSQueueReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,845 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/JMSTopicReceiver.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/jms/MessageListener >>>> > 2014-03-24 06:48:31,849 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/net/SMTPManager$SMTPManagerFactory$1.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/mail/Authenticator >>>> > 2014-03-24 06:48:31,865 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContainerInitializer.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContainerInitializer >>>> > 2014-03-24 06:48:31,866 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletContextListener.class' >>>> > due to a java.lang.NoClassDefFoundError with message: >>>> > javax/servlet/ServletContextListener >>>> > 2014-03-24 06:48:31,868 WARN Could not examine class >>>> > 'org/apache/logging/log4j/core/web/Log4jServletFilter.class' due to a >>>> > java.lang.NoClassDefFoundError with message: javax/servlet/Filter >>>> > 06:48:31.945 INFO LOG4J2_537.HelloWorld 28 main - Hello, World! >>>> > C:\Users\remko\workspace\log4j-perf\bin> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >
