Dear All,
I would like to report an issue on sphinx :
Issue :
use case : Load a model with ARTOP 4.4.0 in standalone mode.
Sphinx Versions : 0.8.1, 0.9.0 M4 and M5
Hardware : Win 7 / 64
Observed Behaviour:
NullPointerException. See below for stack trace.
By "standalone mode" I mean Java with no OSGi and no Eclipse headless/workbench/workspace.
It's desirable to support standalone mode because its is significantly lower compared to launching OSGi/EclipseHeadless. This is valuable for JUnit tests and console applications, such as transformers, generators and compilers.
-----------------------------
java.lang.ExceptionInInitializerError
at org.eclipse.sphinx.emf.model.ModelDescriptorRegistry.internalAddModel(ModelDescriptorRegistry.java:148)
at org.eclipse.sphinx.emf.model.ModelDescriptorRegistry.getModel(ModelDescriptorRegistry.java:319)
at org.eclipse.sphinx.emf.resource.ScopingResourceSetImpl.getContextResourceScopes(ScopingResourceSetImpl.java:258)
at org.eclipse.sphinx.emf.resource.ScopingResourceSetImpl.getResourcesInScope(ScopingResourceSetImpl.java:149)
at org.eclipse.sphinx.emf.resource.ScopingResourceSetImpl.getResourcesInScope(ScopingResourceSetImpl.java:121)
at org.eclipse.sphinx.emf.resource.ScopingResourceSetImpl.getEObject(ScopingResourceSetImpl.java:322)
at org.eclipse.sphinx.emf.resource.ExtendedResourceSetImpl.getEObject(ExtendedResourceSetImpl.java:479)
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxyInResourceSet(ProxyResolutionBehavior.java:59)
at org.eclipse.sphinx.emf.ecore.proxymanagement.ProxyResolutionBehavior.eResolveProxy(ProxyResolutionBehavior.java:45)
at org.eclipse.sphinx.emf.ecore.ExtendedMinimalEObjectImpl.eResolveProxy(ExtendedMinimalEObjectImpl.java:28)
at org.eclipse.emf.ecore.util.EcoreEList.resolveProxy(EcoreEList.java:206)
at org.eclipse.emf.ecore.util.EcoreEList.resolve(EcoreEList.java:161)
at org.artop.aal.common.util.EObjectResolvingReferringEList.resolve(EObjectResolvingReferringEList.java:171)
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:435)
at org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl.next(EContentsEList.java:559)
at org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(EcoreUtil.java:303)
at org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(EcoreUtil.java:297)
...
Caused by: java.lang.NullPointerException
at org.eclipse.sphinx.emf.scoping.ResourceScopeProviderRegistry.readContributedResourceScopeProviders(ResourceScopeProviderRegistry.java:69)
at org.eclipse.sphinx.emf.scoping.ResourceScopeProviderRegistry.<init>(ResourceScopeProviderRegistry.java:63)
at org.eclipse.sphinx.emf.scoping.ResourceScopeProviderRegistry.<clinit>(ResourceScopeProviderRegistry.java:43)
... 52 more
-----------------------------
Has anyone successfully managed to do what I'm trying to do?
Thanks in advance
Gilles