java.sql.SQLException: A connection could not be obtained in the specified login time of 5 seconds.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 3004, 1 year ago
A connection could not be obtained in the specified login time of 5 seconds.
java.sql.SQLException: A connection could not be obtained in the specified login time of 5 seconds.
at com.solarmetric.datasource.DataSourceImpl$AbstractPool.timeout(DataSourceImpl.java:615)
at com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSourceImpl.java:589)
at com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:326)
at com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:319)
at com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(DataSourceConnector.java:51)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnectionFromFactory(SQLExecutionManagerImpl.java:183)
at com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnection(SQLExecutionManagerImpl.java:142)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.getConnection(SchemaTool.java:126)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool$LocalSchemaCache.cacheTables(SchemaTool.java:1383)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool$LocalSchemaCache.(SchemaTool.java:1376)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.getSchemaCache(SchemaTool.java:157)
at com.solarmetric.kodo.impl.jdbc.schema.SchemaTool.refreshTable(SchemaTool.java:458)
at com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.refreshTable(DBSequenceFactory.java:174)
at com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSequenceFactory.java:128)
at com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newDataStoreId(JDBCStoreManager.java:445)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFilter(PersistenceManagerImpl.java:1154)
at com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(PersistenceManagerImpl.java:1096)
at com.cloverworxs.impl.as.security.RoleBasedSecurityManagerImpl.createPermission(RoleBasedSecurityManagerImpl.java:182)
at com.cloverworxs.test.KODOConnectionsQAT.testCreate(KODOConnectionsQAT.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl..java:25)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.