[weld-issues] [JBoss JIRA] Updated: (WELD-380) ContextNotActiveException on logout

Pete Muir (JIRA) jira-events at lists.jboss.org
Mon Jan 18 09:51:47 EST 2010


     [ https://jira.jboss.org/jira/browse/WELD-380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated WELD-380:
---------------------------

    Fix Version/s: 1.0.1.CR1


> ContextNotActiveException on logout
> -----------------------------------
>
>                 Key: WELD-380
>                 URL: https://jira.jboss.org/jira/browse/WELD-380
>             Project: Weld
>          Issue Type: Bug
>          Components: Scopes & Contexts
>    Affects Versions: 1.0.0.GA
>         Environment: Sun Glassfish Enterprise Server v3
>            Reporter: John Leed
>             Fix For: 1.0.1.CR1
>
>
> I have single sign on enabled and to log off a user, I have a "Log Off" button link to the thisJSP:
> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" 
>       xmlns:c="http://java.sun.com/jsp/jstl/core">
>     <jsp:scriptlet>
>         session.invalidate();
>         
>         Cookie cookie=new Cookie("JSESSIONIDSSO", "");
>         cookie.setDomain(request.getHeader("host"));
>         cookie.setPath("/");
>         cookie.setMaxAge(0);
>         response.addCookie(cookie);
>     </jsp:scriptlet>
>     <c:redirect url="/" context="/" />
> </jsp:root>
> This causes the following exception in the server log:
> INFO: PWC2787: Session event listener threw exception
> javax.enterprise.context.ContextNotActiveException: No active contexts for scope type javax.enterprise.context.SessionScoped
>         at org.jboss.weld.BeanManagerImpl.getContext(BeanManagerImpl.java:928)
>         at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.getProxiedInstance(ClientProxyMethodHandler.java:140)
>         at org.jboss.weld.bean.proxy.ClientProxyMethodHandler.invoke(ClientProxyMethodHandler.java:101)
>         at org.jboss.weld.conversation.ServletConversationManager_$$_javassist_57.destroyAllConversations(ServletConversationManager_$$_javassist_57.java)
>         at org.jboss.weld.servlet.ServletLifecycle.endSession(ServletLifecycle.java:82)
>         at org.jboss.weld.servlet.WeldListener.sessionDestroyed(WeldListener.java:134)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:743)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:705)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:693)
>         at org.apache.catalina.authenticator.SingleSignOnEntry.expireSessions(SingleSignOnEntry.java:196)
>         at com.sun.enterprise.security.web.GlassFishSingleSignOn.deregister(GlassFishSingleSignOn.java:537)
>         at com.sun.enterprise.security.web.GlassFishSingleSignOn.sessionEvent(GlassFishSingleSignOn.java:267)
>         at org.apache.catalina.session.StandardSession.fireSessionEvent(StandardSession.java:2052)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:806)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:705)
>         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:693)
>         at org.apache.catalina.session.StandardSession.invalidate(StandardSession.java:1378)
>         at org.apache.catalina.session.StandardSessionFacade.invalidate(StandardSessionFacade.java:206)
>         at org.apache.jsp.security.logout_jspx._jspService(logout_jspx.java from :56)
>         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:406)
>         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:483)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:373)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
>         at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>         at com.kroger.thmm.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:67)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>         at com.kroger.thmm.filter.StoreViewFilter.doFilter(StoreViewFilter.java:72)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>         at com.kroger.thmm.filter.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:67)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:215)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>         at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
>         at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
>         at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:329)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
>         at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
>         at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
>         at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
>         at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
>         at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
>         at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
>         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
>         at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
>         at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>         at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>         at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
>         at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
>         at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
>         at java.lang.Thread.run(Thread.java:619)

-- 
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

        


More information about the weld-issues mailing list