Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » MetaModelServiceRegistry initialization failed(Unable to resolve proxies)
MetaModelServiceRegistry initialization failed [message #1810300] Wed, 07 August 2019 06:58 Go to next message
Anisha George is currently offline Anisha GeorgeFriend
Messages: 1
Registered: August 2019
Junior Member
Hi,

I am working on a standalone java application , where i have a xml file (autosar xml-arxml) that references another definition xml file(arxml). But I am unable to resolve the references to the definition file because of proxy resolving issues.

I am currently working on Sphinx 0.11 . The code seems to run fine with Sphinx 0.9, This is how i have initialized my resource set. Please let me know if there is any additional configuration required for this version.

resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("arxml", new Autosar40ResourceFactoryImpl());
MetaModelDescriptorRegistry.INSTANCE.addDescriptor(Autosar40ReleaseDescriptor.INSTANCE);

Stacktrace:


Exception in thread "main" java.lang.ExceptionInInitializerError
at org.eclipse.sphinx.emf.metamodel.services.DefaultMetaModelServiceProvider.getService(DefaultMetaModelServiceProvider.java:29)
at org.eclipse.sphinx.emf.resource.ExtendedResourceSetImpl.getProxyResolverService(ExtendedResourceSetImpl.java:803)
at org.eclipse.sphinx.emf.resource.ExtendedResourceSetImpl.getEObject(ExtendedResourceSetImpl.java:438)
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxyInResourceSet(ProxyResolutionBehavior.java:61)
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxy(ProxyResolutionBehavior.java:47)
at org.eclipse.sphinx.emf.ecore.ExtendedMinimalEObjectImpl.eResolveProxy(ExtendedMinimalEObjectImpl.java:28)



Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:88)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:76)
at org.eclipse.sphinx.emf.metamodel.services.MetaModelServiceRegistry.<init>(MetaModelServiceRegistry.java:60)
at org.eclipse.sphinx.emf.metamodel.services.MetaModelServiceRegistry.<clinit>(MetaModelServiceRegistry.java:50)
Re: MetaModelServiceRegistry initialization failed [message #1810501 is a reply to message #1810300] Mon, 12 August 2019 19:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30691
Registered: July 2009
Senior Member
Better to ask on the Sphinx forum:

https://www.eclipse.org/forums/index.php?t=thread&frm_id=171
Previous Topic:EMF eCore .diagram files are not saved in EMF Compare API
Next Topic:Modeling Symposium @ EclipseCon Europe 2019
Goto Forum:
  


Current Time: Thu Dec 12 05:51:00 GMT 2019

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

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

Back to the top