* it will throw an exception.
*/
private void releaseConnection(Connection conn) throws XmlBlasterException {
if (log.isLoggable(Level.FINER)) log.finer("releaseConnection " + this.connections.size() + " waiting calls: " + this.waitingCalls);
try {
SQLWarning warns = conn.getWarnings();
/*
while (warns != null) {
log.warn(ME, "errorCode=" + warns.getErrorCode() + " state=" + warns.getSQLState() + ": " + warns.toString().trim());
Thread.currentThread().dumpStack();
warns = warns.getNextWarning();
}
*/
if (log.isLoggable(Level.FINE)) {
while (warns != null) {
log.fine("errorCode=" + warns.getErrorCode() + " state=" + warns.getSQLState() + ": " + warns.toString().trim());
warns = warns.getNextWarning();
}
}
conn.clearWarnings(); // free memory
}
catch (Throwable e) {