Cannot create PoolableConnectionFactory


The Kernel is not able to connect to MySql Backend Database and throws the Error

"Cannot create PoolableConnectionFactory (No tables used)"

Excerpt from Logs:

2013-11-25 06:32:36 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (No tables used)
2013-11-25 06:32:36 at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(
2013-11-25 06:32:36 at org.apache.commons.dbcp.BasicDataSource.createDataSource(
2013-11-25 06:32:36 at org.apache.commons.dbcp.BasicDataSource.getConnection(
2013-11-25 06:32:36 at com.adeptia.indigo.utils.BackendDatabaseConnection.getBackendConnection(
2013-11-25 06:32:36 at com.adeptia.indigo.license.LicenseValidator.checkAcceleratorGroupDeployed(
2013-11-25 06:32:36 at com.adeptia.indigo.license.LicenseValidator$
2013-11-25 06:32:36 at Source)
2013-11-25 06:32:36 Caused by: java.sql.SQLException: No tables used
2013-11-25 06:32:36 at com.mysql.jdbc.SQLError.createSQLException(
2013-11-25 06:32:36 at com.mysql.jdbc.MysqlIO.checkErrorPacket(
2013-11-25 06:32:36 at com.mysql.jdbc.MysqlIO.sendCommand(
2013-11-25 06:32:36 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(
2013-11-25 06:32:36 at com.mysql.jdbc.Connection.execSQL(
2013-11-25 06:32:36 at com.mysql.jdbc.Connection.execSQL(
2013-11-25 06:32:36 at com.mysql.jdbc.Statement.executeQuery(
2013-11-25 06:32:36 at org.apache.commons.dbcp.DelegatingStatement.executeQuery(
2013-11-25 06:32:36 at org.apache.commons.dbcp.PoolableConnectionFactory.validateConnection(
2013-11-25 06:32:36 at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
2013-11-25 06:32:36 at org.apache.commons.dbcp.BasicDataSource.createPoolableConnectionFactory(
2013-11-25 06:32:36 ... 6 more
2013-11-25 06:32:36,105 INFO [Enterprise Business Integration Management Suite 6.0 Kernel Thread] kernel com.adeptia.indigo.IndigoKernel.boot( - ||||null|||||null|Registering core mbeans||
2013-11-25 06:32:38,100 ERROR [License Validator Thread : Validate Services] storage$CustomDatabase.performRetry( - ||User||null|||||null|Failed to connect to Backend Database. Performing retries[null]||


In order to resolve the issue enable the testOnBorrow and validationQuery property for connection pooling. In file there is a property "abpm.cluster.testOnBorrow" and "abpm.cluster.validationQuery" which is used to validate connection from the backend database and check if connection pool is available. These will ensure that the connection is active and is not closed.

In property "abpm.cluster.validationQuery" provide the Select Query like "Select * from Dual"(Oracle and MySql). This Dual is a small table in the data dictionary that Oracle Database and user-written programs can reference to guarantee a known result. The dual table is useful when a value must be returned only once.

The Dual table has one column called dummy and one row containing the value X.

Note: Before providing the query "Select * from Dual" do make sure it is working by executing on the respective Database. 

Have more questions? Submit a request


Article is closed for comments.