java.lang.IllegalStateException: ConcurrentBag has been closed, ignoring add()

Google Groups | Mike Nielsen | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Correct way to configure Hikari CP timeout with slick 3.1.1

    Google Groups | 6 months ago | Mike Nielsen
    java.lang.IllegalStateException: ConcurrentBag has been closed, ignoring add()
  2. 0

    Connection reset Exception Obscurated and leading to IllegalStateException: ConcurrentBag has been closed

    GitHub | 2 years ago | CamilleDrapier
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [com/mycompany/sdc/data/configuration/DatabaseRunConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]: Factory method 'entityManagerFactory' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scDataSource' defined in class path resource [com/mycompany/sdc/data/configuration/DatabaseRunConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'scDataSource' threw exception; nested exception is com.zaxxer.hikari.pool.PoolInitializationException: Exception during pool initialization

    Root Cause Analysis

    1. java.lang.IllegalStateException

      ConcurrentBag has been closed, ignoring add()

      at com.zaxxer.hikari.util.ConcurrentBag.add()
    2. HikariCP-java6
      BaseHikariPool$1.run
      1. com.zaxxer.hikari.util.ConcurrentBag.add(ConcurrentBag.java:178)
      2. com.zaxxer.hikari.pool.BaseHikariPool.addConnection(BaseHikariPool.java:453)
      3. com.zaxxer.hikari.pool.BaseHikariPool$1.run(BaseHikariPool.java:413)
      3 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames