org.apache.http.ConnectionClosedException: Connection closed

Stack Overflow | svs teja | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Intermittent ConnectionClosedException with httpasynclient

    Stack Overflow | 7 months ago | svs teja
    org.apache.http.ConnectionClosedException: Connection closed

    Root Cause Analysis

    1. org.apache.http.ConnectionClosedException

      Connection closed

      at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionAllocated()
    2. Apache HttpAsyncClient
      AbstractClientExchangeHandler$1.completed
      1. org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionAllocated(AbstractClientExchangeHandler.java:320)[httpasyncclient-4.1.2.jar:na]
      2. org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$000(AbstractClientExchangeHandler.java:62)[httpasyncclient-4.1.2.jar:na]
      3. org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.completed(AbstractClientExchangeHandler.java:373)[httpasyncclient-4.1.2.jar:na]
      4. org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.completed(AbstractClientExchangeHandler.java:369)[httpasyncclient-4.1.2.jar:na]
      4 frames
    3. Apache Http
      BasicFuture.completed
      1. org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119)[httpcore-4.4.4.jar:na]
      1 frame
    4. Apache HttpAsyncClient
      PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.completed
      1. org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.completed(PoolingNHttpClientConnectionManager.java:494)[httpasyncclient-4.1.2.jar:4.1.2]
      2. org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.completed(PoolingNHttpClientConnectionManager.java:477)[httpasyncclient-4.1.2.jar:4.1.2]
      2 frames
    5. Apache Http
      BasicFuture.completed
      1. org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119)[httpcore-4.4.4.jar:na]
      1 frame
    6. Apache HttpCore NIO
      AbstractNIOConnPool.lease
      1. org.apache.http.nio.pool.AbstractNIOConnPool.fireCallbacks(AbstractNIOConnPool.java:456)[httpcore-nio-4.4.5.jar:na]
      2. org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:286)[httpcore-nio-4.4.5.jar:na]
      2 frames
    7. Apache HttpAsyncClient
      AbstractClientExchangeHandler.requestConnection
      1. org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestConnection(PoolingNHttpClientConnectionManager.java:266)[httpasyncclient-4.1.2.jar:4.1.2]
      2. org.apache.http.impl.nio.client.AbstractClientExchangeHandler.requestConnection(AbstractClientExchangeHandler.java:363)[httpasyncclient-4.1.2.jar:na]
      2 frames