myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SANTINI, Rafael" <raf...@santini.eti.br>
Subject Re: ViewExpiredException: MyFaces & PrimeFaces
Date Wed, 01 Sep 2010 13:31:51 GMT
Hi Leonardo,

Follow the complete log. I couldn't find any wrong.

01/09/2010 10:27:43 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: C:\Arquivos de programas\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ARQUIV~1\Borland\Delphi5\Projects\Bpl;C:\ARQUIV~1\Borland\Delphi5\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos
de programas\MySQL\MySQL Server 5.0\bin;C:\ferramentas\putty;C:\ferramentas\bzip2;C:\Arquivos
de programas\Firebird\Firebird_2_0\bin;C:\Arquivos de programas\Java\jdk1.6.0_18\bin;C:\Arquivos
de programas\MySQL\MySQL Server 5.1\bin;C:\ARQUIV~1\Borland\Delphi6\Bin;C:\ARQUIV~1\Borland\Delphi6\Projects\Bpl;C:\Arquivos
de programas\Microsoft SQL Server\80\Tools\BINN;C:\software\isis\cisis\bin;C:\Arquivos de
programas\Arquivos comuns\Ahead\Lib\
01/09/2010 10:27:43 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
01/09/2010 10:27:43 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 234 ms
01/09/2010 10:27:43 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
01/09/2010 10:27:43 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
01/09/2010 10:27:43 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor autocomplete.xml
01/09/2010 10:27:44 org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured
for this context. The duplicate definition has been ignored.
01/09/2010 10:27:44 org.apache.myfaces.webapp.StartupServletContextListener dispatchInitializationEvent
INFO: Checking for plugins:org.apache.myfaces.FACES_INIT_PLUGINS
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found,
using default value false
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS'
found, using default value false
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using
default value false
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig getBooleanInitParameter
INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default
value false
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
INFO: Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter
are disabled now.
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.config.MyfacesConfig createAndInitializeMyFacesConfig
INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator feedStandardConfig
INFO: Reading standard config META-INF/standard-faces-config.xml
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator feedClassloaderConfigurations
INFO: Reading config : jar:file:/C:/apache-tomcat-6.0.29/webapps/autocomplete/WEB-INF/lib/primefaces-1.1.jar!/META-INF/faces-config.xml
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: Starting up MyFaces-package : myfaces-api in version : 1.2.9 from path : file:/C:/apache-tomcat-6.0.29/webapps/autocomplete/WEB-INF/lib/myfaces-api-1.2.9.jar
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: Starting up MyFaces-package : myfaces-impl in version : 1.2.9 from path : file:/C:/apache-tomcat-6.0.29/webapps/autocomplete/WEB-INF/lib/myfaces-impl-1.2.9.jar
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk12 not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox12 not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tomahawk-sandbox15 not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : myfaces-orchestra-core not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : myfaces-orchestra-core12 not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : trinidad-api not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : trinidad-impl not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : tobago not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : commons-el not found.
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator startLib
INFO: MyFaces-package : jsp-api not found.
01/09/2010 10:27:44 org.apache.myfaces.shared_impl.util.LocaleUtils toLocale
WARNING: Locale name in faces-config.xml null or empty, setting locale to default locale :
pt_BR
01/09/2010 10:27:44 org.apache.myfaces.config.FacesConfigurator handleSerialFactory
INFO: Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
01/09/2010 10:27:44 org.apache.myfaces.webapp.AbstractFacesInitializer initFaces
INFO: ServletContext 'C:\apache-tomcat-6.0.29\webapps\autocomplete\' initialized.
01/09/2010 10:27:44 org.apache.myfaces.webapp.StartupServletContextListener dispatchInitializationEvent
INFO: Checking for plugins:org.apache.myfaces.FACES_INIT_PLUGINS
01/09/2010 10:27:44 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
01/09/2010 10:27:44 org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
01/09/2010 10:27:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
01/09/2010 10:27:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
01/09/2010 10:27:44 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
01/09/2010 10:27:44 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
01/09/2010 10:27:44 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
01/09/2010 10:27:44 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
01/09/2010 10:27:44 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1021 ms
01/09/2010 10:27:53 org.apache.myfaces.config.annotation.DefaultLifecycleProviderFactory getLifecycleProvider
INFO: Using LifecycleProvider org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
01/09/2010 10:27:53 org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
newInstance
INFO: Creating instance of org.primefaces.resource.ResourceHolderImpl
01/09/2010 10:27:53 org.apache.myfaces.config.annotation.TomcatAnnotationLifecycleProvider
newInstance
INFO: Creating instance of AutoCompleteBean
01/09/2010 10:27:56 org.apache.myfaces.shared_impl.util.StateUtils reconstruct
SEVERE: View State cannot be reconstructed
javax.faces.FacesException: javax.faces.application.ViewExpiredException
 at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:488)
 at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:376)
 at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:187)
 at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:139)
 at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:355)
 at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515)
 at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:85)
 at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
 at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.application.ViewExpiredException
 at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:481)
 ... 21 more
01/09/2010 10:27:56 org.apache.myfaces.lifecycle.PhaseListenerManager informPhaseListenersAfter
SEVERE: Exception in PhaseListener RESTORE_VIEW(1) afterPhase
java.lang.NullPointerException
 at org.primefaces.application.PostRestoreViewHandler.buildPartialView(PostRestoreViewHandler.java:71)
 at org.primefaces.application.PostRestoreViewHandler.afterPhase(PostRestoreViewHandler.java:47)
 at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92)
 at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:107)
 at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)
01/09/2010 10:27:56 javax.faces.webapp._ErrorPageWriter handleThrowable
SEVERE: An exception occurred
javax.faces.application.ViewExpiredException: /autocomplete.jspNo saved view state could be
found for the view identifier: /autocomplete.jsp
 at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
 at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
 at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 at java.lang.Thread.run(Thread.java:619)

Thanks,

Rafael Santini

----- Original Message ----- 
From: "Leonardo Uribe" <lu4242@gmail.com>
To: "MyFaces Discussion" <users@myfaces.apache.org>
Sent: Tuesday, August 31, 2010 4:46 PM
Subject: Re: ViewExpiredException: MyFaces & PrimeFaces


> Hi
> 
> Could you check your server log?. A more detailed exception could be found
> there, to identify easily what's going on.
> 
> regards,
> 
> Leonardo Uribe
> 
> 2010/8/31 Rafael Santini <rafael@santini.eti.br>
> 
>> Hi Ali,
>>
>> I have posted this question on PrimeFaces Forum.
>>
>> With Mojarra 1.2_15-b01, works perfectly!
>> The problem is that I need to continue with MyFaces for a while.
>>
>> Thanks,
>>
>> Rafael Santini
>>
>> 2010/8/31 Ali Ok <aliok@aliok.com.tr>
>>
>> > Hi Rafael,
>> > Primefaces forum[1] might be a better place to discuss this, but at first
>> > sight at your code, you should put the autoCompleteBean in view scope
>> > (available with JSF2).
>> >
>> > [1]http://primefaces.prime.com.tr/forum/
>> >
>> > Cheers,
>> > Ali
>> >
>> > On Tue, Aug 31, 2010 at 6:12 PM, SANTINI, Rafael <rafael@santini.eti.br
>> > >wrote:
>> >
>> > > Hi,
>> > >
>> > > I'm trying to get PrimeFaces AutoComplete component to work with
>> MyFaces.
>> > I
>> > > have tried with MyFaces 1.2.9 & PrimeFaces 1.1, MyFaces 2.0.1 &
>> > PrimeFaces
>> > > 2.1 and MyFaces 2.0.1 & PrimeFaces 2.2.M1. In the all cases, the
>> > fowlloing
>> > > exception is raised:
>> > >
>> > > 31/08/2010 11:51:32 org.apache.myfaces.renderkit.ErrorPageWriter
>> > > handleThrowable
>> > > SEVERE: An exception occurred
>> > > javax.faces.application.ViewExpiredException: /autocomplete.xhtmlNo
>> saved
>> > > view state could be found for the view identifier: /autocomplete.xhtml
>> > >       at
>> > >
>> >
>> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)
>> > >       at
>> > >
>> >
>> org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
>> > >       at
>> > >
>> >
>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>> > >       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>> > >       at
>> > >
>> >
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>> > >       at
>> > >
>> >
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> > >       at
>> > >
>> >
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>> > >       at
>> > >
>> >
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
>> > >       at
>> > >
>> >
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
>> > >       at
>> > >
>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
>> > >       at java.lang.Thread.run(Thread.java:619)
>> > >
>> > > I have created a simple test case (.war):
>> > > http://www.4shared.com/get/Jm6REAgI/autocomplete.html
>> > >
>> > > Any suggestion?
>> > >
>> > > Thanks,
>> > >
>> > > Rafael Santini
>> > >
>> > >
>> > >
>> >
>> >
>> > --
>> > My Blog: http://blog.aliok.com.tr
>> > Twitter: http://twitter.com/aliok_tr
>> >
>>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message