SAP Knowledge Base Article - Preview

2251924 - Hibernate failing to update rows -- javax.persistence.OptimisticLockException Caused by: org.hibernate SDK for SAP ASE


  • Customer is upgrading from SAP ASE 15.5 to SAP ASE 15.7 and has encountered an issue with Hibernate. This scenario worked perfectly in Sybase 15.5.
  • Update fails with the following error:

javax.el.ELException: javax.persistence.OptimisticLockException Caused by: org.hibernate.StaleObjectStateException:
Row was updated or
deleted by another transaction (or unsaved-value mapping was incorrect)




  • SAP Adaptive Server Entreprise (ASE) 15.7 SP131
  • SAP jConnect (TM) for JDBC(TM) 7.07 SP130
  • Hibernate 3.6.10


SAP Adaptive Server Enterprise 15.7 ; Sybase Adaptive Server Enterprise 15.5 ; Sybase SDK 15.7


KBA , BC-SYB-SDK , SDK , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.