java.lang.RuntimeException: User code thrown exception: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: sorry, too many clients already

Stack Overflow | dhiraka | 8 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

    Configuration with id 'ADAPTER_CONTENT' for schema 'mfp_default_schema' with version '1.0' not found

    Stack Overflow | 8 months ago | dhiraka
    java.lang.RuntimeException: User code thrown exception: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: sorry, too many clients already
  2. 0

    setUrl + postrgesql

    GitHub | 2 years ago | b0c1
    java.lang.RuntimeException: Could not create datasource instance: org.postgresql.ds.PGSimpleDataSource
  3. 0

    [2.3.4][HikariCP] Issues with HikariCP on Heroku

    Google Groups | 3 years ago | Steve Chaloner
    java.lang.RuntimeException: Unable to get driver for JDBC URL postgres://<redacted>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hikari complains "Property user does not exist on target class: com.nuodb.jdbc.DataSource"

    Stack Overflow | 2 years ago | Shiva Shinde
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDetailsService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.nuodb.myapp.repository.UserRepository com.nuodb.myapp.security.UserDetailsService.userRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': Cannot create inner bean '(inner bean)#c3ca295' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#c3ca295': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibase' defined in class path resource [com/nuodb/myapp/config/DatabaseConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class path resource [com/nuodb/myapp/config/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.RuntimeException: java.beans.IntrospectionException: Method not found: setUser; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/nuodb/myapp/config/DatabaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.sql.DataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.RuntimeException: java.beans.IntrospectionException: Method not found: setUser
  6. 0

    gist:942e3218b82365431e00 ยท GitHub

    github.com | 1 year ago
    java.lang.RuntimeException: Fail-fast during pool initialization| at org.gbif.mybatis.guice.MyBatisModule.provideDatasource(MyBatisModule.java:100)| at org.gbif.mybatis.guice.MyBatisModule.provideDatasource(MyBatisModule.java:100)| while locating javax.sql.DataSource| for field at org.mybatis.guice.environment.EnvironmentProvider.dataSource(EnvironmentProvider.java:57)| at org.mybatis.guice.environment.EnvironmentProvider.class(EnvironmentProvider.java:32)| while locating org.mybatis.guice.environment.EnvironmentProvider| at org.mybatis.guice.MyBatisModule.internalConfigure(MyBatisModule.java:112)| while locating org.apache.ibatis.mapping.Environment| for parameter 0 at org.mybatis.guice.configuration.ConfigurationProvider.<init>(ConfigurationProvider.java:122)| at org.mybatis.guice.configuration.ConfigurationProvider.class(ConfigurationProvider.java:43)| while locating org.mybatis.guice.configuration.ConfigurationProvider| at org.mybatis.guice.MyBatisModule.internalConfigure(MyBatisModule.java:113)| while locating org.apache.ibatis.session.Configuration| for parameter 0 at org.mybatis.guice.session.SqlSessionFactoryProvider.createNewSqlSessionFactory(SqlSessionFactoryProvider.java:64)| at org.mybatis.guice.session.SqlSessionFactoryProvider.class(SqlSessionFactoryProvider.java:31)| while locating org.mybatis.guice.session.SqlSessionFactoryProvider| while locating org.apache.ibatis.session.SqlSessionFactory| for parameter 0 at org.mybatis.guice.session.SqlSessionManagerProvider.createNewSqlSessionManager(SqlSessionManagerProvider.java:55)| at org.mybatis.guice.session.SqlSessionManagerProvider.class(SqlSessionManagerProvider.java:31)| while locating org.mybatis.guice.session.SqlSessionManagerProvider| at org.mybatis.guice.AbstractMyBatisModule.configure(AbstractMyBatisModule.java:51)| while locating org.apache.ibatis.session.SqlSessionManager| for field at org.mybatis.guice.transactional.TransactionalMethodInterceptor.sqlSessionManager(TransactionalMethodInterceptor.java:60)| at org.mybatis.guice.AbstractMyBatisModule.configure(AbstractMyBatisModule.java:56)|Caused by: java.lang.RuntimeException: Fail-fast during pool initialization

  1. balintn 5 times, last 6 months ago
  2. hoangtranwork 1 times, last 11 months ago
  3. rp 1 times, last 1 year ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    User code thrown exception: com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: FATAL: sorry, too many clients already

    at com.zaxxer.hikari.pool.HikariPool.checkFailFast()
  2. HikariCP-java6
    HikariDataSource.<init>
    1. com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:516)
    2. com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:118)
    3. com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:71)
    3 frames
  3. com.kloan
    JavaSQLApplication.init
    1. com.kloan.JavaSQLApplication.getDataSource(JavaSQLApplication.java:49)
    2. com.kloan.JavaSQLApplication.init(JavaSQLApplication.java:59)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames