KB Article #182211

An object of type "com.cyclonecommerce.cachet.administration.Group" with oid "0" already exists in this context; another cannot be persisted.

Problem

After a successfully upgrade from 2.6UP2021-11 to 2.6UP2022-05, CN did not start due to FATAL error :

2022-07-05 08:39:12,602 - FATAL [Cluster Thread 90] (CycloneApp) - null
org.apache.openjpa.persistence.EntityExistsException: An object of type "com.cyclonecommerce.cachet.administration.Group" with oid "0" already exists in this context; another cannot be persisted.


Resolution

1. Replace the 0 id from GroupsOrRoles table with a valid Id (e.g 1)
2. Replace the id from linked tables with the same id 1. Linked tables are: UserGroups and GroupResources
3. Start B2Bi