Exception in thread "Timer-1" java.lang.NullPointerException

I am using eclipse, apache tomcat 6.0.32, Struts, Hibernate and obviously log4j, which seems to be causing the problem. Since I'm really new to all of these technologies, I'm not sure how to start debugging the problem.

Since I'm not sure what information I should provide, I will simply post an exception here:

Exception in thread "Timer-1" java.lang.NullPointerException
at com.mchange.v2.log.log4j.Log4jMLog$Log4jMLogger.isLoggable(Log4jMLog.java:255)
at com.mchange.v2.resourcepool.BasicResourcePool$CheckIdleResourcesTask.run(BasicResourcePool.java:1961)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

And the log4j.properties file:


# Output at info level, to the appender called 'A'. Debug has too much logging.
log4j.rootLogger=info, A
# Configure the appender called 'A'
log4j.appender.A=org.apache.log4j.ConsoleAppender
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Thanks in advance!

+3
source share
1 answer

, Noy, , Timer Local . Timer . . . Timer timer = new Timer();

0

All Articles