[ http://issues.apache.org/jira/browse/MYFACES-762?page=all ]
Martin Marinschek closed MYFACES-762:
-------------------------------------
Fix Version: Nightly
Resolution: Fixed
Assign To: Werner Punz
Werner, maybe you want to take a look at this again - I just changed the code
so that no exception is thrown anymore.
regards,
Martin
> Error after calling session.invalidate() - Cannot get value for expression
> '#{ScopeContainer}'
> ----------------------------------------------------------------------------------------------
>
> Key: MYFACES-762
> URL: http://issues.apache.org/jira/browse/MYFACES-762
> Project: MyFaces
> Type: Bug
> Components: Implementation
> Reporter: Travis Reeder
> Assignee: Werner Punz
> Fix For: Nightly
>
> I have a jsp page that has the following in it:
> session.removeAttribute("user");
> session.invalidate();
> response.sendRedirect("index.jsf");
> If I remove session.invalidate(), it works fine. With it I get this:
> I get the following
> javax.servlet.ServletException: Cannot get value for expression
> '#{ScopeContainer}'
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
> root cause
> javax.faces.el.EvaluationException: Cannot get value for expression
> '#{ScopeContainer}'
>
> org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:395)
>
> org.apache.myfaces.custom.scope.ScopeUtils.getManagedBean(ScopeUtils.java:63)
>
> org.apache.myfaces.custom.scope.AfterScopePhaseListener.afterPhase(AfterScopePhaseListener.java:44)
>
> org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:490)
>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:339)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
> rhythm.marketplace.filters.AuthFilter.doFilter(Unknown Source)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira