com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"

tomcat-users | g. rgar | 4 years ago
  1. 0

    Re: tomcat eclipse and too many connections

    tomcat-users | 4 years ago | g. rgar
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"
  2. 0

    Re: tomcat eclipse and too many connections

    apache.org | 12 months ago
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"
  3. 0

    Re: tomcat eclipse and too many connections

    tomcat-users | 4 years ago | Mark Eggers
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MYSQL Getting Data too many connections in-spite of closing resources properly

    Stack Overflow | 1 year ago | Preethi Jain
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"
  6. 0

    Tomcat JDBC Pool: Too many connections

    Stack Overflow | 2 years ago | UDPLover
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection, message from server: "Too many connections"

  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 3 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

    Data source rejected establishment of connection, message from server: "Too many connections"

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    4 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2. com.mysql.jdbc.Util.getInstance(Util.java:382)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
    4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    5. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    6. com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1116)
    7. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
    8. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    9. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    10. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    11. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    11 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.GeneratedConstructorAccessor18.newInstance(UnknownSource)
    2. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    3. java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    3 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    3 frames
  6. org.apache.tomcat
    DataSourceFactory.getObjectInstance
    1. org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:278)
    2. org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:182)
    3. org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:699)
    4. org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:631)
    5. org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:485)
    6. org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:143)
    7. org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:116)
    8. org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:103)
    9. org.apache.tomcat.jdbc.pool.DataSourceFactory.createDataSource(DataSourceFactory.java:539)
    10. org.apache.tomcat.jdbc.pool.DataSourceFactory.getObjectInstance(DataSourceFactory.java:237)
    10 frames
  7. Web Container Naming Utilities
    ResourceFactory.getObjectInstance
    1. org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143)
    1 frame
  8. Java RT
    NamingManager.getObjectInstance
    1. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
    1 frame
  9. Web Container Naming Utilities
    NamingContext.lookup
    1. org.apache.naming.NamingContext.lookup(NamingContext.java:843)
    2. org.apache.naming.NamingContext.lookup(NamingContext.java:154)
    3. org.apache.naming.NamingContext.lookup(NamingContext.java:831)
    4. org.apache.naming.NamingContext.lookup(NamingContext.java:168)
    4 frames
  10. Glassfish Core
    ContainerBase$ContainerBackgroundProcessor.run
    1. org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1061)
    2. org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:671)
    3. org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:270)
    4. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    5. org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    6. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5173)
    7. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    8. org.apache.catalina.core.StandardContext.reload(StandardContext.java:3920)
    9. org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426)
    10. org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)
    11. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)
    12. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
    13. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)
    14. org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)
    14 frames
  11. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:722)
    1 frame