Skip to main content


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 21:37 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
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 22:11 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Fri Apr 26 01:40:14 GMT 2024

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

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

Back to the top