Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319132 - NPE when using Legacy mode.
Summary: NPE when using Legacy mode.
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.legacy (show other bugs)
Version: 4.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Fluegge CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-07 10:15 EDT by Martin Fluegge CLA
Modified: 2012-06-19 07:08 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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