I have a two-part question. Answers to either part would be helpful.
I am getting an error
SchemaManager: Error occurred checking if resource [cluster_lock] exists
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
at the line
List<?> queryResult = txTemplate
.execute(new TransactionCallback<List<?>>() {
@Override
public List<?> doInTransaction(TransactionStatus status) {
String replaced = COLONS.matcher(sql)
.replaceAll(COLON_REPLACEMENT);
SQLQuery query = getCurrentSession()
.createSQLQuery(replaced);
addParamsToQuery(query, paramMap);
query.setMaxResults(maxRowCount);
return query.list();
}
So my questions are:
-
How do I find the information that is normally in the connect string: Host, etc.
-
Otherwise, how do I find the cause of the problem?
The same code is working fine for others here.