2 Replies Latest reply on Nov 15, 2005 5:09 PM by Michael Holtzman

    Log configuration exception when debugging in Eclipse

    Michael Holtzman Newbie

      Greetings. I am constructing a stand-alone java app to run jbpm, which runs fine from the Windows command line. However, I need to debug it. When I start to debug within Eclipse, I get an exception when it tries to initialize logging - here:

      static {
       jbpmSessionFactory = JbpmSessionFactory.buildJbpmSessionFactory();

      which calls

      private static final Log log = LogFactory.getLog(JbpmConfiguration.class);

      I have a log4j.properties file in my debugger classpath. Anyone have a clue about setting this up? Thanx.

        • 1. Re: Log configuration exception when debugging in Eclipse
          Ronald van Kuijk Master

          what exception do you get? We cannot help when you just report it does not work in this line. Lots of things can be wrong and since you've got lots of posts here which all might be related to not having the correct libs on the classpath

          • 2. Re: Log configuration exception when debugging in Eclipse
            Michael Holtzman Newbie


             at org.jbpm.db.JbpmSessionFactory.<clinit>(JbpmSessionFactory.java:40)
             at com.olf.workflowmgr.Script.<clinit>(Script.java:76)
            Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))
             at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
             at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
             at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
             at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
             at org.jbpm.JbpmConfiguration.<clinit>(JbpmConfiguration.java:92)
             ... 2 more
            Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException)
             at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:397)
             at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
             ... 6 more
            Caused by: java.lang.NullPointerException
             at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:374)
             ... 7 more