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 { ...@@ -122,8 +122,7 @@ public class DbConnectionManager {
if (con == null) { if (con == null) {
final SQLException ex = new SQLException("ConnectionManager.getConnection() " + final SQLException ex = new SQLException("ConnectionManager.getConnection() " +
"failed to obtain a connection after " + retryCnt +" retries. " + "failed to obtain a connection after " + retryCnt +" retries. " +
"The exception from the last attempt is attached to this exception.", "The exception from the last attempt is as follows: "+lastException);
lastException);
Log.error("Unable to obtain a connection from the database pool.", ex); Log.error("Unable to obtain a connection from the database pool.", ex);
throw ex; throw ex;
} }
......
...@@ -75,7 +75,7 @@ public class DefaultConnectionProvider implements ConnectionProvider { ...@@ -75,7 +75,7 @@ public class DefaultConnectionProvider implements ConnectionProvider {
return DriverManager.getConnection(proxoolURL, settings); return DriverManager.getConnection(proxoolURL, settings);
} }
catch (ClassNotFoundException e) { 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 { ...@@ -52,7 +52,7 @@ public class EmbeddedConnectionProvider implements ConnectionProvider {
return DriverManager.getConnection(proxoolURL, settings); return DriverManager.getConnection(proxoolURL, settings);
} }
catch (ClassNotFoundException e) { 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