Skip to main content



      Home
Home » Modeling » Sphinx » Resolve Sphinx Model
Resolve Sphinx Model [message #1727536] Wed, 23 March 2016 11:10 Go to next message
Eclipse UserFriend
Hi,
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: java.net.MalformedURLException: unknown protocol: abc
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:220)
	at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxyInResourceSet(ProxyResolutionBehavior.java:61)
	at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxy(ProxyResolutionBehavior.java:45)
	at org.eclipse.sphinx.emf.ecore.ExtendedEObjectImpl.eResolveProxy(ExtendedEObjectImpl.java:34)
	at org.eclipse.emf.ecore.util.EcoreEList.resolveProxy(EcoreEList.java:206)
	at org.eclipse.emf.ecore.util.EcoreEList.resolve(EcoreEList.java:161)
	at org.eclipse.emf.ecore.util.EObjectResolvingEList.resolve(EObjectResolvingEList.java:60)
	at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:348)
	at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.hasNext(EContentsEList.java:471)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:304)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:298)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:283)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:271)


Any idea what is missing here?

Regards
Daniel

[Updated on: Thu, 24 March 2016 08:31] by Moderator

Re: Resolve Sphinx Model [message #1727916 is a reply to message #1727536] Tue, 29 March 2016 07:13 Go to previous message
Eclipse UserFriend
Hi,
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.

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


Current Time: Sun Apr 27 20:11:38 EDT 2025

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

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

Back to the top