Thanks for the reply , I will try to clarify.

Though we are throwing are own exception that should be picked up by our
Struts Exception handler, it seems that the problem is within Jboss or our
config.
Still working through the problem but, I was wondering if any other log4j
user has seen something similar when using JBoss.

This is an odd problem for us because we have done this throughout the app
with out a problem.  We are currently looking at our stuff.

Thanks for the help.






Ceki G�lc� <[EMAIL PROTECTED]> on 08/23/2003 09:01:43 AM

Please respond to "Log4J Users List" <[EMAIL PROTECTED]>

To:    "Log4J Users List" <[EMAIL PROTECTED]>
cc:

Subject:    Re: NullPointerException


Jeff,

The text of your question is not very clear, at least to me. Are you
observing a logging problem or a problem with the application itself?

Which version of the JDK are you using?

By the looks of your stack trace, it seems that log4j is trying to log an
exception. Let us call this exception E0. From what I could gather from
your message, it seems E0's stack trace is empty. This causes log4j to
throw the NullPointer exception included in your message. Log4j does not
expect an exception with an empty stack trace and barfs a NullPointer.

Would it be possible for you to provide more information on E0, for example
a stack trace of E0?

Thanks in advance,

At 12:41 PM 8/22/2003 -0500, [EMAIL PROTECTED] wrote:
>Sorry for the broad question but was wondering if any has something
>similar.
>
>We are using jboss-3.0.4_tomcat-4.0.6 bundle and sending our appliction
>logs to it's internal log4j.
>
>I know this may be a Jboss issue but...
>
>We throw our own Exception from a session EJB and end up catching it in
the
>Struts Layer, logging the error and displaying a message based on the
>resource key supplied in the Root Exception.  We do this type of thing
>throughout the application with out a problem.
>
>At some point a NullPointerException is thrown that overrides the original
>exception.
>
>I have isolated to the logging area because if shut off logging (set the
>level to FATAL) the problem goes away and we see the expected message.
>
>Has anyone seen this before?
>
>java.lang.NullPointerException
>       at java.io.Writer.write(Writer.java:126)
>       at org.apache.log4j.helpers.QuietWriter.write(QuietWriter.java:39)
>       at
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:299)
>       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:834)
>       at org.jboss.logging.Logger.info(Logger.java:158)
>       at
>
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:391)

>       at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
>       at
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)

>       at org.jboss.ejb.Container.invoke(Container.java:712)
>       at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
>       at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
>       at
>
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
>       at
>
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)

>       at
> org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
>       at
>
org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:117)

>       at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
>       at $Proxy656.saveCurrentTransferAdjustment(Unknown Source)
>       at
>
com.nlg.ar.common.interfaces.ArServiceImpl.saveCurrentTransferAdjustment(ArServiceImpl.java:1260)

>       at
>
com.nlg.ar.web.customer.action.CustomerAdjSaveTransferAction.executeAction(CustomerAdjSaveTransferAction.java:45)

>       at
>
com.nlg.ar.web.common.action.ArAuthenticatedAction.execute(ArAuthenticatedAction.java:56)

>       at
>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)

>       at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)

>       at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1349)
>       at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:507)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>       at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)

>       at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)

>       at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)

>       at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1033)

>       at
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:283)

>       at
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:436)

>       at
>
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:326)

>       at
>
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)

>       at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

>       at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1349)
>       at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:507)
>       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
>
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.valves.CertificatesValve.invoke(CertificatesValve.java:246)

>       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.StandardContext.invoke(StandardContext.java:2347)
>       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.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)

>       at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)

>       at java.lang.Thread.run(Thread.java:534)
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

--
Ceki For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to