my dog learned polymorphism*
The moose likes JSF and the fly likes jsf 1.2 exception problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf 1.2 exception problem" Watch "jsf 1.2 exception problem" New topic
Author

jsf 1.2 exception problem

betul aydin
Greenhorn

Joined: Jan 08, 2008
Posts: 19
Hi
I am getting this exception while I click button for invoking method.
I use jsf1.2+richfaces 3.2.0 sr1+ajax4jsf 1.1
At first I havent got any problem everything work.But when my page is ataying open so long.and I click the button on my page this exception have been occured.

09 Jun 2008 13:12:30 ERROR [org.apache.myfaces.lifecycle.PhaseListenerManager] - Exception in PhaseListener RESTORE_VIEW(1) afterPhase
java.lang.NullPointerException
at org.apache.myfaces.renderkit.html.util.AutoScrollPhaseListener.afterPhase(AutoScrollPhaseListener.java:52)
at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:99)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
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:147)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:56)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:353)
at org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java:47)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:810)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

I hate messages like that.

It sounds like your session is timing out and being discarded. So (much) later when you refer to the session data on the next page request, it isn't there anymore.

One solution is to make the session timeout period longer. Set this in web.xml


Customer surveys are for companies who didn't pay proper attention to begin with.
betul aydin
Greenhorn

Joined: Jan 08, 2008
Posts: 19
Your suggestion solved my problem.Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsf 1.2 exception problem
 
Similar Threads
Getting "view could not be restored" error, has anyone seen this before?
NullPointerException at SeamViewHandler.calculateLocale
Apache Tomcat error... org.apache.catalina.core.StandardWrapperValve invoke .. Help Please
Not able to access Session Bean in Seam Framework
Problem Upload files on google docs through Liferay portal 6.0.6