Resolve Sphinx Model [message #1727536] |
Wed, 23 March 2016 15:10 |
Daniel K. Messages: 11 Registered: May 2012 |
Junior Member |
|
|
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 12:31] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02864 seconds