logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41316] - NPE when using RollingFileAppender in Tomcat.
Date Sun, 28 Jan 2007 15:34:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41316>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41316





------- Additional Comments From sperling.david@gmail.com  2007-01-28 07:34 -------
I get the same error message in Eclipse when I use the manager webapp
that comes with tomcat 5 to reload a webapp. I've got the 
log4j-1.2.8.jar jar in WEB-INF/lib/ and common/lib/

I'm running Apache Tomcat/5.5.16

Prop file:
log4j.threshold=ALL
log4j.rootLogger=INFO, R

####  writes to a file
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/nac/nac.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%c{1}] %p - %n %m%n%n 
log4j.appender.R.MaxFileSize=100MB
log4j.appender.R.MaxBackupIndex=5




#### velocity  log level
##log4j.appender.R.apache.velocity.runtime.log.SimpleLog4JLogSystem=ERROR

log4j.logger.org.apache.velocity=FATAL
log4j.logger.org.apache.struts.validator=ERROR
log4j.logger.org.apache.struts.tiles=ERROR
log4j.logger.org.apache.commons.beanutils=ERROR

stack trace:

log4j:ERROR Error occured while converting date.
java.lang.NullPointerException
	at java.lang.System.arraycopy(Native Method)
	at java.lang.AbstractStringBuilder.getChars(AbstractStringBuilder.java:331)
	at java.lang.StringBuffer.getChars(StringBuffer.java:202)
	at org.apache.log4j.helpers.ISO8601DateFormat.format(ISO8601DateFormat.java:120)
	at java.text.DateFormat.format(DateFormat.java:314)
	at
org.apache.log4j.helpers.PatternParser$DatePatternConverter.convert(PatternParser.java:436)
	at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:56)
	at org.apache.log4j.PatternLayout.format(PatternLayout.java:495)
	at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:292)
	at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)
	at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
	at
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
	at org.apache.log4j.Category.callAppenders(Category.java:187)
	at org.apache.log4j.Category.forcedLog(Category.java:372)
	at org.apache.log4j.Category.log(Category.java:864)
	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:4136)
	at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)
	at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:906)
	at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:353)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)

This bug occurs often but not everytime.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message