http://markmail.org/message/yhshyvyunddb5ngt
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1087442 13f79535-47bb-0310-9956-
ffa450edef68
return this.isWrapperFor((Class<?>)args[0]);
}
try {
- return method.invoke(connection.getConnection(),args);
+ PooledConnection poolc = connection;
+ if (poolc!=null) {
+ return method.invoke(poolc.getConnection(),args);
+ } else {
+ throw new SQLException("Connection has already been closed.");
+ }
}catch (Throwable t) {
if (t instanceof InvocationTargetException) {
InvocationTargetException it = (InvocationTargetException)t;