Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Typecast problem
Typecast problem [message #558595] Mon, 13 September 2010 15:46
Alexey is currently offline AlexeyFriend
Messages: 61
Registered: January 2010
Member
Hello!

I get this message:

org.eclipse.m2m.atl.engine.emfvm.VMException: java.lang.String cannot be cast to org.eclipse.emf.ecore.InternalEObject

after I try to run this code:


rule Artifact2Element {
	from 
	s: ISyFMU!Artifact
	to
	t: XML!Element 
	(
	name<-'artifact',
	children<-Sequence{s.identifier}
	
	)
}


It is the s.identifier, which is string, so he is the reason of the message.

Does anybody know, how to avoid this err. message?

Thanks!

Alexey

[Updated on: Mon, 13 September 2010 15:59]

Report message to a moderator

Previous Topic:QVTd and EGL
Next Topic:Transformation between UML profiles
Goto Forum:
  


Current Time: Sun Aug 25 09:53:00 GMT 2019

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

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

Back to the top