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

Bug 439210

Summary: Sirius initialization fails when EMF Validation is evoked from a model processor (early start)
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: CoreAssignee: Maxime Porhel <maxime.porhel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: janreimone, maxime.porhel
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: PC   
OS: Windows 8   
Whiteboard:
Bug Depends on: 438808    
Bug Blocks:    

Description Maxime Porhel CLA 2014-07-09 05:53:19 EDT
+++ This bug was initially created as a clone of Bug #438808 +++

My Sirius version is 1.0.0.201406040902.

In my setting I use a model processor which is intended to load some EMF resources. Internally EMF validation is evoked for one of my models since it has some constraint providers registered. The problem is that Sirius has constraint providers registered, too (well, at least I assume this), which then is invoked as well. EMF validation for Sirius then fails with many exceptions. I post the stacktrace in another post because only 65535 characters can be posted ;) 
For reproduction I created a small example plugin project which simulates my own specific functionality at startup. It just registers a model processor which loads an e4xmi file (which doesn't contain any elements) and invokes EMF validation. Then the aformentioned exceptions are thrown. Find the example plugin attached to this report.
Comment 1 Maxime Porhel CLA 2014-07-09 06:00:59 EDT
See : https://git.eclipse.org/r/#/c/29654/
Comment 2 Maxime Porhel CLA 2014-07-09 10:33:01 EDT
Current identified correction has been reported in commit dc144a3e055a69baea7539a5c85c4ad7999d2e29
Comment 3 Maxime Porhel CLA 2014-07-16 06:05:20 EDT
The cloned issue has been closed without any additional correction. 

No additional correction for the current issue is required on master.
Comment 4 Pierre-Charles David CLA 2014-10-27 06:53:02 EDT
Available in Sirius 2.0.0.