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
JDBI 3 - Handle.close() throws Failed to clear transaction status on close error #2065
Comments
Hi @lohitpradhan, Thank you for filing an issue with the JDBI project. We appreciate any feedback! To be able to investigate this further, please provide
It is very difficult for us to investigate any problems if we do not know what setup and versions you are using. |
version of JDBI that you are using : v3
version of the tomcat pool library:
version of the oracle driver :
any settings that you have within the tomcat connection pool or the driver:
|
Ensure that the handle will tolerate a closed connection when close() is called. If the database connection gets closed between the last operation finishing successfully and the handle being closed, checking the autocommit status will cause an exception to be thrown that is user-visible but not actionable. Check the connection state before executing any operation on the database connection. Fixes jdbi#2065
Check connection status in handle.close() Ensure that the handle will tolerate a closed connection when close() is called. If the database connection gets closed between the last operation finishing successfully and the handle being closed, checking the autocommit status will cause an exception to be thrown that is user-visible but not actionable. Check the connection state before executing any operation on the database connection. Fixes #2065
Thanks for this change, it really helps a lot. can you please let me know the release version which has this change ? |
@hgschmie may i know how to uptake these changes or which version should i use ? |
We use jdbi api in our drop wizard based application which internally uses tomcat connection pool for db operations.
Below code snippet is used to delete user from our oracle database.
The above code throws an error -
Please suggest a way of working with this code. Thanks
The text was updated successfully, but these errors were encountered: