Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consulRawClient java.lang.IllegalStateException: Connection pool shut down #230

Open
FangXiaoMing2021 opened this issue Oct 27, 2021 · 2 comments

Comments

@FangXiaoMing2021
Copy link

I encountered this error using the consul client, I don’t know how it happened, can anyone help?

java.lang.IllegalStateException: Connection pool shut down
@FangXiaoMing2021
Copy link
Author

consul-api version 1.4.1
httpclient version 4.5.10
httpcore version 4.4.11

@Kunple-w
Copy link

Kunple-w commented Feb 6, 2023

i got same exception, it seems to be caused by httpcomponents.
in httpcomponents 4.5.x, developer push this code #apache/httpcomponents-client@ca98ad6,

        } catch (final RuntimeException ex) {
            releaseTrigger.abortConnection();
            throw ex;
        } catch (final Error error) {
            connManager.shutdown();
            throw error;
        }
    }

if your app throw StackOverflowErroror OutOfMemoryError or else Error, may be catched by this code,then connection pool shutdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants