Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Sphinx » Resolve Sphinx Model
Resolve Sphinx Model [message #1727536] Wed, 23 March 2016 15:10 Go to next message
Daniel K. is currently offline Daniel K.Friend
Messages: 11
Registered: May 2012
Junior Member
I have a general question regarding Sphinx.
We are currently relying on Sphinx and have changed our references and cross document references to a name based schema. Therefore we implemented an own ExtendedResourceAdapter and overwritten the getURI to add an own schema like abc:/#name...
Using the Sphinx editor we are able to create the model or using the EMF API.
Now we want to read in and process the model.
How can we resolve the model?
If we load all the corresponding resources and then try the EcoreUtil.resolveAll(resSet) we are getting the following exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: unknown protocol: abc
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(
	at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxyInResourceSet(
	at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxy(
	at org.eclipse.sphinx.emf.ecore.ExtendedEObjectImpl.eResolveProxy(
	at org.eclipse.emf.ecore.util.EcoreEList.resolveProxy(
	at org.eclipse.emf.ecore.util.EcoreEList.resolve(
	at org.eclipse.emf.ecore.util.EObjectResolvingEList.resolve(
	at org.eclipse.emf.common.util.BasicEList.get(
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(

Any idea what is missing here?


[Updated on: Thu, 24 March 2016 12:31]

Report message to a moderator

Re: Resolve Sphinx Model [message #1727916 is a reply to message #1727536] Tue, 29 March 2016 11:13 Go to previous message
Daniel K. is currently offline Daniel K.Friend
Messages: 11
Registered: May 2012
Junior Member
the problem seems to be solved.
It was an error in our code, which was using the standard EMF ResourceSet and not the ExtendedResourceSet provided by Sphinx.

Previous Topic:Same Editing domain for different model descriptor
Next Topic:selecting element in Sphinx editor and focusing it
Goto Forum:

Current Time: Tue Jun 18 02:31:27 GMT 2024

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

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

Back to the top