Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Property::CompatibleInitialiser' constraint is not satisfied
Property::CompatibleInitialiser' constraint is not satisfied [message #1008140] Sun, 10 February 2013 16:37 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

i am creating Pivot model in a standalone application. I am instantiating model at run time and using Pivot delegates for evaluation. When i try to evaluate then i get following exception

org.eclipse.ocl.common.internal.delegate.OCLDelegateException: 'Property::CompatibleInitialiser' constraint is not satisfied for 'Property test'
at org.eclipse.ocl.examples.pivot.delegate.AbstractDelegatedBehavior.validate(AbstractDelegatedBehavior.java:240)
at org.eclipse.ocl.examples.pivot.delegate.OCLSettingDelegate.get(OCLSettingDelegate.java:66)
at org.eclipse.emf.ecore.util.BasicSettingDelegate$Stateless.dynamicGet(BasicSettingDelegate.java:185)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1027)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)

do you have any idea why this is exception is occurring?

thanks!
Re: Property::CompatibleInitialiser' constraint is not satisfied [message #1008266 is a reply to message #1008140] Sun, 10 February 2013 17:11 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4006
Registered: July 2009
Senior Member
Hi

As the message says, your OCL is rubbish. In particular your expression
has a "test" Property whose initializer is type-incompatible with the
Property declaration.

Regards

Ed Willink



On 10/02/2013 21:37, ModelGeek Mising name wrote:
> Hi,
>
> i am creating Pivot model in a standalone application. I am
> instantiating model at run time and using Pivot delegates for
> evaluation. When i try to evaluate then i get following exception
>
> org.eclipse.ocl.common.internal.delegate.OCLDelegateException:
> 'Property::CompatibleInitialiser' constraint is not satisfied for
> 'Property test'
> at
> org.eclipse.ocl.examples.pivot.delegate.AbstractDelegatedBehavior.validate(AbstractDelegatedBehavior.java:240)
> at
> org.eclipse.ocl.examples.pivot.delegate.OCLSettingDelegate.get(OCLSettingDelegate.java:66)
> at
> org.eclipse.emf.ecore.util.BasicSettingDelegate$Stateless.dynamicGet(BasicSettingDelegate.java:185)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1027)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1011)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1003)
>
> do you have any idea why this is exception is occurring?
>
> thanks!
>
Previous Topic:Getting rid of fully qualified type names in ocl expressions
Next Topic:[OCLinEcore] Import using metamodel URI
Goto Forum:
  


Current Time: Mon Jul 28 02:21:20 EDT 2014

Powered by FUDForum. Page generated in 0.02655 seconds