You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Leon Finker <le...@gmail.com> on 2016/09/08 17:40:30 UTC

2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Hi,

We are using 3rd part library that depends on log4j2 2.3 API. While testing latest log4j2 master, our process fails to start. Unless this API is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?

[2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
java.lang.NoSuchMethodError: org.apache.logging.log4j.core.config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/apache/logging/log4j/core/config/AppenderRef;[Lorg/apache/logging/log4j/core/config/Property;Lorg/apache/logging/log4j/core/config/Configuration;Lorg/apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/LoggerConfig;
	at com.gemstone.gemfire.internal.logging.log4j.Configurator.getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
	at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
	at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85) ~[gemfire-8.2.0.13.jar:?]
	at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76) ~[gemfire-8.2.0.13.jar:?]
	at com.gemstone.gemfire.distributed.internal.DistributionManager.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
	at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]

Also noticed that you changed XmlConfiguration ctor and require LoggerContext. That's ok since we can change that part. Looks a bit silly:
loggerContext.start(new XmlConfiguration(loggerContext, configSource));
unless absolutely required, probably not good idea to change the public XmlConfiguration ctor.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Leon Finker <le...@gmail.com>.
Works. Thank you!

On 2016-09-08 14:55 (-0400), Gary Gregory <ga...@gmail.com> wrote: 
> I've added back the LoggerConfig.createLogger() factory method in Git
> master. Please try again.
> 
> Gary
> 
> On Thu, Sep 8, 2016 at 11:43 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> 
> > Fixing...
> >
> > On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
> >
> >> Hi,
> >>
> >> We are using 3rd part library that depends on log4j2 2.3 API. While
> >> testing latest log4j2 master, our process fails to start. Unless this API
> >> is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
> >>
> >> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> >> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
> >> config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/
> >> apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/
> >> String;[Lorg/apache/logging/log4j/core/config/AppenderRef;
> >> [Lorg/apache/logging/log4j/core/config/Property;Lorg/
> >> apache/logging/log4j/core/config/Configuration;Lorg/
> >> apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/
> >> LoggerConfig;
> >>         at com.gemstone.gemfire.internal.logging.log4j.Configurator.get
> >> OrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
> >>         at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98)
> >> ~[gemfire-8.2.0.13.jar:?]
> >>         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
> >> ~[gemfire-8.2.0.13.jar:?]
> >>         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
> >> ~[gemfire-8.2.0.13.jar:?]
> >>         at com.gemstone.gemfire.distributed.internal.DistributionManage
> >> r.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
> >>         at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610)
> >> ~[gemfire-8.2.0.13.jar:?]
> >>
> >> Also noticed that you changed XmlConfiguration ctor and require
> >> LoggerContext. That's ok since we can change that part. Looks a bit silly:
> >> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> >> unless absolutely required, probably not good idea to change the public
> >> XmlConfiguration ctor.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-dev-help@logging.apache.org
> >>
> >>
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@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
> >
> 
> 
> 
> -- 
> E-Mail: garydgregory@gmail.com | ggregory@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
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Gary Gregory <ga...@gmail.com>.
I've added back the LoggerConfig.createLogger() factory method in Git
master. Please try again.

Gary

On Thu, Sep 8, 2016 at 11:43 AM, Gary Gregory <ga...@gmail.com>
wrote:

> Fixing...
>
> On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
>
>> Hi,
>>
>> We are using 3rd part library that depends on log4j2 2.3 API. While
>> testing latest log4j2 master, our process fails to start. Unless this API
>> is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
>>
>> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
>> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
>> config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/
>> apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/
>> String;[Lorg/apache/logging/log4j/core/config/AppenderRef;
>> [Lorg/apache/logging/log4j/core/config/Property;Lorg/
>> apache/logging/log4j/core/config/Configuration;Lorg/
>> apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/
>> LoggerConfig;
>>         at com.gemstone.gemfire.internal.logging.log4j.Configurator.get
>> OrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.distributed.internal.DistributionManage
>> r.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610)
>> ~[gemfire-8.2.0.13.jar:?]
>>
>> Also noticed that you changed XmlConfiguration ctor and require
>> LoggerContext. That's ok since we can change that part. Looks a bit silly:
>> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
>> unless absolutely required, probably not good idea to change the public
>> XmlConfiguration ctor.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@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
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@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

Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Gary Gregory <ga...@gmail.com>.
Fixing...

On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:

> Hi,
>
> We are using 3rd part library that depends on log4j2 2.3 API. While
> testing latest log4j2 master, our process fails to start. Unless this API
> is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
>
> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
> config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/
> log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/
> apache/logging/log4j/core/config/AppenderRef;[Lorg/
> apache/logging/log4j/core/config/Property;Lorg/apache/
> logging/log4j/core/config/Configuration;Lorg/apache/
> logging/log4j/core/Filter;)Lorg/apache/logging/log4j/
> core/config/LoggerConfig;
>         at com.gemstone.gemfire.internal.logging.log4j.Configurator.
> getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.
> configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.distributed.internal.
> DistributionManager.<clinit>(DistributionManager.java:133)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.distributed.DistributedSystem.
> connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]
>
> Also noticed that you changed XmlConfiguration ctor and require
> LoggerContext. That's ok since we can change that part. Looks a bit silly:
> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> unless absolutely required, probably not good idea to change the public
> XmlConfiguration ctor.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@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

Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Leon Finker <le...@gmail.com>.
It's this commit facb281ba2f5f83903a7aedf385f83d7f9520561
* Remove internal method that is @deprecated Use {@link
#createLogger(boolean, Level, String, String, AppenderRef[], Property[],
Configuration, Filter)}

But it was public, not internal. In any case I wouldn't care if major 3rd party library didn't make use of it. And there is no way to change that. If it was under our control, we would update our source to new api.



On 2016-09-08 13:49 (-0400), Ralph Goers <ra...@dslextreme.com> wrote: 
> Thanks for pointing this out. There is currently a discussion on the dev list about what we want to remain backward compatible in Log4j core. AppenderRef is certainly one of the things that should be.
> 
> Ralph
> 
> > On Sep 8, 2016, at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
> > 
> > Hi,
> > 
> > We are using 3rd part library that depends on log4j2 2.3 API. While testing latest log4j2 master, our process fails to start. Unless this API is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
> > 
> > [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> > java.lang.NoSuchMethodError: org.apache.logging.log4j.core.config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/apache/logging/log4j/core/config/AppenderRef;[Lorg/apache/logging/log4j/core/config/Property;Lorg/apache/logging/log4j/core/config/Configuration;Lorg/apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/LoggerConfig;
> > 	at com.gemstone.gemfire.internal.logging.log4j.Configurator.getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
> > 	at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
> > 	at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85) ~[gemfire-8.2.0.13.jar:?]
> > 	at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76) ~[gemfire-8.2.0.13.jar:?]
> > 	at com.gemstone.gemfire.distributed.internal.DistributionManager.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
> > 	at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]
> > 
> > Also noticed that you changed XmlConfiguration ctor and require LoggerContext. That's ok since we can change that part. Looks a bit silly:
> > loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> > unless absolutely required, probably not good idea to change the public XmlConfiguration ctor.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-dev-help@logging.apache.org
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Ralph Goers <ra...@dslextreme.com>.
Thanks for pointing this out. There is currently a discussion on the dev list about what we want to remain backward compatible in Log4j core. AppenderRef is certainly one of the things that should be.

Ralph

> On Sep 8, 2016, at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
> 
> Hi,
> 
> We are using 3rd part library that depends on log4j2 2.3 API. While testing latest log4j2 master, our process fails to start. Unless this API is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
> 
> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/apache/logging/log4j/core/config/AppenderRef;[Lorg/apache/logging/log4j/core/config/Property;Lorg/apache/logging/log4j/core/config/Configuration;Lorg/apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/LoggerConfig;
> 	at com.gemstone.gemfire.internal.logging.log4j.Configurator.getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
> 	at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
> 	at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85) ~[gemfire-8.2.0.13.jar:?]
> 	at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76) ~[gemfire-8.2.0.13.jar:?]
> 	at com.gemstone.gemfire.distributed.internal.DistributionManager.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
> 	at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]
> 
> Also noticed that you changed XmlConfiguration ctor and require LoggerContext. That's ok since we can change that part. Looks a bit silly:
> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> unless absolutely required, probably not good idea to change the public XmlConfiguration ctor.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Gary Gregory <ga...@gmail.com>.
FWIW: When I look at Pivotal GemFire 8.2.1 (the latest I could get a
non-native version), I see it uses Log4j 2.1.

Gary

On Thu, Sep 8, 2016 at 12:00 PM, Gary Gregory <ga...@gmail.com>
wrote:

> What version of Gemfire are you using?
>
> Gary
>
> On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
>
>> Hi,
>>
>> We are using 3rd part library that depends on log4j2 2.3 API. While
>> testing latest log4j2 master, our process fails to start. Unless this API
>> is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
>>
>> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
>> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
>> config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/
>> apache/logging/log4j/Level;Ljava/lang/String;Ljava/lang/
>> String;[Lorg/apache/logging/log4j/core/config/AppenderRef;
>> [Lorg/apache/logging/log4j/core/config/Property;Lorg/
>> apache/logging/log4j/core/config/Configuration;Lorg/
>> apache/logging/log4j/core/Filter;)Lorg/apache/logging/log4j/core/config/
>> LoggerConfig;
>>         at com.gemstone.gemfire.internal.logging.log4j.Configurator.get
>> OrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.configureLoggers(LogService.java:98)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
>> ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.distributed.internal.DistributionManage
>> r.<clinit>(DistributionManager.java:133) ~[gemfire-8.2.0.13.jar:?]
>>         at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1610)
>> ~[gemfire-8.2.0.13.jar:?]
>>
>> Also noticed that you changed XmlConfiguration ctor and require
>> LoggerContext. That's ok since we can change that part. Looks a bit silly:
>> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
>> unless absolutely required, probably not good idea to change the public
>> XmlConfiguration ctor.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>>
>>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@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
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@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

Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Leon Finker <le...@gmail.com>.
8.2.0.13. 
-- [gemfire-8.2.0.13.jar:?]

Actually I double checked and they are on <log4j.version>2.1</log4j.version>. Even latest version 8.2.1.1. I don't think they'll be in any hurry to upgrade.

On 2016-09-08 15:00 (-0400), Gary Gregory <ga...@gmail.com> wrote: 
> What version of Gemfire are you using?
> 
> Gary
> 
> On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:
> 
> > Hi,
> >
> > We are using 3rd part library that depends on log4j2 2.3 API. While
> > testing latest log4j2 master, our process fails to start. Unless this API
> > is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
> >
> > [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> > java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
> > config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/
> > log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/
> > apache/logging/log4j/core/config/AppenderRef;[Lorg/
> > apache/logging/log4j/core/config/Property;Lorg/apache/
> > logging/log4j/core/config/Configuration;Lorg/apache/
> > logging/log4j/core/Filter;)Lorg/apache/logging/log4j/
> > core/config/LoggerConfig;
> >         at com.gemstone.gemfire.internal.logging.log4j.Configurator.
> > getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
> >         at com.gemstone.gemfire.internal.logging.LogService.
> > configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
> >         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
> > ~[gemfire-8.2.0.13.jar:?]
> >         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
> > ~[gemfire-8.2.0.13.jar:?]
> >         at com.gemstone.gemfire.distributed.internal.
> > DistributionManager.<clinit>(DistributionManager.java:133)
> > ~[gemfire-8.2.0.13.jar:?]
> >         at com.gemstone.gemfire.distributed.DistributedSystem.
> > connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]
> >
> > Also noticed that you changed XmlConfiguration ctor and require
> > LoggerContext. That's ok since we can change that part. Looks a bit silly:
> > loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> > unless absolutely required, probably not good idea to change the public
> > XmlConfiguration ctor.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-dev-help@logging.apache.org
> >
> >
> 
> 
> -- 
> E-Mail: garydgregory@gmail.com | ggregory@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
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: 2.6.3-SNAPSHOT java.lang.NoSuchMethodError

Posted by Gary Gregory <ga...@gmail.com>.
What version of Gemfire are you using?

Gary

On Thu, Sep 8, 2016 at 10:40 AM, Leon Finker <le...@gmail.com> wrote:

> Hi,
>
> We are using 3rd part library that depends on log4j2 2.3 API. While
> testing latest log4j2 master, our process fails to start. Unless this API
> is compatible there is no way to upgrade to log4j2 2.7. Can this be fixed?
>
> [2016-09-08 17:16:54,153Z][FATAL][main:0xf][...]
> java.lang.NoSuchMethodError: org.apache.logging.log4j.core.
> config.LoggerConfig.createLogger(Ljava/lang/String;Lorg/apache/logging/
> log4j/Level;Ljava/lang/String;Ljava/lang/String;[Lorg/
> apache/logging/log4j/core/config/AppenderRef;[Lorg/
> apache/logging/log4j/core/config/Property;Lorg/apache/
> logging/log4j/core/config/Configuration;Lorg/apache/
> logging/log4j/core/Filter;)Lorg/apache/logging/log4j/
> core/config/LoggerConfig;
>         at com.gemstone.gemfire.internal.logging.log4j.Configurator.
> getOrCreateLoggerConfig(Configurator.java:82) ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.
> configureLoggers(LogService.java:98) ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.init(LogService.java:85)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.internal.logging.LogService.<clinit>(LogService.java:76)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.distributed.internal.
> DistributionManager.<clinit>(DistributionManager.java:133)
> ~[gemfire-8.2.0.13.jar:?]
>         at com.gemstone.gemfire.distributed.DistributedSystem.
> connect(DistributedSystem.java:1610) ~[gemfire-8.2.0.13.jar:?]
>
> Also noticed that you changed XmlConfiguration ctor and require
> LoggerContext. That's ok since we can change that part. Looks a bit silly:
> loggerContext.start(new XmlConfiguration(loggerContext, configSource));
> unless absolutely required, probably not good idea to change the public
> XmlConfiguration ctor.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-dev-help@logging.apache.org
>
>


-- 
E-Mail: garydgregory@gmail.com | ggregory@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