DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14926>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14926 Throw an NullPointerException! Summary: Throw an NullPointerException! Product: Log4j Version: 1.1 Platform: Sun OS/Version: Solaris Status: NEW Severity: Blocker Priority: Other Component: Appender AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We use log4j1.1.3 under Solaris8 with tomcat4.03 and apache1.3.22 and jdk13.1_03 and struts1.0.2 . Recently, We met Difficult Situation and We reach a dead end. the problem is throwing an NullPointerException when trying to print the stacktrace. ############## #It's source. ##################### catch(Exception e){ category.debug("throw an Exception!",e); } ########### #It's result in file for log. ################################## 2002-11-28 21:14:00,368 [className] DEBUG - throw an Exception! A stacktrace is not printed in file for log. ########### #It's stacktrace on InternetExplorer ##################################### java.lang.NullPointerException at java.io.Writer.write(Writer.java:124) at org.apache.log4j.helpers.QuietWriter.write(QuietWriter.java:39) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:302) at org.apache.log4j.DailyRollingFileAppender.subAppend (DailyRollingFileAppender.java:378) at org.apache.log4j.WriterAppender.append(WriterAppender.java:157) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders (AppenderAttachableImpl.java:57) at org.apache.log4j.Category.callAppenders(Category.java:255) at org.apache.log4j.Category.forcedLog(Category.java:445) at org.apache.log4j.Category.debug(Category.java:330) at jp.mapfan.mft.service.struts.ActionBase.debug(ActionBase.java:83) at jp.mapfan.mft.service.struts.CreditUnavailableListAction.creditUnavailableSearch (CreditUnavailableListAction.java:364) at jp.mapfan.mft.service.struts.CreditUnavailableListAction.perform (CreditUnavailableListAction.java:93) at org.apache.struts.action.ActionServlet.processActionPerform (ActionServlet.java:1787) at org.apache.struts.action.ActionServlet.process (ActionServlet.java:1586) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:193) at jp.mapfan.mft.util.filter.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java:173) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2343) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke (AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext (StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process (Ajp13Processor.java:429) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:479) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>