You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug Report: Connection proxy returned by unwrap() throws UndeclaredThrowableException instead of SQLException #8487
The InvocationHandler in ConnectionHolder40.getProxyObject doesn't unwrap InvocationTargetException:
returnmethod.invoke(actualObject, args);
As a result, every SQLException thrown by a method on the connection returned by unwrap(OracleConnection.class) (or any other vendor interface) arrives as an UndeclaredThrowableException, so catch (SQLException e) doesn't catch it.
This is the same bug as #216, which was fixed only in ProfiledConnectionWrapper40.
Activity