question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get app list return error:Connection closed prematurely (part 2)

See original GitHub issue

As apparently nobody is looking at the advertised re-opening at #833, I want to create an own new issue for it, providing the following further details:

Promregator is an application that uses the cf-java-client. @dschroe reported an issue at Promregator, which I believe is very similar to #833. He is capable of reproducing it quite regularly; I was able to reproduce it having debugging mode enabled once by chance. I am attaching the log file, which I could get hold of. The coding which is executed can mainly be reviewed at https://github.com/promregator/promregator/blob/c7f1613d9f332cb2ce1a1c562c18328e03aec2f5/src/main/java/org/cloudfoundry/promregator/cfaccessor/ReactiveCFAccessorImpl.java:

I tried to understand what is happening based on the verbose logs attached. What makes me wondering are the log messages at 2018-05-26 16:44:38.566 and later, which read: egistering close event to pool release:

Acquired [id: 0x691802ab, L:/192.168.1.130:58972 - R:api.eu-gb.bluemix.net/2.23.183.41:443], now 15 active connections
[...]
Acquired [id: 0x3a462b0e, L:/192.168.1.130:58973 - R:api.eu-gb.bluemix.net/2.23.183.41:443], now 16 active connections
[...]
Released [id: 0xdc193d2b, L:/192.168.1.130:58958 ! R:api.eu-gb.bluemix.net/2.23.183.41:443], now 15 active connections
Released [id: 0x2afce4a0, L:/192.168.1.130:58960 ! R:api.eu-gb.bluemix.net/2.23.183.41:443], now 14 active connections
Released [id: 0x2ae976b1, L:/192.168.1.130:58961 ! R:api.eu-gb.bluemix.net/2.23.183.41:443], now 13 active connections

This makes me puzzled, because we even did not receive an answer from this.cloudFoundryClient.organizations().list(or); yet - even worse, we even did not send the request, yet! The only request which was sent, was the API standard request, which reads GET / HTTP/1.1.

Oh, before I forget: Version of cloudfoundry-client in use is 3.3.0.RELEASE.

Could you please assist in looking at the logs and help understanding what is going wrong here?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
twoseatcommented, Jun 11, 2018

I’ve just published v3.11.0.RELEASE, which should be making its way to a repo near you shortly. I think the first thing to do is update to that version, as there have been a few changes in reactor that might address your problem. And if not at least I can’t use an outdated version as an excuse!

0reactions
eaglerainbowcommented, Jul 24, 2018

@dschroe: Could you reproduce this issue in the meantime somehow? Or was that fixed together with https://github.com/promregator/promregator/issues/59#issuecomment-399710269?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PrematureCloseException: Connection prematurely closed
The problem seems to be that whenever you use webclient, you have to return or use the response, otherwise it will close the...
Read more >
Premature connection close (the server doesn't appear to ...
Hi all! I'm making a call to an API, but most of the time I keep getting an error: “Premature connection close (the...
Read more >
Why do we get the error "Connection reset by peer ... - IBM
The error message "Connection reset by peer" appears, if the web services client was waiting for a SOAP response from the remote web...
Read more >
Virtual Service Logs - Avi Networks
Monitored within the Avi Controller, virtual service logs bring benefits to surfacing insights about the end-user experience and success of the application.
Read more >
HTTP Status Codes List | HTTP Error Codes Explained
The HTTP protocol, which is technically part of the application layer within the ... after a request has succeeded or user's connection has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found