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

Bug 366844

Summary: Packages are not automatically registered
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: minor    
Priority: P3    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Eike Stepper CLA 2011-12-15 12:39:41 EST
Cloned from: 361346: Packages are not automatically registered
https://bugs.eclipse.org/bugs/show_bug.cgi?id=361346

Build Identifier: 

When the method view.getRootResource() is invoked sometimes an exception is thrown because a metamodel is not registered.

(org.eclipse.emf.cdo.common.util.CDOException: Generated packages locally not available: CDOPackageUnit[id=http://www.eclipse.org/emf/CDO/Eresource/4.0.0, state=PROXY, type=UNKNOWN, originalType=NATIVE, timeStamp=2011-10-14 11:32:20.183])

The problem disappears registering manually the metamodel.

(see discussion starting with http://www.eclipse.org/forums/index.php/mv/msg/203918/651989/#msg_651989)

Reproducible: Sometimes

Steps to Reproduce:
1. Start the server
2. Insert an object using a metamodel of your choice 
3. From another program try to access the root of that resource
Comment 1 Eike Stepper CLA 2011-12-15 13:18:30 EST
commit ed9388a96b4c5bb9fecaf0e56fb4bf55418c7586
Comment 2 Eike Stepper CLA 2012-09-21 06:51:17 EDT
Closing.