Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] IllegalArgumentException: Error, when applying a stereotype
[ATL] IllegalArgumentException: Error, when applying a stereotype [message #665144] Wed, 13 April 2011 12:53 Go to next message
Sally  is currently offline Sally Friend
Messages: 16
Registered: March 2011
Junior Member
Hi all,

When I'm trying to apply a UML profile and stereotype to a UML class diag. , the profile is correctly applied to the model, but I got this error for the stereotype.

org.eclipse.m2m.atl.engine.emfvm.VMException: Exception during invocation of operation applyStereotype on org.eclipse.uml2.uml.internal.impl.ClassImpl@18c26d7 (name: CustomerInterface, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false)
Caused by: java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@ed4b5a (name: variant, visibility: <unset>) (isLeaf: false, isAbstract: false) (isActive: false)at org.eclipse.uml2.uml.internal.operations.ElementOperations.a pplyStereotype( org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereoty pe(

The ATL file:
module transAppProfile2;
create OUT : UML from IN : UML, Pro : UML;

helper def : getStereotype(name : String) : UML!Stereotype =
UML!Stereotype.allInstancesFrom('Pro')->select(p | = name)->first();

rule Model {
s : UML!Model
t : UML!Model ( name <-
do {
t.applyProfile(UML!Profile.allInstancesFrom('Pro')->select(p|'ClassProject')- >first()); }
rule Class {
s : UML!Class
t : UML!Class (name <-
do {

I see in previous messages that this error is not new, but no one stated how it can be solved or why it's raised.

Does anyone know?


Re: [ATL] IllegalArgumentException: Error, when applying a stereotype [message #685577 is a reply to message #665144] Fri, 17 June 2011 19:43 Go to previous message
Lu  is currently offline Lu Friend
Messages: 4
Registered: December 2010
Junior Member
Hi Sally,
I had the same problem reported by you.
Do you solve the problem? How do you do that?

Thank you very much for your attention.

Yours sincerely,

Previous Topic:[ATL] Error: "Cannot overload Ecore"
Next Topic:ATL error
Goto Forum:

Current Time: Thu Feb 25 16:28:23 GMT 2021

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

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

Back to the top