• Register
search
Log In
0 votes
151 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
6.9k points

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:

https://github.com/DarkPacks/SevTech-Ages/issues/2761

36.1k points
edited by

Related questions

0 votes
1 answer 37 views
37 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 393 views
393 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 19 views
19 views
Problem : I am very new to JDBC. Now I am trying to connect to the Oracle 11g database using my ojdbc14 jar on the eclipse kepler IDE with the java 8 on my windows 7 PC. But when I try to run the below code I often face the following error. import ... DB"); } } } And the encountered Error is as below : java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
asked Feb 14 mphil 2.3k points
0 votes
1 answer 57 views
57 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 38 views
38 views
Problem : After compiling my C# code I am getting below error: error: An unhandled exception of type 'System.Net.WebException' occurred in System.dll Additional information: The underlying connection was closed: An unexpected error occurred on a receive. At the line HttpWebResponse myResponse = (HttpWebResponse)myRequest.GetResponse(); please let me know if anybody has solution on it.
asked Jan 18 jwilliam 3.9k points