On Tue, May 31, 2016 at 11:42 AM, DiFrango, Ronald < ronald.difra...@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: https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Logger.html#debug(java.lang.String,%20java.lang.Object) Can you check your classpath? There is something odd going on. What happens if you try to recompile your sources? Gary > > 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: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/> 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