• Register
0 votes

Problem :

I am facing following error for the Stack: AngularJS v1.6.5, java 8, spring boot, tomcat. After about around 1 week of work, my application is not responding but giving me such an error. Why is this happening to me?

My Frontend Code As Below:

url: 'find',
method: "post",
data: { 'month' : $scope.month,'year' : $scope.year, 'payTime' : $scope.payTime,'waitTime' : $scope.waitTime,'scanTime' : $scope.scanTime,'gbNumber' : $scope.hyper}
.then(function(response) {

My Backend Code As Below:

@RequestMapping(mypath = "/find", mymethod = RequestMethod.POST)
public ReportResponse myfind(@RequestBody RequestSearch myparams,
HttpServletResponse response) throws DataNotFoundException {

Stacktrace As Below:

2019-12-02 09:37:44.738 ERROR 14912 --- [p-nio-80-exec-9] o.s.boot.web.support.ErrorPageFilter     : Cannot forward to error page for request [/excel/ExceReport.xls] as the response has already been committed. As a result, the response may have the wrong status code. If your application is running on WebSphere Application Server you may be able to resolve this problem by setting com.ibm.ws.webcontainer.invokeFlushAfterService to false
org.apache.catalina.connector.ClientAbortException: java.io.IOException: An established connection was aborted by the software in your host machine
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:460) ~[catalina.jar:8.5.24]
at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:920) ~[catalina.jar:8.5.24]
at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:830) ~[catalina.jar:8.5.24]
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:420) ~[catalina.jar:8.5.24]
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:400) ~[catalina.jar:8.5.24]
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:100) ~[catalina.jar:8.5.24]
at org.springframework.util.StreamUtils.copy(StreamUtils.java:240) ~[spring-core-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.http.converter.ResourceHttpMessageConverter.writeContent(ResourceHttpMessageConverter.java:220) ~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:200) ~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE]
6 5 3
7,540 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

This issue can be ignored, unless there are other issues liked with that are currently occurring. For example, if the application server is throwing a lot of these, it may be the sign of a performance problem.

9 7 4
38,600 points
0 votes


When you get end of stream (read() returns -1) you aren't closing the channel, so you're leaking channels. You require to close the channel, and note that doing so will automatically cancel the key. Only cancelling the key by itself is not sufficient. Simillar at the time you cancel the key because clientNumber == null or you get an IOException.

NB you shouldn't register OP_WRITE unless you have only received zero from a write() call, and you should deregister it whenever you don't get that zero.

You'll require to take the error literal: "An established connection was aborted by the software in your host machine" imply that there is something on the server hosting system that is aborting player connections, most likely an overprotective Firewall or Antivirus program, or Malware in the worst case.

The #minecrafthelp channel on EsperIRC might be able to figure out what is going on, in case you come on and nobody answers, you'll require to wait a bit until someone is there that can actually help you.

That is a boiler-plate error message and it comes out of Windows. The underlying error code is WSAECONNABORTED. Which very doesn’t suggest over "connection was aborted". You have to be a touch careful about the "your host machine" a part of the phrase. In the overwhelming majority of Windows application programs, it’s so  the host that the desktop app is connected to that aborted the connection. Usually a server somewhere else.

The roles are reversed however when you implement your own server. Now you require to read the error message as "aborted by the application at the other end of the wire". Which is in fact not uncommon once you implement a server, client programs that use your server don’t seem to be are unlikely to abort a connection for no matter reason. It can imply that a fire-wall or a proxy terminated the connection however that's not very likely since they typically would not allow the connection to be established in the first place.

You don't actually know why a connection was aborted if not you have insight what is going on at the other end of the wire. That's of course hard to come by. In case your server is reachable through the Internet then don't discount the possibility that you are being probed by a port scanner. Or your customers, looking for a game cheat.

 In most of the cases this exception strikes something on your machine is blocking your connection. Try running it with firewall/antivirus disabled. This is not permanent, only for testing if this is setup issue or code issue. In case it passes without the firewall/antivirus then you have to find a way to allow it through them - include it to the firewall exceptons, etc.

In case this doesn't work the next step is to take a network sniff to see if your request goes out and what's being send on the wire. Post the sniff and/or a code snippet and we will investigate.

Eventually everything comes to the fact that the Keep alive property should be set to false in .NET HTTP communication including WS. .NET does not handle acurately the request for Keep alive. I stopped using the feature since of the endless synchronization problems. In the instance of the synchronous requests the issue can be recognized and handled however in the asynchronous requests .NET throws exceptions that have nothing to do with the problem which makes identification and handling procedure impossible.

It may also be caused by your Firewall. You should be an administrator on your computer:

  1. Go to Search
    2. Type Windows Firewall
    3. The just  Click on "Allow an app through Windows firewall".
    4. Click on Change Settings.
    5. Find "Java(TM) Platform SE Binary" If it shows more then one option, make the following changes on both: "On Checkboxes" mark the option Private for all processes.
    6. Click on OK
    7. Restart your computer.
    8.Try to connect to your server.

It may also be a player's slow connection that can't render all the blocks in time. Lowering the player's render distance to lowest setting (under "Video" in their settings) may help. Lowering the server view-distance may also fix the issue.

For that, changing the server-side view distance will fix as well.

  1. Stop the Server.
    2. Click on " Files ".
    3. Click on " Config Files ".
    4. Click on " Server Settings ".
    5. Find " View-Distance ".
    6. Change it to " 4 ".
    7. Scroll down and click on " Save ". ( make sure of that )
    8. Start your server

10 6 4
31,120 points

Related questions

0 votes
1 answer 8 views
Problem: How to fix this issue: An established connection was aborted by the software in your host machine minecraft
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 10 views
Probelm : An Existing Connection Was Forcibly Closed By Remote Host Minecraft need Help
asked Mar 12 sadi1982 36.3k points
1 vote
1 answer 5 views
Problem: Why I am getting this error? Internal exception: java.ioexception: an existing connection was forcibly closed by the remote host.
asked Mar 29 PkGuy 13.1k points
0 votes
1 answer 44 views
Can anyone help me with how to solve this issue? Any help is greatly appreciated.
asked Dec 27, 2020 TeamScript 13.5k points
0 votes
1 answer 15 views
an existing connection was forcibly closed by the remote host
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 261 views
Problem : I am making rest call to IBM Cloud BPM. Some times calls are working fine.But sometimes it is giving following error. minecraft java.io.ioexception an existing connection was forcibly closed
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
1 answer 1 view
1 view
Problem: Can anyone tell me the solution of this problem? an existing connection was forcibly closed by remote host
asked Apr 3 Ifra 24.4k points
0 votes
1 answer 23 views
Problem: I am facing following Jasmine issue and looking for solution: async callback was not invoked within timeout specified by jasmine.default_timeout_interval.
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 1.6K views
Problem : I am facing following Jasmine issue and looking for solution: async callback was not invoked within timeout specified by jasmine.default_timeout_interval.
asked Nov 16, 2019 peterlaw 6.9k points