New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataSourceUnwrapper calls Wrapper.isWrapperFor with a class rather than an interface causing Oracle UCP warnings #24154
Comments
Thanks for the report. Lines 76 to 83 in 602e629
It's not clear to me at the moment where you're seeing the exception. Is this a purely cosmetic problem as it's appearing in the logs or is it have an unwanted effect on functionality? |
You know what? it is cosmetic... Sorry! |
Thanks for the clarification. It may still be worth fixing even if it's only cosmetic. We'd need to be careful that we don't break anything with other wrappers that are less strict about the interface requirement. |
Spring Boot gets exception when using oracle ucp datasource and actuator.
This is because that "isWrapperFor" call specifically throws an exception if the class it's checking is not an interface. The HikariDataSource.class class is not an interface, so it explodes.
I am on spring boot 2.3.3.RELEASE, and using version 12.1.0.2.0 of oracle UCP, and it looks like the DataSourceUnwrapper for a hikaridatasource causes the following exception to be thrown when the underlying datasource is an oracle ucp datasource.
The text was updated successfully, but these errors were encountered: