java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z

qos.ch | 4 months ago
  1. 0

    I'm doing some web application which using displatag taglib which is depends on slf4j lib. The problem is when i startup my application, it failed and shows the following error : [2007/11/30 12:25:41] C:\dev\workspace\CheltenhamWeb\src\webapp\WEB-INF\web.xml:52: java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.isTraceEnabled(SLF4JLocationAwareLog.java:61) at org.hibernate.type.NullableType.<clinit>(NullableType.java:28) at org.hibernate.Hibernate.<clinit>(Hibernate.java:76) at org.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:46) at org.hibernate.mapping.ManyToOne.getType(ManyToOne.java:22) at org.hibernate.mapping.ManyToOne.createForeignKey(ManyToOne.java:32) at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1782) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1751) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:317) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151) at org.hibernate.cfg.Configuration.add(Configuration.java:360) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:397) at org.hibernate.cfg.Configuration.addResource(Configuration.java:446) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1313) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234) at org.hibernate.cfg.Configuration.configure(Configuration.java:1162) at com.vcint.persistence.hibernate.HibernateSessionFactory.buildNConfigure(HibernateSessionFactory.java:116) at com.vcint.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at com.vcint.persistence.hibernate.HibernateFactory.instantiateClass(HibernateFactory.java:40) at com.vcint.commons.locator.ResourceBinder.bindLocator(ResourceBinder.java:42) at com.vcint.persistence.hibernate.HibernateFactory.getHibernateManager(HibernateFactory.java:29) at com.vcint.persistance.HibernateInitialiser.init(HibernateInitialiser.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.caucho.util.BeanUtil.configure(BeanUtil.java:401) at com.caucho.util.BeanUtil.createBean(BeanUtil.java:153) ... is that something to do with the slf4j library??

    QOS.ch JIRA | 9 years ago | xuen
    java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
  2. 0

    I'm doing some web application which using displatag taglib which is depends on slf4j lib. The problem is when i startup my application, it failed and shows the following error : [2007/11/30 12:25:41] C:\dev\workspace\CheltenhamWeb\src\webapp\WEB-INF\web.xml:52: java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81) at org.apache.commons.logging.impl.SLF4JLocationAwareLog.isTraceEnabled(SLF4JLocationAwareLog.java:61) at org.hibernate.type.NullableType.<clinit>(NullableType.java:28) at org.hibernate.Hibernate.<clinit>(Hibernate.java:76) at org.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:46) at org.hibernate.mapping.ManyToOne.getType(ManyToOne.java:22) at org.hibernate.mapping.ManyToOne.createForeignKey(ManyToOne.java:32) at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1782) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1751) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:317) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151) at org.hibernate.cfg.Configuration.add(Configuration.java:360) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:397) at org.hibernate.cfg.Configuration.addResource(Configuration.java:446) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1313) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234) at org.hibernate.cfg.Configuration.configure(Configuration.java:1162) at com.vcint.persistence.hibernate.HibernateSessionFactory.buildNConfigure(HibernateSessionFactory.java:116) at com.vcint.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:65) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:308) at java.lang.Class.newInstance(Class.java:261) at com.vcint.persistence.hibernate.HibernateFactory.instantiateClass(HibernateFactory.java:40) at com.vcint.commons.locator.ResourceBinder.bindLocator(ResourceBinder.java:42) at com.vcint.persistence.hibernate.HibernateFactory.getHibernateManager(HibernateFactory.java:29) at com.vcint.persistance.HibernateInitialiser.init(HibernateInitialiser.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.caucho.util.BeanUtil.configure(BeanUtil.java:401) at com.caucho.util.BeanUtil.createBean(BeanUtil.java:153) ... is that something to do with the slf4j library??

    QOS.ch JIRA | 9 years ago | xuen
    java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Publish messages from OSB to ActiveMQ

    Oracle Community | 1 year ago | SandyMx
    java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z
  5. 0

    I am trying to run a PDI with mondrian input . All the dependencies for mondrain are present in the pom . ** The transformation runs well in carte server ***. I would like to get it to run in JVM as well. -- See stack trace below. INFO 19-08 18:39:56,350 - Start Transformation testmondrian on local jvm INFO 19-08 18:39:56,893 - true INFO 19-08 18:39:57,193 - Setting transformation params ... INFO 19-08 18:39:57,208 - Running Transformation now ... INFO 19-08 18:39:57,209 - testmondrain - Dispatching started for transformation [testmondrain] INFO 19-08 18:39:57,445 - Mondrian: properties loaded from 'file=/Users/ameyabarve/Documents/tag_workspace/services/pentaho-kettle/mondrian.properties (exists=true)' INFO 19-08 18:39:57,466 - Mondrian: properties loaded from 'file:/Users/ameyabarve/Documents/tag_workspace/services/pentaho-kettle/mondrian.properties' INFO 19-08 18:39:57,466 - Mondrian: loaded 0 system properties INFO 19-08 18:39:57,636 - Mondrian: JDBC driver org.postgresql.Driver loaded successfully WARN 19-08 18:39:57,636 - Mondrian: Warning: JDBC driver sun.jdbc.odbc.JdbcOdbcDriver not found WARN 19-08 18:39:57,637 - Mondrian: Warning: JDBC driver org.hsqldb.jdbcDriver not found WARN 19-08 18:39:57,637 - Mondrian: Warning: JDBC driver oracle.jdbc.OracleDriver not found WARN 19-08 18:39:57,637 - Mondrian: Warning: JDBC driver com.mysql.jdbc.Driver not found ERROR 19-08 18:39:57,651 - Mondrian Input - Unexpected error ERROR 19-08 18:39:57,653 - Mondrian Input - java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z at mondrian.server.monitor.Event.<init>(Event.java:46) at mondrian.server.monitor.ConnectionEvent.<init>(ConnectionEvent.java:40) at mondrian.server.monitor.ConnectionStartEvent.<init>(ConnectionStartEvent.java:28) at mondrian.server.MondrianServerImpl.addConnection(MondrianServerImpl.java:322) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:139) at mondrian.rolap.RolapConnection.<init>(RolapConnection.java:90) at mondrian.olap.DriverManager.getConnection(DriverManager.java:112) at mondrian.olap.DriverManager.getConnection(DriverManager.java:68) at mondrian.olap.DriverManager.getConnection(DriverManager.java:50) at org.pentaho.di.trans.steps.mondrianinput.MondrianHelper.openQuery(MondrianHelper.java:116) at org.pentaho.di.trans.steps.mondrianinput.MondrianInput.processRow(MondrianInput.java:63) at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50) at java.lang.Thread.run(Thread.java:680) INFO 19-08 18:39:57,657 - Mondrian Input - Finished reading query, closing connection. INFO 19-08 18:39:57,657 - Mondrian Input - Finished processing (I=0, O=0, R=0, W=0, U=0, E=1) INFO 19-08 18:39:57,657 - testmondrain - testmondrain INFO 19-08 18:39:57,657 - testmondrain - testmondrain INFO 19-08 18:39:57,958 - An exception was encountered while finalizing a RolapConnection object instance. java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z at mondrian.server.monitor.Event.<init>(Event.java:46) at mondrian.server.monitor.ConnectionEvent.<init>(ConnectionEvent.java:40) at mondrian.server.monitor.ConnectionEndEvent.<init>(ConnectionEndEvent.java:28) at mondrian.server.MondrianServerImpl.removeConnection(MondrianServerImpl.java:335) at mondrian.rolap.RolapConnection.close(RolapConnection.java:543) at mondrian.rolap.RolapConnection.finalize(RolapConnection.java:284) at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method) at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83) at java.lang.ref.Finalizer.access$100(Finalizer.java:14) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:172)

    Pentaho BI Platform Tracking | 3 years ago | Ameya
    java.lang.NoSuchMethodError: org.apache.log4j.Logger.isTraceEnabled()Z

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.log4j.Logger.isTraceEnabled()Z

      at org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled()
    2. SLF4J LOG4J-12 Binding
      Log4jLoggerAdapter.isTraceEnabled
      1. org.slf4j.impl.Log4jLoggerAdapter.isTraceEnabled(Log4jLoggerAdapter.java:81)
      1 frame
    3. Apache Commons Logging
      SLF4JLocationAwareLog.isTraceEnabled
      1. org.apache.commons.logging.impl.SLF4JLocationAwareLog.isTraceEnabled(SLF4JLocationAwareLog.java:61)
      1 frame
    4. Hibernate
      Configuration.configure
      1. org.hibernate.type.NullableType.<clinit>(NullableType.java:28)
      2. org.hibernate.Hibernate.<clinit>(Hibernate.java:76)
      3. org.hibernate.type.TypeFactory.<clinit>(TypeFactory.java:46)
      4. org.hibernate.mapping.ManyToOne.getType(ManyToOne.java:22)
      5. org.hibernate.mapping.ManyToOne.createForeignKey(ManyToOne.java:32)
      6. org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1782)
      7. org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1751)
      8. org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:317)
      9. org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235)
      10. org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151)
      11. org.hibernate.cfg.Configuration.add(Configuration.java:360)
      12. org.hibernate.cfg.Configuration.addInputStream(Configuration.java:397)
      13. org.hibernate.cfg.Configuration.addResource(Configuration.java:446)
      14. org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1313)
      15. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1285)
      16. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1267)
      17. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1234)
      18. org.hibernate.cfg.Configuration.configure(Configuration.java:1162)
      18 frames
    5. com.vcint.persistence
      HibernateSessionFactory.<init>
      1. com.vcint.persistence.hibernate.HibernateSessionFactory.buildNConfigure(HibernateSessionFactory.java:116)
      2. com.vcint.persistence.hibernate.HibernateSessionFactory.<init>(HibernateSessionFactory.java:65)
      2 frames
    6. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      5. java.lang.Class.newInstance0(Class.java:308)
      6. java.lang.Class.newInstance(Class.java:261)
      6 frames
    7. com.vcint.persistence
      HibernateFactory.instantiateClass
      1. com.vcint.persistence.hibernate.HibernateFactory.instantiateClass(HibernateFactory.java:40)
      1 frame
    8. com.vcint.commons
      ResourceBinder.bindLocator
      1. com.vcint.commons.locator.ResourceBinder.bindLocator(ResourceBinder.java:42)
      1 frame
    9. com.vcint.persistence
      HibernateFactory.getHibernateManager
      1. com.vcint.persistence.hibernate.HibernateFactory.getHibernateManager(HibernateFactory.java:29)
      1 frame
    10. com.vcint.persistance
      HibernateInitialiser.init
      1. com.vcint.persistance.HibernateInitialiser.init(HibernateInitialiser.java:15)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    12. com.caucho.util
      BeanUtil.createBean
      1. com.caucho.util.BeanUtil.configure(BeanUtil.java:401)
      2. com.caucho.util.BeanUtil.createBean(BeanUtil.java:153)
      2 frames