Feedback
Did this article resolve your question/issue?

   

Article

Exception "The server failed to resume the transaction" occurs when using explicit transactions with the JDBC SQL Server driver

« Go Back

Information

 
TitleException "The server failed to resume the transaction" occurs when using explicit transactions with the JDBC SQL Server driver
URL Name2813
Article Number000121280
EnvironmentProduct: Connect for JDBC SQL Server Driver
Version: All supported versions
OS: All supported platforms
Database: SQL Server
Application: Java
Question/Problem Description
Application calls a stored procedure that starts and commits a transaction, which is an explicit transaction.  When using the JDBC SQL Server driver, an exception occurs intermittently when executing the stored procedure.
Steps to Reproduce
Clarifying Information
Error Message[DataDirect][SQLServer JDBC Driver][SQLServer]The server failed to resume the transaction.
Defect Number
Enhancement Number
Cause
The JDBC SQL Server driver requires that a transaction descriptor provided by the server be included with each request.  With each new unit of work triggered by a commit or rollback, the current transaction descriptor changes and the driver must use the new one for all subsequent requests.  If the current transaction is ended by the stored procedure, the driver's transaction descriptor is stale and the next request it sends to the server will fail with the "failed to resume transaction" error.  Using the JDBC API to commit allows the driver to know that it needs to update its descriptor.
 
Resolution
Explicit transactions are not supported in stored procedures or SQL statements with the Connect for JDBC SQL Server driver.  Transactions should be managed only via the JDBC API method calls.
Workaround
Notes

Last Modified Date9/13/2015 3:58 AM
Attachment 
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.