Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Error to get sendEvent or receiveEvent value from UML sequence
Error to get sendEvent or receiveEvent value from UML sequence [message #870502] Tue, 08 May 2012 13:09 Go to next message
Fernanda R.F. is currently offline Fernanda R.F.
Messages: 64
Registered: May 2012
Member
Hi,

I'm getting the follow error when I'm trying to read a UML file into ATL code:

org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class org.eclipse.emf.ecore.impl.DynamicEObjectImpl' must be of type 'class java.lang.String'

I've a UML sequence diagram as Input and it will generate a new UML file, however this error is appearing when I try to get the covered, or sendEvent, or receiveEvent or represents value from UML.

One rule is it:

rule msg {

from
y: UML!Message

to
w: input!mensagem (
name <- y.name,
sender <- y.sendEvent

)
}


I can get the name from tag "message" from UML (xmi) file.

Thanks in advance
Re: Error to get sendEvent or receiveEvent value from UML sequence [message #870722 is a reply to message #870502] Wed, 09 May 2012 12:42 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 805
Registered: July 2009
Senior Member
Hi,

For specific help about working with ATL, you should probably ask on
that project's newsgroup.

It appears that somehow your UML model is not loading correctly, not
finding the UML package and so perhaps inferring a schema that creates
dynamic EObjects for content that should be String-valued properties?

Best to ask the ATL experts how to configure the transformation
environment to find all of the required metadata.

Cheers,

Christian

On 2012-05-08 13:09:31 +0000, Fernanda R.F. said:

> Hi,
>
> I'm getting the follow error when I'm trying to read a UML file into ATL code:
>
> org.eclipse.m2m.atl.engine.emfvm.VMException: The value of type 'class
> org.eclipse.emf.ecore.impl.DynamicEObjectImpl' must be of type 'class
> java.lang.String'
>
> I've a UML sequence diagram as Input and it will generate a new UML
> file, however this error is appearing when I try to get the covered, or
> sendEvent, or receiveEvent or represents value from UML.
>
> One rule is it:
>
> rule msg {
>
> from
> y: UML!Message
>
> to
> w: input!mensagem (
> name <- y.name,
> sender <- y.sendEvent
>
> )
> }
>
>
> I can get the name from tag "message" from UML (xmi) file.
>
> Thanks in advance
Re: Error to get sendEvent or receiveEvent value from UML sequence [message #870786 is a reply to message #870722] Wed, 09 May 2012 16:37 Go to previous message
Fernanda R.F. is currently offline Fernanda R.F.
Messages: 64
Registered: May 2012
Member

Thanks for the help!

I wrote the same question there, into ATL forum, but nobody answered yet.

Thanks,
Fernanda
Previous Topic:Transform UML2XSD
Next Topic:How to get the root Model from XMI file exported by Enterprise Architect
Goto Forum:
  


Current Time: Thu Oct 30 12:33:20 GMT 2014

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

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