Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333459

Summary: Client gets a duplicate OID error
Product: [Modeling] EMF Reporter: Jos Warmer <jos.warmer>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: critical    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: Other   
OS: other   
Whiteboard:
Attachments:
Description Flags
Patch v1 none

Description Jos Warmer CLA 2011-01-04 06:37:37 EST
Build Identifier: CDO 4.0, server side only

When multiple users are working on the same repository at a point in time they get an error message "lang.java.IllegalSateException duplicate ID CDOResource@OID4

Reproducible: Sometimes

Steps to Reproduce:
1.Only happens with CDO server running under AIXcannot reproduce when the CDO server runs on Windows
2.
3.
Comment 1 Eike Stepper CLA 2011-01-04 06:51:11 EST
I've prepared a patch for these things:
1) Ignore duplicate registration of identical object in AbstractCDOView.registerObject()
2) Add synchronization on AbstractCDOView.objects to CDOResourceImpl.load()
3) Better exception message
Comment 2 Eike Stepper CLA 2011-01-04 06:53:02 EST
Created attachment 185995 [details]
Patch v1

Note that this issue is almost impossible to reproduce predictably. Please reopen this bug if you see the exception again...
Comment 3 Eike Stepper CLA 2011-01-04 06:53:49 EST
Committed to HEAD
Comment 4 Eike Stepper CLA 2011-06-23 03:42:22 EDT
Available in R20110608-1407