2 Replies Latest reply on Jul 28, 2005 3:02 PM by rafcio

    Log4J & SMTPAppender

    rafcio

      Hi,

      I configured my Log4J in Jboss 3.2.5/7 with SMTPAppender or sending FATAL's. Thaw was not the problem. But the exception in the mail is not so good formated:

      2005-07-27 10:37:57,372 FATAL [net.magix.web.api.request.payment.AddInvoiceWhiteList_1_0] run() failed
      net.magix.exception.OMAException: InvoiceBean::addToInvoiceWhiteList() can't add new user at net.magix.ejb.payment.sessionbeans.InvoiceBean.addToInvoiceWhiteList(InvoiceBean.java:258) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:395) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331) at org.jboss.ejb.Container.invoke(Container.java:709) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:419) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83) at $Proxy1234.addToInvoiceWhiteList(Unknown Source) at net.magix.ejb.payment.sessionbeans.PaymentFacadeBean.addToInvoiceWhiteList(PaymentFacadeBean.java:925) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:317) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:150) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:111) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331) at org.jboss.ejb.Container.invoke(Container.java:709) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:419) at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83) at $Proxy1232.addToInvoiceWhiteList(Unknown Source) at net.magix.web.api.request.payment.AddInvoiceWhiteList_1_0.run(AddInvoiceWhiteList_1_0.java:61) at net.magix.web.api.request.RequestQueryAnalyzer.analyzeDocument(RequestQueryAnalyzer.java:168) at net.magix.web.api.XMLServlet.parseXML(XMLServlet.java:172) at net.magix.web.api.XMLServlet.doPost(XMLServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567) at org.mortbay.http.HttpContext.handle(HttpContext.java:1807) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525) at org.mortbay.http.HttpContext.handle(HttpContext.java:1757) at org.mortbay.http.HttpServer.service(HttpServer.java:879) at org.jboss.jetty.Jetty.service(Jetty.java:460) at org.mortbay.http.HttpConnection.service(HttpConnection.java:789) at org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:273) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806) at org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:199) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
      


      It's possible to change this?


      Regards,
      Rafal

        • 1. Re: Log4J & SMTPAppender
          jiwils

          Try using the HTMLLayout by using the following layout elment in your SMTPAppender element:

          <layout class="org.apache.log4j.HTMLLayout"/>


          As this is really a Log4j question, you should reference the Log4j website (http://logging.apache.org/log4j/) for help with questions like this.

          • 2. Re: Log4J & SMTPAppender
            rafcio

             

            "jiwils" wrote:
            Try using the HTMLLayout by using the following layout elment in your SMTPAppender element:

            <layout class="org.apache.log4j.HTMLLayout"/>


            As this is really a Log4j question, you should reference the Log4j website (http://logging.apache.org/log4j/) for help with questions like this.


            I did, but didn't get right help.

            thx. for help. it's working.

            /rafcio