[JBoss JIRA] Created: (RF-7491) Exception raised while session expires or server restarted and accessing the page throws exception
by bhanu sistla (JIRA)
Exception raised while session expires or server restarted and accessing the page throws exception
--------------------------------------------------------------------------------------------------
Key: RF-7491
URL: https://jira.jboss.org/jira/browse/RF-7491
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: Windows 2003 and server :- Weblogic 10.1
Reporter: bhanu sistla
Priority: Critical
Exception has raised while session has expired. Here are the details . looks like it has to do with session failure/unavailable issue in the UI. Currently, if the session times out or the server goes down, if you click on anything in the UI you get one of the following errors on the server console. If click was supposed to go to a new page, like when you click logout you see the same exception on the browser. I haven't been able to solve this issue. Can you look into it and see what we can do here. This will certainly help you understand the architecture behind JSF and how it works.
#1
Exception in the filter chain
javax.servlet.ServletException: viewId:/home.jsf - View /home.jsf could not be restored.
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
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 weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: javax.faces.application.ViewExpiredException: viewId:/home.jsf - View /home.jsf could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:186)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 20 more
here is the web.xml configuration
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>laguna</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
------
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/logon.jsp</location>
</error-page>
</web-app>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months
[JBoss JIRA] Created: (RF-7489) a4j:jsFunction JavaScript error in IE6/7/8
by Josh Long (JIRA)
a4j:jsFunction JavaScript error in IE6/7/8
------------------------------------------
Key: RF-7489
URL: https://jira.jboss.org/jira/browse/RF-7489
Project: RichFaces
Issue Type: Bug
Components: browser compatibility
Affects Versions: 3.3.1
Environment: IE 6/7/8
Reporter: Josh Long
three instances of a4j:jsFunction seem to be causing a javascript error in IE6 / 7 / 8 I'm running a Seam application using RichFaces. The page itself is pretty tame, and its producing an error in IE6/7/8. the error is very strange:
Quote:
Message: Expected ')'
Line: 1
Char: 189
Code: 0
URI: http://blach/blah//blah.html?cid=1023
the javascript it's pointing to is generated by a4j:jsFunction. there are only 3 instances, which i reproduce here
Code:
<a4j:jsFunction name="reRenderFiles"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue" />
<a4j:jsFunction name="handleUploadCompletion" rendered="#{selectable}"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue"
oncomplete="handleUploadComplete()" />
<a4j:jsFunction name="handleUploadCompletion" rendered="#{not selectable}"
reRender="filesList,newFilesList"
ajaxSingle="true" eventsQueue="queue"
oncomplete="unlockScreen()" />
the only way to get the error to go away (and in so doing break the functionality) is to remove one of the a4j:jsFunction components.
for example, if I remove:
Code:
<a4j:jsFunction name="reRenderFiles"
reRender="filesList,newFilesList,#{reRenderOnSelect}"
ajaxSingle="true" eventsQueue="queue" />
it works, though it doesnt seem to matter which I remove, so long as I do. I wondered if this strangeness might be due to cached versions of my class files in Eclipse or tomcat, but nothing seem to fix it except removing a a4j:jsFunction component.
Any ideas? Any way of controlling the output of the JS so that it produces super clean, non IE-offensive code? Naturally, it works perfectly in Safari/Chrome/Firefox.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 2 months