logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: I get Exception if tomcat reloads a class
Date Thu, 24 Aug 2006 04:10:01 GMT

I would report this as a bug in Bugzilla (I wonder when we will move 
to Jira like most other Apache projects?)...
http://issues.apache.org/bugzilla/

BTW, do you have code in a servlet context listener to close down 
Log4j upon application shutdown?  I'm not sure it will solve this 
issue, but it is a good idea anyway....

LogManager.shutdown();


Jake

At 12:57 PM 8/23/2006, you wrote:
 >Hi,
 >
 >I use tomcat-5.5.17 with log4j-1.2.13 and 1.5.0_08-b03.
 >
 >How can I fix that?
 >
 >Zsolt
 >
 >log4j:ERROR Error occured while converting date.
 >java.lang.NullPointerException
 >       at
 >java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:488)
 >       at java.lang.StringBuffer.append(StringBuffer.java:302)
 >       at
 >org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:132
 >)
 >       at java.text.DateFormat.format(DateFormat.java:314)
 >       at
 >org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP
 >arser.java:444)
 >       at
 >org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
 >       at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
 >       at
 >org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
 >       at
 >org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender
 >.java:358)
 >       at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
 >       at
 >org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
 >       at
 >org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
 >erAttachableImpl.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.error(Log4JLogger.java:193)
 >       at
 >org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:411)
 >       at
 >org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
 >       at
 >org.apache.catalina.session.StandardManager.start(StandardManager.java:636)
 >       at
 >org.apache.catalina.core.StandardContext.start(StandardContext.java:4137)
 >       at
 >org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
 >       at
 >org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
 >403)
 >       at
 >org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
 >1277)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1569)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
 >ainerBase.java:1558)
 >       at java.lang.Thread.run(Thread.java:595)
 >log4j:ERROR Error occured while converting date.
 >java.lang.NullPointerException
 >       at
 >java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:488)
 >       at java.lang.StringBuffer.append(StringBuffer.java:302)
 >       at
 >org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:132
 >)
 >       at java.text.DateFormat.format(DateFormat.java:314)
 >       at
 >org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternP
 >arser.java:444)
 >       at
 >org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
 >       at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
 >       at
 >org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
 >       at
 >org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender
 >.java:358)
 >       at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
 >       at
 >org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
 >       at
 >org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
 >erAttachableImpl.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.error(Log4JLogger.java:193)
 >       at
 >org.apache.catalina.session.StandardManager.start(StandardManager.java:638)
 >       at
 >org.apache.catalina.core.StandardContext.start(StandardContext.java:4137)
 >       at
 >org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
 >       at
 >org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
 >403)
 >       at
 >org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
 >1277)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1569)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
 >ainerBase.java:1558)
 >       at java.lang.Thread.run(Thread.java:595)
 >23.08.2006 19:55:00 org.apache.commons.modeler.Registry registerComponent
 >SEVERE: Null component
 >Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/cb,J2EEApplication=n
 >one,J2EEServer=none
 >23.08.2006 19:55:00 org.apache.catalina.core.ContainerBase backgroundProcess
 >WARNING: Exception processing loader WebappLoader[/cb] background process
 >java.lang.NullPointerException
 >       at org.apache.log4j.NDC.get(NDC.java:209)
 >       at org.apache.log4j.spi.LoggingEvent.getNDC(LoggingEvent.java:238)
 >       at
 >org.apache.log4j.helpers.PatternParser$BasicPatternConverter.convert(Pattern
 >Parser.java:401)
 >       at
 >org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
 >       at org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
 >       at
 >org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
 >       at
 >org.apache.log4j.DailyRollingFileAppender.subAppend(DailyRollingFileAppender
 >.java:358)
 >       at org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
 >       at
 >org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
 >       at
 >org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(Append
 >erAttachableImpl.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.error(Log4JLogger.java:193)
 >       at
 >org.apache.catalina.session.StandardManager.start(StandardManager.java:638)
 >       at
 >org.apache.catalina.core.StandardContext.start(StandardContext.java:4137)
 >       at
 >org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
 >       at
 >org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:
 >403)
 >       at
 >org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:
 >1277)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1569)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processC
 >hildren(ContainerBase.java:1578)
 >       at
 >org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(Cont
 >ainerBase.java:1558)
 >       at java.lang.Thread.run(Thread.java:595)
 >
 >
 >Zsolt Koppany
 >Phone: +49-711-722 1874
 >--
 >Intland Software, Wankelstrasse 3
 >D-70563 Stuttgart, Germany
 >Phone: +49-711-722 1873, e-mail:zsolt.koppany@intland.com
 >Fax: +49-711-722 1835
 >
 >
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
 >For additional commands, e-mail: log4j-user-help@logging.apache.org


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


Mime
View raw message