Cannot create a session after the response has been committed

Servlet.service() for servlet [CometServlet] in context with path [] threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
	at org.apache.catalina.connector.Request.doGetSession(Request.java:2921)
	at org.apache.catalina.connector.Request.getSession(Request.java:2318)
	at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899)
	at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:911)


评论区

JFinal

2017-06-22 11:28

先找到是程序的哪个地方调用了 getSesion() 或者是 create session,然后再逐步解决

热门反馈

扫码入社