NutzCN Logo
问答 org.apache.coyote.http11.HeadersTooLargeException:
发布于 629天前 作者 qq_722cb381 1209 次浏览 复制 上一个帖子 下一个帖子
标签:

想问一下这个怎么解决?

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. 	at org.apache.coyote.http11.AbstractOutputBuffer.checkLengthBeforeWrite(AbstractOutputBuffer.java:547) 	at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:509) 	at org.apache.coyote.http11.AbstractOutputBuffer.write(AbstractOutputBuffer.java:426) 	at org.apache.coyote.http11.AbstractOutputBuffer.sendHeader(AbstractOutputBuffer.java:392) 	at org.apache.coyote.http11.AbstractHttp11Processor.prepareResponse(AbstractHttp11Processor.java:1584) 	at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:775) 	at org.apache.coyote.Response.action(Response.java:172) 	at org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:185) 	at org.apache.coyote.Response.doWrite(Response.java:499) 	at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:405) 	at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480) 	at org.apache.catalina.connector.OutputBuffer.realWriteChars(OutputBuffer.java:488) 	at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:464)
7 回复

前因后果呢?

@wendal 这个方法就是做一些计算 sum 之类的 ,但是数据量比较大,然后就返回页面展示了

@wendal 设置了一下maxHttpHeaderSize="8192" 没起作用

塞在headers了?

是不是用了shiro的remeberme?

@wendal 确实有shiro的remeberme

参考nutzwk里面的shiro.ini,自定义shiro的remeberme序列化过程,就不会headers过大了

添加回复
请先登陆
回到顶部