3 Replies Latest reply on Jul 5, 2012 8:10 AM by Wolf-Dieter Fink

    how to solve java.io.NotSerializableException: org.apache.log4j.Logger error in Jboss5.1

    Siva Renati Newbie

      Hi Friends,

       

      I am getting below exception when i try to access the page. i am using JSF1.2,richface3.3.1,facelets1.15

       

      Please help me on this... thanks in advance

       

       

      11:04:20,718 SEVERE [viewhandler] Error Rendering View[/jsf/tpr/RegistrationSearchImpExp.xhtml]

      java.io.NotSerializableException: org.apache.log4j.Logger

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

              at java.util.HashMap.writeObject(HashMap.java:1001)

              at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

              at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)

              at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)

              at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)

              at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)

              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:622)

              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:662)

      11:04:20,747 SEVERE [lifecycle] JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /jsf/tpr/RegistrationSearchImpExp.xhtml) Exception thrown during phase exe

      tion: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@3b7a16]

      11:04:20,748 INFO  [STDOUT] AFTER: RENDER_RESPONSE 6

      11:04:20,767 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception

      java.io.NotSerializableException: org.apache.log4j.Logger

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

              at java.util.HashMap.writeObject(HashMap.java:1001)

              at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

              at java.lang.reflect.Method.invoke(Method.java:597)

              at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:940)

              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)

              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)

              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)

              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

              at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:269)

              at javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:166)

              at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:294)

              at org.ajax4jsf.application.AjaxStateManager.writeState(AjaxStateManager.java:256)

              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:622)

              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)

              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

              at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:662)

      11:04:20,799 INFO  [STDOUT] BEFORE: RESTORE_VIEW 1

      11:04:20,800 INFO  [STDOUT] AFTER: RESTORE_VIEW 1