I got the following error
INFO: WARN JDBCExceptionReporter:77 - SQL Error: 0, SQLState: null INFO: ERROR JDBCExceptionReporter:78 - Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections. SEVERE: null org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103) at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326) at tcplistener.Alldatabase.checkimei(Alldatabase.java:64) at tcplistener.ModuleHandler.run(ModuleHandler.java:88) at java.lang.Thread.run(Thread.java:619) Caused by: java.sql.SQLException: Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections. at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:133) at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:66) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423) ... 7 more
How to solve this one,
please help me
thanks in advance
|