Jump to content
  • 0

How To Fixs This Error


Question

Posted (edited)

Hello i have many errors like this how to fixs that?

I use frozen pack.

 

INFO  An exception occurred while acquiring a poolable resource. Will retry.
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection,  message from server: "Too many connections"
    at sun.reflect.GeneratedConstructorAccessor69.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.Util.getInstance(Util.java:382)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
    at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1119)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
    at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    at sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
    at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
    at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
    at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
    at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
    at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
    at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
    at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

Edited by Mellion

2 answers to this question

Recommended Posts

  • 0
Posted

propably u are using connections to mysql without closing them and u reached the maximum connections... check some of your codes and find out the missing 'connection'.close()

  • 0
Posted

Ressource leak cause by missing closed ressource, as melron suggested. If L2JFrozen was activating warnings on Eclipse regarding ressource leak, you would be warned about such thing.

 

Best way to avoid them is to use try-with-ressources statement from JDK 7.

 

https://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Want to promote your projects, scale traffic, or launch unrestricted campaigns? Ready-made Telegram groups and channels are the perfect solution for marketing, lead generation, and service promotion. ➡ High quality, affordable prices — from $1.8 Promo code: TGJULY (10% discount) Payment methods: bank cards · crypto · other popular options How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Available options: ✉ Groups IMPORT and REAL | From 2014 to 2024 to choose from! | For safe invites | Affordable and high quality! | Price from $1.8 ✉ Telegram Real Old Channels (2022–2023: choose the year) | Real channels | Ownership transferred to your account | Price from $3 Regular customers receive additional discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current list: https://socnet.bgng.io/partners) — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
    • Want to promote your projects, scale traffic, or launch unrestricted campaigns? Ready-made Telegram groups and channels are the perfect solution for marketing, lead generation, and service promotion. ➡ High quality, affordable prices — from $1.8 Promo code: TGJULY (10% discount) Payment methods: bank cards · crypto · other popular options How to buy: ➡ Online Store: Click ➡ Telegram Bot: Click Other services: ➡ SMM Panel: Click Available options: ✉ Groups IMPORT and REAL | From 2014 to 2024 to choose from! | For safe invites | Affordable and high quality! | Price from $1.8 ✉ Telegram Real Old Channels (2022–2023: choose the year) | Real channels | Ownership transferred to your account | Price from $3 Regular customers receive additional discounts and promo codes! Support: ➡ Telegram: https://t.me/solomon_bog ➡ Discord: https://discord.gg/y9AStFFsrh ➡ WhatsApp: https://wa.me/79051904467 ➡ ✉ Email: solomonbog@socnet.store ➡ Telegram Channel: https://t.me/accsforyou_shop You can also use these contacts to: — Discuss wholesale orders — Propose partnerships (current list: https://socnet.bgng.io/partners) — Become a supplier SocNet — Digital Goods & Premium Subscriptions Store
    • Lots of RUSaCis in your project, they all buy and sell the same thing.  
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock