Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » EvaluationException : Couldn't find operation(EvaluationException : Couldn't find operation 'packagedElements()' for org::eclipse::uml2::uml::internal::impl::PackageImpl)
EvaluationException : Couldn't find operation [message #676769] Mon, 06 June 2011 13:14 Go to next message
Olaf Bigalk is currently offline Olaf BigalkFriend
Messages: 155
Registered: July 2009
Location: Berlin
Senior Member
Hi,

I have trouble with loading the UML metamodel. I have an XPT file with the following import declaration:
«IMPORT org::eclipse::uml2::uml»


«DEFINE main (Package package) FOR Package-»
«LET this.packagedElements().typeSelect(Class) AS classList-»
...
«ENDLET-»
«ENDDEFINE»


When running the work flow I get the following error:
EvaluationException : Couldn't find operation 'packagedElements()' for org::eclipse::uml2::uml::internal::impl::PackageImpl.


The method packagedElements is declared in org::eclipse::uml2::uml::Package and is offered by the code completion.

The UML package is on the classpath.
Require-Bundle: org.eclipse.uml2.uml;bundle-version="3.1.2",
...


What did I wrong?
Re: EvaluationException : Couldn't find operation [message #676816 is a reply to message #676769] Mon, 06 June 2011 15:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14736
Registered: July 2009
Senior Member
Hi,

please verify that you are using JavaBeansMetamodel in both Workflow and UI as your template suggests.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: EvaluationException : Couldn't find operation [message #676817 is a reply to message #676769] Mon, 06 June 2011 15:59 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

Try this.packagedElement since there is a packagedElement Attribute.

Regards

Ed Willink

On 06/06/2011 14:14, Olaf Bigalk wrote:
> Hi,
>
> I have trouble with loading the UML metamodel. I have an XPT file with
> the following import declaration:
>
> «IMPORT org::eclipse::uml2::uml»
>
>
>
> «DEFINE main (Package package) FOR Package-»
> «LET this.packagedElements().typeSelect(Class) AS classList-»
> ..
> «ENDLET-»
> «ENDDEFINE»
>
>
> When running the work flow I get the following error:
>
> EvaluationException : Couldn't find operation 'packagedElements()' for
> org::eclipse::uml2::uml::internal::impl::PackageImpl.
>
>
> The method packagedElements is declared in
> org::eclipse::uml2::uml::Package and is offered by the code completion.
>
> The UML package is on the classpath.
>
> Require-Bundle: org.eclipse.uml2.uml;bundle-version="3.1.2",
> ..
>
>
> What did I wrong?
>
Previous Topic:[Acceleo] Class Cast Exception with UML Profiles
Next Topic:[Acceleo] creating something similar to a JET custom tag with acceleo
Goto Forum:
  


Current Time: Wed Dec 11 18:03:55 GMT 2024

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

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

Back to the top