Re: Exception thrown during phase-listener execution

Splash Forums PrettyFaces Users Exception thrown during phase-listener execution Re: Exception thrown during phase-listener execution

#22144

aekber
Participant

Thanks for your reply.i can not see “caused by” in tomcat logs.All my catalina.log file content is below.

Feb 14, 2012 5:39:32 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

Feb 14, 2012 5:39:33 PM org.apache.coyote.http11.Http11Protocol init

INFO: Initializing Coyote HTTP/1.1 on http-8080

Feb 14, 2012 5:39:33 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 718 ms

Feb 14, 2012 5:39:33 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Feb 14, 2012 5:39:33 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/6.0.32

Feb 14, 2012 5:39:33 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor javalog-web.xml

Feb 14, 2012 5:39:34 PM org.apache.catalina.core.StandardContext addApplicationListener

INFO: The listener “com.sun.faces.config.ConfigureListener” is already configured for this context. The duplicate definition has been ignored.

Feb 14, 2012 5:39:34 PM org.apache.catalina.session.StandardManager start

SEVERE: Exception loading sessions from persistent storage

java.lang.IllegalStateException: Cannot deserialize BeanFactory with id org.springframework.web.context.WebApplicationContext:/javalog-web: no factory registered for this id

at org.springframework.beans.factory.support.DefaultListableBeanFactory$SerializedBeanFactoryReference.readResolve(DefaultListableBeanFactory.java:981)

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:597)

at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1061)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1761)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)

at org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor.readObject(AbstractBeanFactoryPointcutAdvisor.java:103)

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:597)

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1666)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1322)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:479)

at org.springframework.aop.framework.AdvisedSupport.readObject(AdvisedSupport.java:550)

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:597)

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)

at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1485)

at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:987)

at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)

at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)

at org.apache.catalina.session.StandardManager.start(StandardManager.java:648)

at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:446)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)

at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

at org.apache.catalina.core.StandardService.start(StandardService.java:525)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

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:597)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Feb 14, 2012 5:39:34 PM com.sun.faces.config.ConfigureListener contextInitialized

INFO: Initializing Mojarra (1.2_15-20100816-SNAPSHOT) for context ‘/javalog-web’

Feb 14, 2012 5:39:39 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor manager.xml

Feb 14, 2012 5:39:39 PM org.apache.catalina.startup.HostConfig deployDescriptor

INFO: Deploying configuration descriptor host-manager.xml

Feb 14, 2012 5:39:39 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory docs

Feb 14, 2012 5:39:39 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory ROOT

Feb 14, 2012 5:39:40 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory examples

Feb 14, 2012 5:39:40 PM org.apache.coyote.http11.Http11Protocol start

INFO: Starting Coyote HTTP/1.1 on http-8080

Feb 14, 2012 5:39:40 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Feb 14, 2012 5:39:40 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/18 config=null

Feb 14, 2012 5:39:40 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 7040 ms

Feb 14, 2012 5:39:40 PM com.sun.faces.lifecycle.Phase handleAfterPhase

WARNING: JSF1053: (Listener: com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(), Phase ID: RESTORE_VIEW 1, View ID: /read.xhtml) Exception thrown during phase-listener execution: com.ocpsoft.pretty.PrettyException: PrettyFaces: Exception occurred while processing <gonder:#{article.subcategory.subCategoryName}> for URL </faces/articles/Mapping/Hql/>

Feb 14, 2012 5:39:40 PM com.sun.faces.lifecycle.Phase handleAfterPhase

WARNING: com.ocpsoft.pretty.faces.beans.ParameterInjector.injectPathParams(ParameterInjector.java:96)

com.ocpsoft.pretty.faces.beans.ParameterInjector.injectParameters(ParameterInjector.java:54)

com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:102)

com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)

com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)

com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)

com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

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

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

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

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

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

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

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

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

com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)

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

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

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)

com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

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

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

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

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

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

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

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

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

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

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

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

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-core.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-html.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jsf-ui.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jstl-core.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-facelets-1.1.14.jar!/META-INF/jstl-fn.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/jsf-impl-1.2_15.jar!/META-INF/mojarra_ext.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/prettyfaces-jsf12-3.3.2.jar!/META-INF/ocpsoft-pretty-faces.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/a4j.taglib.xml

Feb 14, 2012 5:39:40 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/jsp.taglib.xml

Feb 14, 2012 5:39:41 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/ajax4jsf.taglib.xml

Feb 14, 2012 5:39:41 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/rich.taglib.xml

Feb 14, 2012 5:39:41 PM com.sun.facelets.compiler.TagLibraryConfig loadImplicit

INFO: Added Library from: jar:file:/usr/local/tomcat/webapps/javalog-web/WEB-INF/lib/richfaces-ui-3.3.1.GA.jar!/META-INF/richfaces.taglib.xml

Feb 14, 2012 5:40:32 PM com.sun.faces.lifecycle.Phase handleAfterPhase

WARNING: JSF1053: (Listener: com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(), Phase ID: RESTORE_VIEW 1, View ID: /read.xhtml) Exception thrown during phase-listener execution: com.ocpsoft.pretty.PrettyException: PrettyFaces: Exception occurred while processing <gonder:#{article.subcategory.subCategoryName}> for URL </faces/articles/Mapping/Hql/>

Feb 14, 2012 5:40:32 PM com.sun.faces.lifecycle.Phase handleAfterPhase

WARNING: com.ocpsoft.pretty.faces.beans.ParameterInjector.injectPathParams(ParameterInjector.java:96)

com.ocpsoft.pretty.faces.beans.ParameterInjector.injectParameters(ParameterInjector.java:54)

com.ocpsoft.pretty.faces.event.PrettyPhaseListener.afterPhase(PrettyPhaseListener.java:102)

com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)

com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)

com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:102)

com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

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

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

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

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

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

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

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

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

com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:126)

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

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

org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)

org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)

org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)

com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

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

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

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

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

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

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

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

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)

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

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

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