LamNV86 / jmx-logger

Automatically exported from code.google.com/p/jmx-logger
0 stars 0 forks source link

NoSuchMethodError #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.log4j.spi.LoggingEvent.getTimeStamp()J
    at jmxlogger.integration.log4j.JmxLogAppender.prepareLogEvent(Unknown Source)
    at jmxlogger.integration.log4j.JmxLogAppender.append(Unknown Source)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
    at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAt
tachableImpl.java:65)
    at org.apache.log4j.Category.callAppenders(Category.java:203)
    at org.apache.log4j.Category.forcedLog(Category.java:388)
    at org.apache.log4j.Category.log(Category.java:853)
    at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:193)
    at JmxLoggerTest.main(JmxLoggerTest.java:10)

I get above exception when I try using commons-logging with jmx appender
configured in log4j.xml file. 

Original issue reported on code.google.com by ishara...@gmail.com on 27 Jul 2009 at 5:57

GoogleCodeExporter commented 9 years ago
Found that log4j-1.2.15 should be in the build path.

Original comment by ishara...@gmail.com on 27 Jul 2009 at 6:10

GoogleCodeExporter commented 9 years ago
Still I couldn't get it displayed on JConsole. Could anyone please direct me 
how to
do this? 

Original comment by ishara...@gmail.com on 27 Jul 2009 at 6:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Pls Check the links below
http://marxsoftware.blogspot.com/2008/01/making-jps-and-jconsole-work-with-java.
html
http://www.bigsoft.co.uk/blog/index.php/2008/11/25/jmx-examples-don-t-work-under
-windows

Original comment by kenilp...@gmail.com on 25 Sep 2009 at 12:38

GoogleCodeExporter commented 9 years ago
Workaround: use version log4j-1.2.15 required for build.

Original comment by vladimir...@gmail.com on 12 Oct 2009 at 3:56