org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)

Stack Overflow | Sthita | 5 months ago
  1. 0

    Not able to connect local mysql server

    Stack Overflow | 5 months ago | Sthita
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
  2. 0

    tomcat 连接池问题 急急急急急急!!!!!!!! - 开源中国社区

    oschina.net | 1 year ago
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
  3. 0

    GitHub comment 1333#128250457

    GitHub | 1 year ago | hackerunet
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MySQL :: MySQL unreachable under heavy load

    mysql.com | 11 months ago
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
  6. 0

    Install Bahmni on CentOS - Bahmni Wiki - Bahmni Documentation Wiki

    atlassian.net | 8 months ago
    java.lang.RuntimeException: Error occurred while trying to get the updates needed for the database. Unable to get a connection to the database. Please check your openmrs runtime properties file and make sure you have the correct connection.username and connection.password set

  1. tvrmsmith 4 times, last 3 months ago
  2. MoYapro 4 times, last 5 months ago
  3. fima 24 times, last 2 months ago
  4. mauritius 6 times, last 2 months ago
  5. tvrmsmith 3 times, last 3 months ago
4 more registered users
38 unregistered visitors
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.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException

    Could not create connection to database server. Attempted reconnect 3 times. Giving up.

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.Util.getInstance(Util.java:386)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1015)
    4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
    5. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:975)
    6. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:920)
    7. com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2388)
    8. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2309)
    9. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834)
    10. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    10 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:346)
    3 frames
  6. org.apache.tomcat
    BasicDataSource.getConnection
    1. org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    2. org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
    3. org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1556)
    4. org.apache.tomcat.dbcp.dbcp.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:1545)
    5. org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1388)
    6. org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044)
    6 frames
  7. 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
  8. net.bull.javamelody
    JdbcWrapper$DelegatingInvocationHandler.invoke
    1. net.bull.javamelody.JdbcWrapper$3.invoke(JdbcWrapper.java:765)
    2. net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:285)
    2 frames
  9. com.sun.proxy
    $Proxy2.getConnection
    1. com.sun.proxy.$Proxy2.getConnection(Unknown Source)
    1 frame
  10. net.xxx.fetch
    WebDBMaintainer.getMasterEnable
    1. net.xxx.fetch.jobboard.WebDBMaintainer.getMasterEnable(WebDBMaintainer.java:717)
    1 frame
  11. net.xxx.net
    MasterEnableCache.setMachineID
    1. net.xxx.net.MasterEnableCache.refreshCache(MasterEnableCache.java:80)
    2. net.xxx.net.MasterEnableCache.setMachineID(MasterEnableCache.java:67)
    2 frames
  12. 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
  13. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:856)
    2. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:734)
    3. org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:886)
    4. org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:913)
    5. org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:902)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:967)
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:768)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:330)
    9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
    11 frames
  14. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
    1 frame
  15. Spring
    ContextLoaderServlet.init
    1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
    2. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
    3. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
    4. org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:81)
    4 frames
  16. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:160)
    1 frame
  17. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
    2. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
    3. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
    4. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
    5. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    6. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    7. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    8. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    9. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    10. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:968)
    11. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1646)
    11 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    2. java.util.concurrent.FutureTask.run(Unknown Source)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    5. java.lang.Thread.run(Unknown Source)
    5 frames