getting EMF model handler [message #39704] |
Mon, 21 May 2007 09:37 |
Eclipse User |
|
|
|
Originally posted by: MIMINNO.it.ibm.com
Hi all,
I have an error when trying to get the EMF ModelHandler (I'm using the
ATLTransformations class to launch a transformation programmatically):
emfamh = AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF);
The error is the following:
Exception in thread "main" java.lang.ExceptionInInitializerError
at
org.eclipse.emf.ecore.impl.EPackageImpl.eStaticClass(EPackag eImpl.java:218)
at org.eclipse.emf.ecore.impl.EObjectImpl.eClass(EObjectImpl.ja va:224)
at
org.eclipse.emf.ecore.impl.ENamedElementImpl.eContents(EName dElementImpl.java:232)
at
org.eclipse.emf.ecore.util.EcoreUtil$ProperContentIterator.<init >(EcoreUtil.java:1195)
at org.eclipse.emf.ecore.util.EcoreUtil$4.getChildren(EcoreUtil .java:1106)
at
org.eclipse.emf.ecore.util.EcoreUtil$ContentTreeIterator.has Next(EcoreUtil.java:1354)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.attached(Re sourceImpl.java:834)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl$ContentsELi st.inverseAdd(ResourceImpl.java:372)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(NotifyingListImpl.java:318)
at org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:6 26)
at
org.eclipse.emf.ecore.impl.EPackageImpl.createResource(EPack ageImpl.java:712)
at
org.eclipse.emf.ecore.impl.EcorePackageImpl.initializePackag eContents(EcorePackageImpl.java:2392)
at
org.eclipse.emf.ecore.impl.EcorePackageImpl.init(EcorePackag eImpl.java:492)
at org.eclipse.emf.ecore.EcorePackage.<clinit>(EcorePackage.java:63)
at
org.atl.engine.repositories.emf4atl.ASMEMFModel.createMOF(AS MEMFModel.java:405)
at
org.atl.eclipse.engine.AtlEMFModelHandler.<init>(AtlEMFModelHandler.java:89)
at
org.atl.eclipse.engine.AtlModelHandler.getDefault(AtlModelHa ndler.java:50)
at atl.ATLTransformations.initEMF(ATLTransformations.java:152)
at atl.ATLTransformations.<init>(ATLTransformations.java:98)
at atl.ATLTransformations.getATLTransformations(ATLTransformati ons.java:205)
at atl.ATLTransformations.main(ATLTransformations.java:606)
|
|
|
Powered by
FUDForum. Page generated in 0.03051 seconds