[ATL] Transformation crashes on saving [message #536722] |
Sun, 30 May 2010 10:25 |
Marten Sijtema Messages: 67 Registered: November 2009 |
Member |
|
|
Hello,
In building a Higher-order Transformation which compiles an extended ATL model (let's call it ATL') to a normal ATL model, I am having a strange error. I basically know what line of code in my ATL' file triggers it, but I do not know what is wrong with it. Since the semantics is quite complex to explain, I just post the error I get.
Hopefully someone knows in which direction to look. I do not even know what the error means. So I need a starting point. If necessary, I will post more details about my HOT in a later reply.
java.lang.ClassCastException: java.lang.String cannot be cast to org.eclipse.emf.ecore.util.FeatureMap
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eURIFragmentSegment(BasicEObjectImpl.java:294)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.getURIFragment(ResourceImpl.java:678)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.getURIFragment(XMLResourceImpl.java:423)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getURIFragment(XMLHelperImpl.java:718)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelperImpl.java:814)
at org.eclipse.emf.ecore.xmi.impl.XMLHelperImpl.getHREF(XMLHelperImpl.java:803)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveEObjectSingle(XMLSaveImpl.java:1847)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveFeatures(XMLSaveImpl.java:1291)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.saveElementID(XMLSaveImpl.java:2667)
at org.eclipse.emf.ecore.xmi.impl.XMISaveImpl.writeTopObjects(XMISaveImpl.java:90)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.traverse(XMLSaveImpl.java:592)
at org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.save(XMLSaveImpl.java:256)
at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doSave(XMLResourceImpl.java:206)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1406)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:993)
at org.eclipse.m2m.atl.drivers.emf4atl.EMFModelLoader.realSave(EMFModelLoader.java:354)
at org.eclipse.m2m.atl.engine.vm.ModelLoader.save(ModelLoader.java:232)
at org.eclipse.m2m.atl.core.ui.vm.asm.ASMExtractor.extract(ASMExtractor.java:52)
at org.eclipse.m2m.atl.core.service.LauncherService.launch(LauncherService.java:140)
at org.eclipse.m2m.atl.core.ui.launch.AtlLaunchConfigurationDelegate.launch(AtlLaunchConfigurationDelegate.java:222)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
My company: Sytematic, building business software from models.
[Updated on: Sun, 30 May 2010 10:32] Report message to a moderator
|
|
|
|
[ATL][SOLVED] Transformation crashes on saving [message #536836 is a reply to message #536722] |
Mon, 31 May 2010 08:22 |
Marten Sijtema Messages: 67 Registered: November 2009 |
Member |
|
|
I solved it. It had to with a helper that didn't create a certain element, while it should. I don't know exactly why and such, but it is solved.
I think this NOT creating some elements caused 'dangling' elements. Now normally this at least compiles, but maybe not for all cases?
My company: Sytematic, building business software from models.
|
|
|
Powered by
FUDForum. Page generated in 0.02874 seconds