logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: Log4J 2.5 -> 2.6 Upgrade NoSuchMethodError
Date Tue, 31 May 2016 19:35:16 GMT
On Tue, May 31, 2016 at 11:42 AM, DiFrango, Ronald <
Ronald.DiFrango@capitalone.com> wrote:

> All,
> I just attempted to upgrade from log42j version 2.5 to 2.6 and I started
> getting the following:
> java.lang.NoSuchMethodError:
> org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V
> This seems to happen on log messages where we do something simple like:
> logger.debug(“Configuration Directory {}", configRoot);
> It does get resolved if I do something like:
> logger.debug(“Configuration Directory {}”, new Object[]{configRoot});
> But that seems unnecessary.
> This worked perfectly fine in 2.5, any thing that I’m missing?

And yet I see the Logger debug(String, Object) method here:

Can you check your classpath? There is something odd going on.

What happens if you try to recompile your sources?


> Thanks,
> Ron
> ________________________________________________________
> The information contained in this e-mail is confidential and/or
> proprietary to Capital One and/or its affiliates and may only be used
> solely in performance of work or services for Capital One. The information
> transmitted herewith is intended only for use by the individual or entity
> to which it is addressed. If the reader of this message is not the intended
> recipient, you are hereby notified that any review, retransmission,
> dissemination, distribution, copying or other use of, or taking of any
> action in reliance upon this information is strictly prohibited. If you
> have received this communication in error, please contact the sender and
> delete the material from your computer.

E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message