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?
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!
>