且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

断管Java EE

更新时间:2023-12-03 13:20:04

ClientAbortException 将告诉您为什么会收到异常:

This documentation of the ClientAbortException will tell you why you're getting the exception:


包装IOException以识别它由远程客户端请求中止引起的。

Wrap an IOException identifying it as being caused by an abort of a request by a remote client.

我在日志中也看到了这种类型的异常。基本上它意味着他们你的服务器正在向web客户端发送信息(我猜测堆栈跟踪中的jackson json东西是网页向你的网络服务器发出了一个AJAX调用),但在你的服务器发送所有信息之前,web客户端打破了连接(可能是您的用户在编写整个响应之前关闭了网页或浏览器)。我不认为这是你需要担心的任何事情,除非你同时控制服务器和客户端,在这种情况下你应该检查你的客户端为什么提前关闭连接。

I see this type of exception in my logs too. Basically it means they your server was sending information to a web client (My guess from the jackson json stuff in the stacktrace is that a webpage made an AJAX call to your webserver), but before you server could send all the information, the web client broke the connection (perhaps your user closed the web page or their browser before the entire response was written). I don't think this is anything you need to worry about, unless you are controlling both the server and the client, in which case you should check why your client is closing the connection early.