You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Michael Freedman (JIRA)" <de...@myfaces.apache.org> on 2008/10/22 22:53:44 UTC

[jira] Resolved: (PORTLETBRIDGE-52) java.lang.IllegalStateException the first income request it receives from any navigator

     [ https://issues.apache.org/jira/browse/PORTLETBRIDGE-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Freedman resolved PORTLETBRIDGE-52.
-------------------------------------------

    Resolution: Invalid

I believe this is a Pluto/Jetty bug.  The bridge creates a session and adds an attribute to it.  For some reason on the first request to the application (i.e. the session actually gets created) it is still considered invalid by the underlying session contained until the next request occurs.  So when the setAttribute is called we get the IllegalStateException.  As the bug points out subsequent requests work fine.  

> java.lang.IllegalStateException the first income request it receives from any navigator
> ---------------------------------------------------------------------------------------
>
>                 Key: PORTLETBRIDGE-52
>                 URL: https://issues.apache.org/jira/browse/PORTLETBRIDGE-52
>             Project: MyFaces Portlet Bridge
>          Issue Type: Bug
>          Components: Impl
>         Environment: opera 9.2, firefox 2.0.0.17, or IE 7
> myfaces core 1.2.x or jsf ri 1.2.x
> running portlet bridge demo with maven jetty plugin
>            Reporter: Leonardo Uribe
>            Priority: Minor
>
> Only first request done always throws this exception
> java.lang.IllegalStateException
> 	at org.mortbay.jetty.servlet.AbstractSessionManager$Session.setAttribute(AbstractSessionManager.java:1054)
> 	at org.apache.pluto.internal.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:145)
> 	at org.apache.pluto.internal.impl.PortletSessionImpl.setAttribute(PortletSessionImpl.java:137)
> 	at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.initViewHistoryDefaults(BridgeImpl.java:838)
> 	at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:426)
> 	at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:501)
> 	at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:452)
> 	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:243)
> 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
> 	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:208)
> 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
> 	at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
> 	at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
> 	at org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
> 	at org.apache.pluto.core.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:101)
> 	at org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:173)
> 	at org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:152)
> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspx_meth_pluto_portlet_0(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:99)
> 	at org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(org.apache.jsp.WEB_002dINF.themes.portlet_002dskin_jsp:74)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
> 	at com.bekk.boss.pluto.embedded.util.PortletJspServlet.service(PortletJspServlet.java:43)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:192)
> 	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:997)
> 	at org.apache.jsp.pluto.index_jsp._jspService(org.apache.jsp.pluto.index_jsp:112)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:93)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
> 	at com.bekk.boss.pluto.embedded.util.PortletJspServlet.service(PortletJspServlet.java:43)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
> 	at org.apache.pluto.driver.PortalDriverFilter.doFilter(PortalDriverFilter.java:129)
> 	at com.bekk.boss.pluto.embedded.util.PlutoPortalDriverFilter.doFilter(PlutoPortalDriverFilter.java:45)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
> 	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:324)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
> 	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:450)
> the next calls works correctly.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.