Announcement Announcement Module
Collapse
No announcement yet.
"Cannot create a session after the response has been committed " Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Cannot create a session after the response has been committed "

    This error occurs when the server is starting up. It seems to be reported three years ago and reportedly fixed. I haven't observed any issues related with this error.
    26-May-2010 10:00:43 PM org.apache.jasper.runtime.JspFactoryImpl internalGetPageContext
    SEVERE: Exception initializing page context
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
    at org.apache.catalina.connector.Request.doGetSession (Request.java:2313)
    at org.apache.catalina.connector.Request.getSession(R equest.java:2074)
    at org.apache.catalina.connector.RequestFacade.getSes sion(RequestFacade.java:833)
    at javax.servlet.http.HttpServletRequestWrapper.getSe ssion(HttpServletRequestWrapper.java:216)
    at org.apache.catalina.core.ApplicationHttpRequest.ge tSession(ApplicationHttpRequest.java:544)
    at javax.servlet.http.HttpServletRequestWrapper.getSe ssion(HttpServletRequestWrapper.java:216)
    at org.apache.catalina.core.ApplicationHttpRequest.ge tSession(ApplicationHttpRequest.java:544)
    at javax.servlet.http.HttpServletRequestWrapper.getSe ssion(HttpServletRequestWrapper.java:216)
    at org.apache.catalina.core.ApplicationHttpRequest.ge tSession(ApplicationHttpRequest.java:544)
    at org.apache.catalina.core.ApplicationHttpRequest.ge tSession(ApplicationHttpRequest.java:493)
    at javax.servlet.http.HttpServletRequestWrapper.getSe ssion(HttpServletRequestWrapper.java:224)
    at org.apache.jasper.runtime.PageContextImpl._initial ize(PageContextImpl.java:146)
    at org.apache.jasper.runtime.PageContextImpl.initiali ze(PageContextImpl.java:124)
    at org.apache.jasper.runtime.JspFactoryImpl.internalG etPageContext(JspFactoryImpl.java:107)
    at org.apache.jasper.runtime.JspFactoryImpl.getPageCo ntext(JspFactoryImpl.java:63)
    at org.apache.jsp.WEB_002dINF.views.mall.footer_jsp._ jspService(footer_jsp.java:44)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:551)
    at org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:488)
    at org.apache.jasper.runtime.JspRuntimeLibrary.includ e(JspRuntimeLibrary.java:968)
    at org.apache.jasper.runtime.PageContextImpl.doInclud e(PageContextImpl.java:650)
    at org.apache.jasper.runtime.PageContextImpl.include( PageContextImpl.java:644)
    at org.apache.tiles.jsp.context.JspTilesRequestContex t.include(JspTilesRequestContext.java:103)
    at org.apache.tiles.jsp.context.JspTilesRequestContex t.dispatch(JspTilesRequestContext.java:96)
    at org.apache.tiles.renderer.impl.UntypedAttributeRen derer.write(UntypedAttributeRenderer.java:61)
    at org.apache.tiles.renderer.impl.AbstractBaseAttribu teRenderer.render(AbstractBaseAttributeRenderer.ja va:103)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:669)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:337)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.ren der(InsertAttributeTag.java:234)
    at org.apache.tiles.jsp.taglib.InsertAttributeTag.ren der(InsertAttributeTag.java:211)
    at org.apache.tiles.jsp.taglib.RenderTag.doEndTag(Ren derTag.java:220)
    at org.apache.jsp.WEB_002dINF.views.model_jsp._jspx_m eth_tiles_005finsertAttribute_005f4(model_jsp.java :539)
    at org.apache.jsp.WEB_002dINF.views.model_jsp._jspSer vice(model_jsp.java:189)
    at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:374)
    at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:342)
    at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:646)
    at org.apache.catalina.core.ApplicationDispatcher.pro cessRequest(ApplicationDispatcher.java:436)
    at org.apache.catalina.core.ApplicationDispatcher.doF orward(ApplicationDispatcher.java:374)
    at org.apache.catalina.core.ApplicationDispatcher.for ward(ApplicationDispatcher.java:302)
    at org.apache.tiles.servlet.context.ServletTilesReque stContext.forward(ServletTilesRequestContext.java: 241)
    at org.apache.tiles.servlet.context.ServletTilesReque stContext.dispatch(ServletTilesRequestContext.java :222)
    at org.apache.tiles.renderer.impl.TemplateAttributeRe nderer.write(TemplateAttributeRenderer.java:44)
    at org.apache.tiles.renderer.impl.AbstractBaseAttribu teRenderer.render(AbstractBaseAttributeRenderer.ja va:103)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:669)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:689)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:643)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:626)
    at org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:322)
    at org.springframework.web.servlet.view.tiles2.TilesV iew.renderMergedOutputModel(TilesView.java:100)
    ...

  • #2
    This doesn't look like it has anything to do with Spring Security. Look at the stack trace and where the call is coming from... it's one of your JSPs.

    Comment

    Working...
    X