java.sql.SQLException: Connections could not be acquired from the underlying database!

Google Groups | Ivan Senic | 3 years 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

    H2 Database - java.lang.ArrayIndexOutOfBoundsException: 0 when loading data from H2

    nabble.com | 11 months ago
    java.sql.SQLException: Connections could not be acquired from the underlying database!
  2. 0

    java.lang.ArrayIndexOutOfBoundsException: 0 when loading data from H2

    Google Groups | 3 years ago | Ivan Senic
    java.sql.SQLException: Connections could not be acquired from the underlying database!
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    C3p0 Connections could not be acquired from the underlying database

    Stack Overflow | 1 year ago | Grace
    org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Connections could not be acquired from the underlying database!; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!
  5. 0

    Problème database oracle

    developpez.net | 6 months ago
    java.sql.SQLException: Connections could not be acquired from the underlying database!
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. com.mchange.v2.resourcepool.CannotAcquireResourceException

    A ResourcePool could not acquire a resource from its primary factory or source.

    at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable()
  2. c3p0:JDBC DataSources/Resource Pools
    AbstractPoolBackedDataSource.getConnection
    1. com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)[c3p0-0.9.1.2.jar:0.9.1.2]
    2. com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)[c3p0-0.9.1.2.jar:0.9.1.2]
    3. com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)[c3p0-0.9.1.2.jar:0.9.1.2]
    4. com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)[c3p0-0.9.1.2.jar:0.9.1.2]
    5. com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)[c3p0-0.9.1.2.jar:0.9.1.2]
    5 frames
  3. Hibernate
    LocalDataSourceConnectionProvider.getConnection
    1. org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)[org.springframework.orm-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    1 frame
  4. Hibernate
    SchemaUpdate.execute
    1. org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
    2. org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168)[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
    2 frames
  5. Hibernate
    SessionFactoryImpl.<init>
    1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:375)[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
    1 frame
  6. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)[hibernate-core-3.6.9.Final.jar:3.6.9.Final]
    1 frame
  7. Hibernate
    AbstractSessionFactoryBean.afterPropertiesSet
    1. org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)[org.springframework.orm-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    2. org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)[org.springframework.orm-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3. org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)[org.springframework.orm-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3 frames
  8. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    10. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    12. org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    13. org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    14. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    16. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    17. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    18. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    19. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    20. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    21. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    22. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    23. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    23 frames
  9. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    4 frames
  10. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[na:1.7.0_51]
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)[na:1.7.0_51]
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)[na:1.7.0_51]
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)[na:1.7.0_51]
    4 frames
  11. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:110)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    9. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    10. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    11. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    12. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    12 frames
  12. Spring Context
    ContextSingletonBeanFactoryLocator.initializeDefinition
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3. org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)[org.springframework.context-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    3 frames
  13. Spring Beans
    SingletonBeanFactoryLocator.useBeanFactory
    1. org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:381)[org.springframework.beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]
    1 frame
  14. info.novatec.inspectit
    CMR.main
    1. info.novatec.inspectit.cmr.CMR.startRepository(CMR.java:91)[inspectit-cmr.jar:na]
    2. info.novatec.inspectit.cmr.CMR.startCMR(CMR.java:79)[inspectit-cmr.jar:na]
    3. info.novatec.inspectit.cmr.CMR.main(CMR.java:202)[inspectit-cmr.jar:na]
    3 frames