Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Feature not found.
Feature not found. [message #1801265] Wed, 16 January 2019 04:18 Go to next message
Arseniy Isakov is currently offline Arseniy IsakovFriend
Messages: 118
Registered: May 2012
Senior Member
Hello

I am using standalone epsilon 1.4.
After modification of my model ( I have removed attribute from a class) during model loading got following exception. :

 org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Feature 'artifactExecutionString' not found. 



to load modele I am using following code

	protected EmfModel createEmfModelByURI(String name, String model, String metamodel, boolean readOnLoad,
			boolean storeOnDisposal) throws EolModelLoadingException, URISyntaxException {
		EmfModel emfModel = new EmfModel();
		StringProperties properties = new StringProperties();
		properties.put(EmfModel.PROPERTY_NAME, name);
		properties.put(EmfModel.PROPERTY_METAMODEL_URI, metamodel);
		properties.put(EmfModel.PROPERTY_MODEL_URI, getFileURI(model).toString());
		properties.put(EmfModel.PROPERTY_READONLOAD, readOnLoad + "");
		properties.put(EmfModel.PROPERTY_STOREONDISPOSAL, storeOnDisposal + "");
		emfModel.load(properties, (IRelativePathResolver) null);
		return emfModel;
	}

How to configure loader to ignore this error
Thanks
Arseniy Isakov



[Updated on: Wed, 16 January 2019 04:25]

Report message to a moderator

Re: Feature not found. [message #1801291 is a reply to message #1801265] Wed, 16 January 2019 08:49 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

Hi Arseniy,

XMLResource's OPTION_RECORD_UNKNOWN_FEATURE [1] loading option should help here. You'll need to use the EMF API to load your model (resource) with this option and then wrap it in an InMemoryEmfModel [2] before passing it to Epsilon.

Cheers,
Dimitris

[1] https://download.eclipse.org/modeling/emf/emf/javadoc/2.4.2/org/eclipse/emf/ecore/xmi/XMLResource.html
[2] https://www.eclipse.org/epsilon/doc/articles/in-memory-emf-model/
Previous Topic:[EGX] using parameters to set template string
Next Topic:Problems with allInstances()
Goto Forum:
  


Current Time: Sat Apr 27 02:09:04 GMT 2024

Powered by FUDForum. Page generated in 0.01950 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top