我正在开发一个Web应用程序。我在JBoss上运行这个应用程序。在一个页面中有大约500行。如果我选择小于100并且有按钮编辑,如果我点击它进入下一页。如果我选择超过300行,则不会转到另一页并显示以下错误。
我从java calss调用jsp页面。为此,我使用response.sendRedirect()方法。以下是代码
以下是getResponse()代码
我尝试在此java类中添加内容长度,如下所示,但没有任何工作。
我在服务器控制台上收到以下错误。我经常搜索并尝试过。什么都行不通。请帮我解决这个问题。
[exec] 15:29:19,293 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
[exec] java.lang.ArrayIndexOutOfBoundsException: 8192
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:698)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:605)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:478)
[exec] at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1564)
[exec] at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:921)
[exec] at org.apache.coyote.Response.action(Response.java:186)
[exec] at org.apache.coyote.Response.sendHeaders(Response.java:386)
[exec] at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:333)
[exec] at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:299)
[exec] at org.apache.catalina.connector.Response.finishResponse(Response.java:493)
[exec] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
[exec] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
[exec] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
[exec] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
[exec] at java.lang.Thread.run(Thread.java:619)
[exec] 15:32:32,892 ERROR [Http11Processor] Error finishing response
[exec] java.lang.ArrayIndexOutOfBoundsException
[exec] at java.lang.System.arraycopy(Native Method)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:667)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:403)
[exec] at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1553)
[exec] at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:921)
[exec] at org.apache.coyote.Response.action(Response.java:184)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:363)
[exec] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
[exec] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
[exec] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
[exec] at java.lang.Thread.run(Thread.java:619)
[exec] 15:32:45,728 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
[exec] java.lang.ArrayIndexOutOfBoundsException: 8192
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:698)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:605)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:478)
[exec] at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1564)
[exec] at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:921)
[exec] at org.apache.coyote.Response.action(Response.java:186)
[exec] at org.apache.coyote.Response.sendHeaders(Response.java:386)
[exec] at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:333)
[exec] at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:299)
[exec] at org.apache.catalina.connector.Response.finishResponse(Response.java:493)
[exec] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:346)
[exec] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
[exec] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
[exec] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
[exec] at java.lang.Thread.run(Thread.java:619)
[exec] 15:32:45,729 ERROR [Http11Processor] Error finishing response
[exec] java.lang.ArrayIndexOutOfBoundsException
[exec] at java.lang.System.arraycopy(Native Method)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:667)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:403)
[exec] at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1553)
[exec] at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:921)
[exec] at org.apache.coyote.Response.action(Response.java:184)
[exec] at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:363)
[exec] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
[exec] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
[exec] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
[exec] at java.lang.Thread.run(Thread.java:619)