Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Problem with Stereotype application(Problem with Stereotype application)
Problem with Stereotype application [message #1097191] Thu, 29 August 2013 10:57 Go to next message
saadia dhouib is currently offline saadia dhouib
Messages: 36
Registered: April 2010
Member
I am trying to applay a stereotype in a qvto transformation, but the the method applystereotype does not do anything.

I am using 3.3.0 version of QVTO on Kepler:
QVT Operational SDK 3.3.0.v20130521-0837

This is the code of the transformation:
modeltype UML uses uml('http://www.eclipse.org/uml2/4.0.0/UML');

transformation MarteTransformation(in MarteProfile : UML, out model : UML);

main() {
	var prof : Profile := MarteProfile.objectsOfType(Profile)![name = "GCM"];
	var stereo : Stereotype = MarteProfile.objectsOfType(Stereotype)![name = "FlowProperty"];
	log("profile: ", prof);
	log("stereo: ", stereo);
	assert fatal (prof = stereo.profile);
	
	var model : Model := object Model {name := 'model'};
	var cls : Class := object Class {name := 'class'};
	model.ownedType += cls;
	var prop : Property := object Port {name := 'prop'};
	log("list of applicable stereotype:");
	prop.getApplicableStereotypes()-> forEach(stereotype){
		log("applicable stereotype:", stereotype.name);
	};
	cls.ownedAttribute += prop;

	model.applyProfile(stereo.profile);
	prop.applyStereotype(stereo);
	log ("this is the applied stereotype: ",prop.getAppliedStereotype("FlowProperty"));

}



And this is the console displayed messages:
profile: , data: org.eclipse.uml2.uml.internal.impl.ProfileImpl@1add57d9 (name: GCM, visibility: <unset>) (URI: null)
stereo: , data: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@7d0d936b (name: FlowProperty, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)
list of applicable stereotype:
this is the applied stereotype:

Re: Problem with Stereotype application [message #1097832 is a reply to message #1097191] Fri, 30 August 2013 08:08 Go to previous messageGo to next message
saadia dhouib is currently offline saadia dhouib
Messages: 36
Registered: April 2010
Member
This is the generated file. Neither profile nor stereotype are applied.
<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_pPV4YBCcEeOKTpgWzFITYQ" name="model">
  <packagedElement xmi:type="uml:Class" xmi:id="_pPWfcBCcEeOKTpgWzFITYQ" name="class">
    <ownedAttribute xmi:type="uml:Port" xmi:id="_pPWfcRCcEeOKTpgWzFITYQ" name="prop"/>
  </packagedElement>
</uml:Model>
Re: Problem with Stereotype application [message #1097857 is a reply to message #1097191] Fri, 30 August 2013 08:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4093
Registered: July 2009
Senior Member
Hi

When stuck and no one can help, the debugger is your friend.
- did the stereotype really get applied?
- was it applied to the right object?
- was the right object saved to XMI?
- did the serialization corrupt the sterotype?

My understanding of QVTo stereotypes is very limited. Deep within the
specification 8.4.3 (3) is a * operator. I don't know whether this is
relevant to your problem or not.

Regards

Ed Willink






On 29/08/2013 11:57, saadia dhouib wrote:
> I am trying to applay a stereotype in a qvto transformation, but the
> the method applystereotype does not do anything.
>
> I am using 3.3.0 version of QVTO on Kepler:
> QVT Operational SDK 3.3.0.v20130521-0837
>
> This is the code of the transformation:
> modeltype UML uses uml('http://www.eclipse.org/uml2/4.0.0/UML');
>
> transformation MarteTransformation(in MarteProfile : UML, out model :
> UML);
>
> main() {
> var prof : Profile := MarteProfile.objectsOfType(Profile)![name =
> "GCM"];
> var stereo : Stereotype =
> MarteProfile.objectsOfType(Stereotype)![name = "FlowProperty"];
> log("profile: ", prof);
> log("stereo: ", stereo);
> assert fatal (prof = stereo.profile);
>
> var model : Model := object Model {name := 'model'};
> var cls : Class := object Class {name := 'class'};
> model.ownedType += cls;
> var prop : Property := object Port {name := 'prop'};
> log("list of applicable stereotype:");
> prop.getApplicableStereotypes()-> forEach(stereotype){
> log("applicable stereotype:", stereotype.name);
> };
> cls.ownedAttribute += prop;
>
> model.applyProfile(stereo.profile);
> prop.applyStereotype(stereo);
> log ("this is the applied stereotype:
> ",prop.getAppliedStereotype("FlowProperty"));
>
> }
>
>
>
> And this is the console displayed messages:
> profile: , data:
> mailto:org.eclipse.uml2.uml.internal.impl.ProfileImpl@1add57d9 (name:
> GCM, visibility: <unset>) (URI: null)
> stereo: , data:
> mailto:org.eclipse.uml2.uml.internal.impl.StereotypeImpl@7d0d936b
> (name: FlowProperty, visibility: <unset>) (isLeaf: false, isAbstract:
> false, isFinalSpecialization: false) (isActive: false)
> list of applicable stereotype:
> this is the applied stereotype:
>
Re: Problem with Stereotype application [message #1099843 is a reply to message #1097857] Mon, 02 September 2013 09:44 Go to previous messageGo to next message
saadia dhouib is currently offline saadia dhouib
Messages: 36
Registered: April 2010
Member
When debugging, I have this list of errors:

!ENTRY org.eclipse.ocl 4 10 2013-09-02 11:41:45.426
!MESSAGE ERROR in (calloperation): (null)
!STACK 0
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:204)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:181)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:261)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:682)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:635)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitOperationCallExp(EvaluationVisitorDecorator.java:269)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitOperationCallExp(QvtGenericEvaluationVisitor.java:265)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationBody(QvtOperationalEvaluationVisitorImpl.java:1029)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitEntryOperation(QvtOperationalEvaluationVisitorImpl.java:479)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitEntryOperation(QvtGenericEvaluationVisitor.java:485)
at org.eclipse.m2m.internal.qvt.oml.expressions.impl.EntryOperationImpl.accept(EntryOperationImpl.java:67)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.executeImperativeOperation(QvtOperationalEvaluationVisitorImpl.java:1647)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.runMainEntry(QvtOperationalEvaluationVisitorImpl.java:2190)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl$1.invoke(QvtOperationalEvaluationVisitorImpl.java:965)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitTransformation(QvtOperationalEvaluationVisitorImpl.java:939)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.execute(QvtOperationalEvaluationVisitorImpl.java:776)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTODebugEvaluator$DebugInterceptor.execute(QVTODebugEvaluator.java:495)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.doExecute(InternalTransformationExecutor.java:203)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.execute(InternalTransformationExecutor.java:178)
at org.eclipse.m2m.internal.qvt.oml.TransformationRunner.execute(TransformationRunner.java:170)
at org.eclipse.m2m.qvt.oml.debug.core.app.DebugTransformationRunner$2.execute(DebugTransformationRunner.java:109)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.execute(QVTOVirtualMachine.java:262)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.access$11(QVTOVirtualMachine.java:259)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine$1.run(QVTOVirtualMachine.java:249)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedClassVersionError: org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:196)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:620)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:224)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.emf.common.CommonPlugin$Implementation.loadClass(CommonPlugin.java:254)
at org.eclipse.emf.common.CommonPlugin.loadClass(CommonPlugin.java:96)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:271)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
at org.eclipse.uml2.uml.util.UMLUtil.getEPackage(UMLUtil.java:9127)
at org.eclipse.uml2.uml.internal.operations.ProfileOperations.getDefinition(ProfileOperations.java:292)
at org.eclipse.uml2.uml.internal.impl.ProfileImpl.getDefinition(ProfileImpl.java:378)
at org.eclipse.uml2.uml.internal.operations.PackageOperations.applyProfile(PackageOperations.java:605)
at org.eclipse.uml2.uml.internal.impl.PackageImpl.applyProfile(PackageImpl.java:1072)
... 36 more
Root exception:
java.lang.UnsupportedClassVersionError: org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:196)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:638)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:620)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:574)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:224)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
at org.eclipse.emf.common.CommonPlugin$Implementation.loadClass(CommonPlugin.java:254)
at org.eclipse.emf.common.CommonPlugin.loadClass(CommonPlugin.java:96)
at org.eclipse.emf.ecore.plugin.RegistryReader$EPackageDescriptor.getEPackage(RegistryReader.java:271)
at org.eclipse.emf.ecore.impl.EPackageRegistryImpl.getEPackage(EPackageRegistryImpl.java:127)
at org.eclipse.uml2.uml.util.UMLUtil.getEPackage(UMLUtil.java:9127)
at org.eclipse.uml2.uml.internal.operations.ProfileOperations.getDefinition(ProfileOperations.java:292)
at org.eclipse.uml2.uml.internal.impl.ProfileImpl.getDefinition(ProfileImpl.java:378)
at org.eclipse.uml2.uml.internal.operations.PackageOperations.applyProfile(PackageOperations.java:605)
at org.eclipse.uml2.uml.internal.impl.PackageImpl.applyProfile(PackageImpl.java:1072)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:204)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:181)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:261)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:682)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:635)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitOperationCallExp(EvaluationVisitorDecorator.java:269)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitOperationCallExp(QvtGenericEvaluationVisitor.java:265)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationBody(QvtOperationalEvaluationVisitorImpl.java:1029)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitEntryOperation(QvtOperationalEvaluationVisitorImpl.java:479)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitEntryOperation(QvtGenericEvaluationVisitor.java:485)
at org.eclipse.m2m.internal.qvt.oml.expressions.impl.EntryOperationImpl.accept(EntryOperationImpl.java:67)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.executeImperativeOperation(QvtOperationalEvaluationVisitorImpl.java:1647)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.runMainEntry(QvtOperationalEvaluationVisitorImpl.java:2190)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl$1.invoke(QvtOperationalEvaluationVisitorImpl.java:965)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitTransformation(QvtOperationalEvaluationVisitorImpl.java:939)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.execute(QvtOperationalEvaluationVisitorImpl.java:776)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTODebugEvaluator$DebugInterceptor.execute(QVTODebugEvaluator.java:495)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.doExecute(InternalTransformationExecutor.java:203)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.execute(InternalTransformationExecutor.java:178)
at org.eclipse.m2m.internal.qvt.oml.TransformationRunner.execute(TransformationRunner.java:170)
at org.eclipse.m2m.qvt.oml.debug.core.app.DebugTransformationRunner$2.execute(DebugTransformationRunner.java:109)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.execute(QVTOVirtualMachine.java:262)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.access$11(QVTOVirtualMachine.java:259)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine$1.run(QVTOVirtualMachine.java:249)
at java.lang.Thread.run(Unknown Source)

!ENTRY org.eclipse.ocl 4 10 2013-09-02 11:41:45.440
!MESSAGE ERROR in (calloperation): (null)
!STACK 0
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:204)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:181)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:261)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:682)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:635)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitOperationCallExp(EvaluationVisitorDecorator.java:269)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitOperationCallExp(QvtGenericEvaluationVisitor.java:265)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationBody(QvtOperationalEvaluationVisitorImpl.java:1029)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitEntryOperation(QvtOperationalEvaluationVisitorImpl.java:479)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitEntryOperation(QvtGenericEvaluationVisitor.java:485)
at org.eclipse.m2m.internal.qvt.oml.expressions.impl.EntryOperationImpl.accept(EntryOperationImpl.java:67)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.executeImperativeOperation(QvtOperationalEvaluationVisitorImpl.java:1647)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.runMainEntry(QvtOperationalEvaluationVisitorImpl.java:2190)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl$1.invoke(QvtOperationalEvaluationVisitorImpl.java:965)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitTransformation(QvtOperationalEvaluationVisitorImpl.java:939)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.execute(QvtOperationalEvaluationVisitorImpl.java:776)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTODebugEvaluator$DebugInterceptor.execute(QVTODebugEvaluator.java:495)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.doExecute(InternalTransformationExecutor.java:203)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.execute(InternalTransformationExecutor.java:178)
at org.eclipse.m2m.internal.qvt.oml.TransformationRunner.execute(TransformationRunner.java:170)
at org.eclipse.m2m.qvt.oml.debug.core.app.DebugTransformationRunner$2.execute(DebugTransformationRunner.java:109)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.execute(QVTOVirtualMachine.java:262)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.access$11(QVTOVirtualMachine.java:259)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine$1.run(QVTOVirtualMachine.java:249)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@41ba156c (name: FlowProperty, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)
at org.eclipse.uml2.uml.internal.operations.ElementOperations.applyStereotype(ElementOperations.java:1413)
at org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereotype(ElementImpl.java:510)
... 36 more
Root exception:
java.lang.IllegalArgumentException: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@41ba156c (name: FlowProperty, visibility: <unset>) (isLeaf: false, isAbstract: false, isFinalSpecialization: false) (isActive: false)
at org.eclipse.uml2.uml.internal.operations.ElementOperations.applyStereotype(ElementOperations.java:1413)
at org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereotype(ElementImpl.java:510)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:204)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.AbstractEvaluationEnvironment.callOperation(AbstractEvaluationEnvironment.java:181)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:165)
at org.eclipse.m2m.internal.qvt.oml.ast.env.QvtOperationalEvaluationEnv.callOperation(QvtOperationalEvaluationEnv.java:163)
at org.eclipse.ocl.ecore.EcoreEvaluationEnvironment.callOperation(EcoreEvaluationEnvironment.java:1)
at org.eclipse.ocl.EvaluationVisitorImpl.visitOperationCallExp(EvaluationVisitorImpl.java:261)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:682)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationCallExp(QvtOperationalEvaluationVisitorImpl.java:635)
at org.eclipse.ocl.EvaluationVisitorDecorator.visitOperationCallExp(EvaluationVisitorDecorator.java:269)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitOperationCallExp(QvtGenericEvaluationVisitor.java:265)
at org.eclipse.ocl.ecore.impl.OperationCallExpImpl.accept(OperationCallExpImpl.java:390)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitOperationBody(QvtOperationalEvaluationVisitorImpl.java:1029)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitEntryOperation(QvtOperationalEvaluationVisitorImpl.java:479)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitEntryOperation(QvtGenericEvaluationVisitor.java:485)
at org.eclipse.m2m.internal.qvt.oml.expressions.impl.EntryOperationImpl.accept(EntryOperationImpl.java:67)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.executeImperativeOperation(QvtOperationalEvaluationVisitorImpl.java:1647)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.runMainEntry(QvtOperationalEvaluationVisitorImpl.java:2190)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl$1.invoke(QvtOperationalEvaluationVisitorImpl.java:965)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.doVisitTransformation(QvtOperationalEvaluationVisitorImpl.java:939)
at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.execute(QvtOperationalEvaluationVisitorImpl.java:776)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTODebugEvaluator$DebugInterceptor.execute(QVTODebugEvaluator.java:495)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.doExecute(InternalTransformationExecutor.java:203)
at org.eclipse.m2m.internal.qvt.oml.InternalTransformationExecutor.execute(InternalTransformationExecutor.java:178)
at org.eclipse.m2m.internal.qvt.oml.TransformationRunner.execute(TransformationRunner.java:170)
at org.eclipse.m2m.qvt.oml.debug.core.app.DebugTransformationRunner$2.execute(DebugTransformationRunner.java:109)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.execute(QVTOVirtualMachine.java:262)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine.access$11(QVTOVirtualMachine.java:259)
at org.eclipse.m2m.qvt.oml.debug.core.vm.QVTOVirtualMachine$1.run(QVTOVirtualMachine.java:249)
at java.lang.Thread.run(Unknown Source)
Re: Problem with Stereotype application [message #1099854 is a reply to message #1099843] Mon, 02 September 2013 09:59 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4093
Registered: July 2009
Senior Member
Hi

On 02/09/2013 10:44, saadia dhouib wrote:
> Caused by: java.lang.UnsupportedClassVersionError:
> org/eclipse/papyrus/MARTE/MARTE_DesignModel/GCM/GCMPackage :
> Unsupported major.minor version 51.0

I'm puzzled by the numbers but not by the error. You clearly have a
mismatch of installed versions.

Make sure you have done at least two clean and rebuild alls since your
last configuration change.

Make sure everything you use comes from the same Eclipse release cycle.

If using recent releases see if eliminating Java 5 from all class paths
helps.

Regards

Ed Willink
Previous Topic:Ideas for higher-order in QVTo
Next Topic:Retrivieving stereotypes tagged values
Goto Forum:
  


Current Time: Wed Oct 22 23:59:45 GMT 2014

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

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