Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31912

FacesContext already released in JSF tools with Tomcat 7.0.72+

    Details

      Description

      This issue has recently started showing up on our 10.7+ system in Synoptic Calendar, Postem and Gradebook.

      The problem developers after a while. Restarting the app server clears the issue, but then it recurs.

      An exception occurred processing JSP page /summary-calendar/calendar.jsp at line 19 16: </jsp:useBean> 17: <% }catch(Exception e) {return;} %> 18: 19: <f:view> 20: <sakai:view title="#{msgs.tool_title}" id="sakaiview" toolCssHref="/sakai-calendar-summary-tool/summary-calendar/css/cal.css"> 21: 22: <h:outputText value="#{CalBean.initValues}"/>
      
      Stacktrace:
      at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:580)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:472)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
      at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:426)
      ... 57 more
      Caused by: java.lang.IllegalStateException: FacesContext already released
      at org.apache.myfaces.context.servlet.ServletFacesContextImpl.getResponseWriter(ServletFacesContextImpl.java:251)
      at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:1139)
      at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:461)
      at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:108)
      at org.apache.jsp.summary_002dcalendar.calendar_jsp._jspService(calendar_jsp.java:236)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) 
      

      It sometimes appears to be preceded by this error in the logs:

      Caused by: javax.faces.FacesException: Could not retrieve value of component with path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /summary-calendar/calendar.jsp][Class: org.sakaiproject.jsf.component.ViewComponent,Id: sakaiview][Class: javax.faces.component.html.HtmlForm,Id: calendarForm][Class: javax.faces.component.html.HtmlPanelGroup,Id: div_event_list][Class: javax.faces.component.html.HtmlOutputText,Id: _idJsp72]}
              at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:271)
              at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue(RendererUtils.java:226)
              at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:69)
              at org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:57)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:799)
              ... 81 more
      Caused by: javax.faces.el.EvaluationException: Cannot get value for expression '#{msgs.selectedDayEvents} #{CalBean.selectedDayAsString}'
              at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:405)
              at javax.faces.component.UIOutput.getValue(UIOutput.java:118)
              at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getValue(RendererUtils.java:267)
              ... 85 more
      Caused by: javax.faces.el.EvaluationException: Exception setting property baseName of base with class org.sakaiproject.util.ResourceLoader
              at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:189)
              at org.apache.myfaces.config.ManagedBeanBuilder.initializeProperties(ManagedBeanBuilder.java:218)
              at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:71)
              at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:314)
              at org.sakaiproject.jsf.app.SakaiVariableResolver.resolveVariable(SakaiVariableResolver.java:76)
              at org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:570)
              at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
              at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:140)
              at org.apache.commons.el.ExpressionString.evaluate(ExpressionString.java:114)
              at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:386)
              ... 87 more
      Caused by: java.lang.UnsupportedOperationException
              at org.sakaiproject.util.DummyMap.put(ResourceLoader.java:813)
              at org.sakaiproject.util.ResourceLoader.put(ResourceLoader.java:43)
              at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:171)
              ... 96 more 
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  smarquard Stephen Marquard
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration