MetaModelServiceRegistry initialization failed [message #1810300] |
Wed, 07 August 2019 02:58  |
Eclipse User |
|
|
|
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)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03218 seconds