tomcat + servlet:写入cookie时出现缓冲区错误

时间:2013-08-23 09:13:22

标签: tomcat servlets cookies

我有一个servlet,它从数据库中检索一些数据,将结果写入cookie并将其发送给客户端。 但是当我调试我的代码时,我发现了一个奇怪的错误:

Servlet.service() for servlet [StoricoAcquisti] in context with path [/Serv] threw exception
org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers.

我该如何解决?如果数据溢出,我应该写的不仅仅是cookie吗?

0 个答案:

没有答案