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

Bug 319132

Summary: NPE when using Legacy mode.
Product: [Modeling] EMF Reporter: Martin Fluegge <martin.fluegge>
Component: cdo.legacyAssignee: Martin Fluegge <martin.fluegge>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: normal    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description Martin Fluegge CLA 2010-07-07 10:15:47 EDT
Cloned from: 310029: NPE when using Legacy mode.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=310029

Created an EObject and added it to the contents of a CDOResource and then committed the transaction.  Then created another transaction and retrieved the previous EObject. The NPE is thrown when attempting to set the value of an attribute on the retrieved EObject.  It looks like the eStore is NULL.

I've attached a set of projects to reproduce the problem.

To reproduce:

1) Start CDO Server.  The config file used is in com.ibm.almaden.mdht.cdo.example1/cdo-server.xml (using H2 database).  Launch configuration is in com.ibm.almaden.mdht.cdo.example1/CDOServer.product.launch

2) Run com.ibm.almaden.mdht.cdo.example1/Doit.java as a Java Application

3) the NPE is thrown.
Comment 1 Martin Fluegge CLA 2010-07-07 10:46:45 EDT
Patch v1 from Bug 310029 also works for HEAD.

Committed to HEAD.
Comment 2 Eike Stepper CLA 2011-06-23 03:42:20 EDT
Available in R20110608-1407