Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » getting EMF model handler
getting EMF model handler [message #39704] Mon, 21 May 2007 13:37
Eclipse UserFriend
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)
Previous Topic:[ATL] How to construct a metamodel in KM3 from a DTD
Next Topic:References in iterative target model elements
Goto Forum:
  


Current Time: Fri Apr 26 17:46:58 GMT 2024

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

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

Back to the top