Commit e866a452 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Repaired compiliation under java 5.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10269 b35dd754-fafc-0310-a699-88a17e54d16e
parent d26e09dc
......@@ -122,8 +122,7 @@ public class DbConnectionManager {
if (con == null) {
final SQLException ex = new SQLException("ConnectionManager.getConnection() " +
"failed to obtain a connection after " + retryCnt +" retries. " +
"The exception from the last attempt is attached to this exception.",
lastException);
"The exception from the last attempt is as follows: "+lastException);
Log.error("Unable to obtain a connection from the database pool.", ex);
throw ex;
}
......
......@@ -75,7 +75,7 @@ public class DefaultConnectionProvider implements ConnectionProvider {
return DriverManager.getConnection(proxoolURL, settings);
}
catch (ClassNotFoundException e) {
throw new SQLException("DbConnectionProvider: Unable to find driver", e);
throw new SQLException("DbConnectionProvider: Unable to find driver: "+e);
}
}
......
......@@ -52,7 +52,7 @@ public class EmbeddedConnectionProvider implements ConnectionProvider {
return DriverManager.getConnection(proxoolURL, settings);
}
catch (ClassNotFoundException e) {
throw new SQLException("EmbeddedConnectionProvider: Unable to find driver: ", e);
throw new SQLException("EmbeddedConnectionProvider: Unable to find driver: "+e);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment