java.lang.IllegalStateException: Cannot create a session after the response has been committed

Apache's JIRA Issue Tracker | Jan Čustović | 3 years ago
  1. 0

    [WW-4134] MessageStoreInterceptor java.lang.IllegalStateException if there is no session - ASF JIRA

    apache.org | 11 months ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  2. 0

    [WW-4134] MessageStoreInterceptor java.lang.IllegalStateException if there is no session - ASF JIRA

    apache.org | 1 year ago
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  3. 0

    When there is no session the following error happens on {code:xml}<result type="redirect">{code}. {code} [org.apache.struts2.dispatcher.Dispatcher.error:38] [] - Exception occurred during processing request: Cannot create a session after the response has been committed java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2880) ~[catalina.jar:7.0.37] at org.apache.catalina.connector.Request.getSession(Request.java:2315) ~[catalina.jar:7.0.37] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898) ~[catalina.jar:7.0.37] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:177) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at org.apache.struts2.interceptor.MessageStoreInterceptor.after(MessageStoreInterceptor.java:279) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:195) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.14.3.jar:2.3.14.3] {code} This always happens if you wget your resource that has redirect. The interceptor should check if the session is available and only then perform message storing.

    Apache's JIRA Issue Tracker | 3 years ago | Jan Čustović
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When there is no session the following error happens on {code:xml}<result type="redirect">{code}. {code} [org.apache.struts2.dispatcher.Dispatcher.error:38] [] - Exception occurred during processing request: Cannot create a session after the response has been committed java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2880) ~[catalina.jar:7.0.37] at org.apache.catalina.connector.Request.getSession(Request.java:2315) ~[catalina.jar:7.0.37] at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898) ~[catalina.jar:7.0.37] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229) ~[servlet-api.jar:na] at org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:177) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at org.apache.struts2.interceptor.MessageStoreInterceptor.after(MessageStoreInterceptor.java:279) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:195) ~[struts2-core-2.3.14.3.jar:2.3.14.3] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) ~[xwork-core-2.3.14.3.jar:2.3.14.3] {code} This always happens if you wget your resource that has redirect. The interceptor should check if the session is available and only then perform message storing.

    Apache's JIRA Issue Tracker | 3 years ago | Jan Čustović
    java.lang.IllegalStateException: Cannot create a session after the response has been committed
  6. 0

    Exception evaluating SpringEL expression: "_csrf.token"

    GitHub | 6 months ago | berniegp
    org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/home.html]")

  1. Shadd518 1 times, last 3 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Cannot create a session after the response has been committed

    at org.apache.catalina.connector.Request.doGetSession()
  2. Glassfish Core
    RequestFacade.getSession
    1. org.apache.catalina.connector.Request.doGetSession(Request.java:2880)[catalina.jar:7.0.37]
    2. org.apache.catalina.connector.Request.getSession(Request.java:2315)[catalina.jar:7.0.37]
    3. org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:898)[catalina.jar:7.0.37]
    3 frames
  3. JavaServlet
    HttpServletRequestWrapper.getSession
    1. javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)[servlet-api.jar:na]
    2. javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)[servlet-api.jar:na]
    3. javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:229)[servlet-api.jar:na]
    3 frames
  4. Struts2
    MessageStoreInterceptor.intercept
    1. org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:177)[struts2-core-2.3.14.3.jar:2.3.14.3]
    2. org.apache.struts2.interceptor.MessageStoreInterceptor.after(MessageStoreInterceptor.java:279)[struts2-core-2.3.14.3.jar:2.3.14.3]
    3. org.apache.struts2.interceptor.MessageStoreInterceptor.intercept(MessageStoreInterceptor.java:195)[struts2-core-2.3.14.3.jar:2.3.14.3]
    3 frames
  5. XWork
    DefaultActionInvocation.invoke
    1. com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246)[xwork-core-2.3.14.3.jar:2.3.14.3]
    1 frame