Exception Processing errorpage [error code = 404 clientabortexception: java.net. socketexception: connec

Source: Internet
Author: User
Tags connection reset

The error status is as follows:

Exception Processing errorpage [error code = 404, location =/404.jsp] <br/> clientabortexception: java.net. socketexception: Connection reset by peer: Socket write error <br/> at Org. apache. catalina. connector. outputbuffer. doflush (outputbuffer. java: 327) <br/> at Org. apache. catalina. connector. outputbuffer. flush (outputbuffer. java: 293) <br/> at Org. apache. catalina. connector. response. flushbuffer (response. java: 544) <br/> at Org. apache. catalina. core. standardhostvalve. status (standardhostvalve. java: 286) <br/> at Org. apache. catalina. core. standardhostvalve. invoke (standardhostvalve. java: 136) <br/> at Org. apache. catalina. valves. errorreportvalve. invoke (errorreportvalve. java: 105) <br/> at Org. apache. catalina. core. standardenginevalve. invoke (standardenginevalve. java: 107) <br/> at Org. apache. catalina. connector. coyoteadapter. service (coyoteadapter. java: 148) <br/> at Org. apache. coyote. http11.http11processor. process (http11processor. java: 869) <br/> at Org. apache. coyote. http11.http11baseprotocol $ http11connectionhandler. processconnection (http11baseprotocol. java: 667) <br/> at org.apache.tomcat.util.net. pooltcpendpoint. processsocket (pooltcpendpoint. java: 527) <br/> at org.apache.tomcat.util.net. leaderfollowerworkerthread. runit (leaderfollowerworkerthread. java: 80) <br/> at Org. apache. tomcat. util. threads. threadpool $ controlrunnable. run (threadpool. java: 684) <br/> at java. lang. thread. run (thread. (Java: 595) <br/> caused by: java.net. socketexception: Connection reset by peer: Socket write error <br/> at java.net. socketoutputstream. socketwrite0 (native method) <br/> at java.net. socketoutputstream. socketwrite (socketoutputstream. java: 92) <br/> at java.net. socketoutputstream. write (socketoutputstream. java: 136) <br/> at Org. apache. coyote. http11.internaloutputbuffer. realwritebytes (internaloutputbuffer. java: 746) <br/> at Org. apache. tomcat. util. buf. bytechunk. flushbuffer (bytechunk. java: 433) <br/> at Org. apache. coyote. http11.internaloutputbuffer. flush (internaloutputbuffer. java: 304) <br/> at Org. apache. coyote. http11.http11processor. action (http11processor. java: 991) <br/> at Org. apache. coyote. response. action (response. java: 182) <br/> at Org. apache. catalina. connector. outputbuffer. doflush (outputbuffer. java: 322) <br/> 13 more

Generally
<Error-page>
<Error-code> 404 </error-code>
<Location>/error. jsp </location>
</Error-page>

The system automatically redirects to the page, causing repeated exceptions.

Solution:

Modify error. JSP code
Error. jsp use response. sendredirect ("/index.html ");
The main problem is that IE7 does not properly parse the jump information given by the application server. We need to write our own code to redirect the server to the new page (JSP)
The sample code is as follows:

<% @ Page Language = "Java" contenttype = "text/html; charset = GBK" pageencoding = "GBK" %> <br/> <% @ page import = "org. apache. commons. logging. * "%> <br/> <HTML> <br/> <body> <br/> <% <br/> log = logfactory. getlog ("error. JSP "); <br/> log. error ("error. JSP call !!!!!!!!!!!!!!!!!!!!!!!!!!!!! --------------------------- "); <Br/> response. sendredirect ("/index.html "); <br/>%> <br/> </body> <br/> </ptml>

Run again to solve the problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.