Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » EAST-ADL profile issues with stereotypes in Luna
EAST-ADL profile issues with stereotypes in Luna [message #1513123] Tue, 16 December 2014 08:35 Go to next message
Remco H is currently offline Remco HFriend
Messages: 4
Registered: December 2014
Junior Member
Last week I tried to make use of the EAST-ADL profile in papyrus, using Luna eclipse in combination with the latest version of Papyrus and the EAST-ADL component.

The first thing I tried is to create a new empty papyrus project and add a default model based on the EAST-ADL template. This result in the following problem:
"Repair Stereotypes"

When I try to repair the stereotypes automatically, eclipse gives me the following error message:
Quote:
Failed to repair stereotypes.
The class 'EAPackage' is not a valid classifier

java.lang.IllegalArgumentException: The class 'EAPackage' is not a valid classifier
at org.eclipse.papyrus.eastadl.infrastructure.elements.impl.ElementsFactoryImpl.create(ElementsFactoryImpl.java:93)
at org.eclipse.emf.ecore.util.EcoreUtil.create(EcoreUtil.java:3471)
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.createCopy(EcoreUtil.java:526)
at org.eclipse.uml2.uml.internal.operations.PackageOperations$StereotypeApplicationCopier.createCopy(PackageOperations.java:128)
at org.eclipse.papyrus.uml.modelrepair.internal.participants.StereotypeApplicationRepairParticipant$StereotypeApplicationRepairCopier.createCopy(StereotypeApplicationRepairParticipant.java:610)
at org.eclipse.emf.ecore.util.EcoreUtil$Copier.copy(EcoreUtil.java:471)
at org.eclipse.papyrus.uml.modelrepair.internal.participants.StereotypeApplicationRepairParticipant$StereotypeApplicationRepairCopier.copy(StereotypeApplicationRepairParticipant.java:325)
at org.eclipse.papyrus.uml.modelrepair.internal.participants.StereotypeApplicationRepairParticipant$StereotypeApplicationMigrator.migrate(StereotypeApplicationRepairParticipant.java:228)
at org.eclipse.papyrus.uml.modelrepair.internal.stereotypes.ApplyProfileAction.repair(ApplyProfileAction.java:87)
at org.eclipse.papyrus.uml.modelrepair.internal.stereotypes.ZombieStereotypesDescriptor.repair(ZombieStereotypesDescriptor.java:196)
at org.eclipse.papyrus.uml.modelrepair.ui.ZombieStereotypesDialog$MissingSchema.apply(ZombieStereotypesDialog.java:469)
at org.eclipse.papyrus.uml.modelrepair.ui.ZombieStereotypesDialog$2$1.run(ZombieStereotypesDialog.java:252)
at org.eclipse.papyrus.infra.core.utils.TransactionHelper$1.run(TransactionHelper.java:235)
at org.eclipse.emf.transaction.impl.PrivilegedRunnable.run(PrivilegedRunnable.java:87)
at org.eclipse.papyrus.infra.core.utils.TransactionHelper$2.run(TransactionHelper.java:251)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)


I get similar errors, when opening an already existing EAST-ADL model.

Does anyone get the same kind of errors and if so how did you resolve them?

[Updated on: Wed, 17 December 2014 10:20]

Report message to a moderator

Re: EAST-ADL profile issues with stereotypes in Luna [message #1547272 is a reply to message #1513123] Mon, 05 January 2015 10:26 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

Which version of Papyrus are you using? There has been a few fixes recently on this "Stereotype Repair" component, and I would expect it to work properly in the latest release (Papyrus SR1a from Dec. 16th; https://www.eclipse.org/forums/index.php/t/898829/ )

Regards,
Camille


Camille Letavernier
Re: EAST-ADL profile issues with stereotypes in Luna [message #1550821 is a reply to message #1547272] Wed, 07 January 2015 08:37 Go to previous messageGo to next message
Remco H is currently offline Remco HFriend
Messages: 4
Registered: December 2014
Junior Member
I am using a nightly build, which I just updated to the latest. However the problem still remains.

My Eclipse Luna instance has the following packages installed:
Eclipse Modeling Tools 4.4.1.20140925-1820 epp.package.modeling null
Papyrus East-ADL (Incubation) 1.0.1.v201501061551
Papyrus Extra Binaries and Sources (Incubation) 1.0.1.v201501061551
Papyrus Extra Feature (Incubation) 1.0.1.v201501061551
Papyrus Marte (Incubation) 1.0.1.v201501061551
Papyrus Marte properties (Incubation) 1.0.1.v201501061551
Papyrus Marte Textedit (Incubation) 1.0.1.v201501061551
Papyrus UML 1.0.1.v201501061526
Papyrus UML SDK 1.0.1.v201501061526
Re: EAST-ADL profile issues with stereotypes in Luna [message #1550870 is a reply to message #1550821] Wed, 07 January 2015 09:14 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
Hi,

Looking at the Infrastructure/Element package, the EastADL factory doesn't match the contents of the associated Package. It can only create Rationale and Realization, wheres the Package declares much more classes (Corresponding Stereotypes).

I suspect the profile has evolved and has not been properly regenerated, or something went wrong during the generation.

Camille


Camille Letavernier
Re: EAST-ADL profile issues with stereotypes in Luna [message #1552951 is a reply to message #1550870] Thu, 08 January 2015 12:13 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 246
Registered: March 2011
Location: Paris Saclay, France
Senior Member
The problem is tracked in the context of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=456997

Can you please update your Eclipse vesion and check, if the problem persists?
Re: EAST-ADL profile issues with stereotypes in Luna [message #1552988 is a reply to message #1552951] Thu, 08 January 2015 12:40 Go to previous messageGo to next message
Remco H is currently offline Remco HFriend
Messages: 4
Registered: December 2014
Junior Member
Nothing has changed, the error still remains.
Re: EAST-ADL profile issues with stereotypes in Luna [message #1553210 is a reply to message #1552988] Thu, 08 January 2015 15:11 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 926
Registered: February 2011
Senior Member
All the stereotypes from the Infrastructure.Elements Package are abstract, except Rationale and Relationship. Especially, EAPackage is abstract, so it can't be instantiated.

Is that expected? Is this an incompatible change from the previous version? It seems a little bit surprising that all these elements are abstract, but I'm not familiar with the EastADL profile...


Camille Letavernier
Re: EAST-ADL profile issues with stereotypes in Luna [message #1553338 is a reply to message #1552988] Thu, 08 January 2015 16:46 Go to previous messageGo to next message
Ansgar Radermacher is currently offline Ansgar RadermacherFriend
Messages: 246
Registered: March 2011
Location: Paris Saclay, France
Senior Member
I bascially regenerated the profile without a deeper analysis. I've done that now. The reason why the factory does not support EAPackage is that this stereotypes has become abstract with the 2.1.12 revision since it does not provide additional information. While this is contradictory with the currently language specification in which it is not abstract, I tend to leave it abstract since it is a redundand information.

Unfortunately, the EAST-ADL template applies the EAPackage stereotype. This is corrected now (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=449061)

This does not resolve the problem that the profile-application-repair mechanism will still fail on existing models with an exception if stereotypes can not be applied any more.
Re: EAST-ADL profile issues with stereotypes in Luna [message #1567194 is a reply to message #1553338] Fri, 16 January 2015 07:56 Go to previous message
Remco H is currently offline Remco HFriend
Messages: 4
Registered: December 2014
Junior Member
Thanks for the help.
Previous Topic:Problem when executing factorial example with eclipse luna
Next Topic:Not possible to show name of decision node
Goto Forum:
  


Current Time: Fri Aug 07 16:09:42 GMT 2020

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

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

Back to the top