VMware Cloud Community
kumrahul16
Contributor
Contributor

Catalog Service PUT requests fail with "optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException"

I'm trying to update an entitlement PUT /api/entitlements/{id} .

It goes through on the FIRST attempt and FAILS all SUCCESSIVE ATTEMPTS.

It's the same with other PUT API's of catalog-service

{

    "errors": [

        {

            "code": 50505,

            "source": null,

            "message": "System exception.",

            "systemMessage": "Object of class [com.vmware.vcac.catalog.domain.Entitlement] with identifier [6d751a75-2fcd-4b94-ab72-fc8615e40f8e]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.vmware.vcac.catalog.domain.Entitlement#6d751a75-2fcd-4b94-ab72-fc8615e40f8e]",

            "moreInfoUrl": null

        }

    ]

}

0 Kudos
1 Reply
xian_
Expert
Expert

Have you ever found a solution?

0 Kudos