EAST-ADL profile issues with stereotypes in Luna [message #1513123] |
Tue, 16 December 2014 08:35 |
Eclipse User |
|
|
|
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] by Moderator Report message to a moderator
|
|
|
|
Re: EAST-ADL profile issues with stereotypes in Luna [message #1550821 is a reply to message #1547272] |
Wed, 07 January 2015 08:37 |
Eclipse User |
|
|
|
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 #1553338 is a reply to message #1552988] |
Thu, 08 January 2015 16:46 |
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03369 seconds