• Register
0 votes

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
6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Soluttion :

Usually the connection to an HTTP server is closed after each response. With HTTP "keep-alive" you keep the underlying TCP connection open until certain criteria are met. What those conditions are depends on the server, which is free to close the connection after an arbitrary timeout or number of requests 

When the server closes such a connection the client usually reopens it again, and depending on implementation, may throw an exception or print a warning.

Further Readings:


9 7 4
38,600 points

Related questions

0 votes
1 answer 24 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 3 views
an existing connection was forcibly closed by the remote host
asked Feb 16 ArifulIslam 7.5k points
0 votes
1 answer 24 views
What can cause this exception?
asked Dec 19, 2020 TeamScript 13.5k points
0 votes
1 answer 57 views
Problem : I am getting bellow error while generating certificates on my local machine. java.io.ioexception: keystore was tampered with, or password was incorrect
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
2 answers 1.5K views
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 ... org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:200) ~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] ...
asked Dec 10, 2019 alecxe 7.5k points
0 votes
1 answer 104 views
Problem : I am trying to use the WCF4.0 template -REST. Also I am trying to make the method that uploads a file using the stream. The problem always occur at below line of code: Stream myserverStream = myrequest.GetRequestStream() ... connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)
asked Dec 10, 2019 alecxe 7.5k points
0 votes
1 answer 1 view
1 view
Problem: When the callee throws an exception i.e. void showfile() throws java.io.IOException the caller should handle it or throw it again. And also learn naming conventions. A class name should start with a capital letter. How can i solve this?
asked 4 hours ago Ali 4.3k points