-
Notifications
You must be signed in to change notification settings - Fork 426
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
Exception chaining doesn't work in JDBC driver #2115
Comments
hi @akley Thanks for bringing this to our attention, you are correct looks like this is currently not supported I have added this as an feature enhancement to be considered when we do planning for the next semester. I do notice our docs erroneously includes these unsupported APIs I will look into getting this updated, thanks. |
maybe it would be a good idea for you to take look to the jTDS implementation (https://jtds.sourceforge.net). There it is possible to handle chained exceptions. Best regards |
docs update merged |
getNextExcption() has been removed from the api doc, but the example still shows: "se = se.getNextException();" Cheers |
Hi @akley, Thanks for noticing this. We've corrected that as well. |
Hi Jeffery, do you already have an idea when you will deliver the missing implementation? Cheers |
As mentioned above we'll take a look at this during our semester planning, which is around Aug/Sep. We'll have a bit more of an idea of the time frame for this enhancement following that meeting. You can also submit a response to our survey which is also taken into consideration when planning for the upcoming semester. |
Any updates on this issue? |
@tkyc Thanks a lot! Hope this fixes the error. |
Driver Version
11.2.3.jre8, but it doesn't work with any version, wether JAVA or JAVA 11
SQL Server Version
Microsoft SQL Server 2019 (RTM-CU20) (KB5024276) - 15.0.4312.2 (X64) Apr 1 2023 12:10:46 Copyright (C) 2019 Microsoft Corporation Standard Edition (64-bit) on Windows Server 2022 Standard 10.0 (Build 20348: ) (Hypervisor)
Problem description
It seems like the getNextException() and setNextException() methods are not used in SQLServerException that extend SQLException .
When I inspect the raised exception, the property 'next' of SQLException is NULL
All other calls are working fine!
Btw: in SQL Management Studion, both exceptions are returned to the client, as I excpected.
p1.txt
p2.txt
Test_Chained_Exceptions.java.txt
It would help me a lot if you could give me an answer here. Thanks very much!
Best Regards
Alex
The text was updated successfully, but these errors were encountered: