[#7641] java.lang.NoSuchMethodException when calling createARRAY on JBoss WrappedConnectionJDK8
This commit is contained in:
parent
d7cbbee8fe
commit
4c7d404016
@ -318,6 +318,7 @@ class DefaultExecuteContext implements ExecuteContext {
|
||||
* <ul>
|
||||
* <li><code>org.springframework.jdbc.datasource.ConnectionProxy</code></li>
|
||||
* <li><code>org.apache.commons.dbcp.DelegatingConnection</code></li>
|
||||
* <li><code>org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8</code></li>
|
||||
* <li>...</li>
|
||||
* </ul>
|
||||
* <p>
|
||||
@ -379,6 +380,16 @@ class DefaultExecuteContext implements ExecuteContext {
|
||||
}
|
||||
catch (ReflectException ignore) {}
|
||||
|
||||
// [#7641] Unwrap nested org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8
|
||||
try {
|
||||
Connection r = Reflect.on(result).call("getUnderlyingConnection").get();
|
||||
if (result != r && r != null) {
|
||||
result = r;
|
||||
continue unwrappingLoop;
|
||||
}
|
||||
}
|
||||
catch (ReflectException ignore) {}
|
||||
|
||||
// No unwrapping method was found.
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user