title: java.lang.IllegalStateException: Cannot create a session after the response has been committed
body: <p>I've got this really strange request for an invalid URL on:</p>
  
  <pre><code>Invalid URL: /cgi-bin/1st.cgi
  </code></pre>
  
  <p>This is causing the following error:   </p>
  
  <pre><code> 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:2381)
          at org.apache.catalina.connector.Request.getSession(Request.java:2098)
          at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
          at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216)
          at org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:544)
  ...
  </code></pre>
  
  <p>How can I solve this issue?</p>