Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Transformation crashes on saving
[ATL] Transformation crashes on saving [message #536722] Sun, 30 May 2010 10:25 Go to next message
Marten Sijtema is currently offline Marten SijtemaFriend
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

Re: [ATL] Transformation crashes on saving [message #536826 is a reply to message #536722] Mon, 31 May 2010 07:57 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Quite strange as I don't think there are any FeatureMap in the ATL Metamodel.

Could you post the line concerned ?
[ATL][SOLVED] Transformation crashes on saving [message #536836 is a reply to message #536722] Mon, 31 May 2010 08:22 Go to previous message
Marten Sijtema is currently offline Marten SijtemaFriend
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.
Previous Topic:[ATL] How to extend in KM3 to two classes
Next Topic:[QVTO] Mapping not working
Goto Forum:
  


Current Time: Tue Dec 10 08:45:11 GMT 2024

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

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

Back to the top