Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Some random errors
Some random errors [message #1706168] Mon, 24 August 2015 11:02 Go to next message
Eclipse UserFriend
Hi all,
I've been experimenting some random errors like this one:

"Severity Description Element Parent Type
Error The 'PropertyCallExp::NonStaticSourceTypeIsConformant' constraint
is violated for '1_.qualifiedName' <<FlowPort, MyPort>> <Port>
flowport2 RootElement::Element1 EMF Problem

I validate the model and sometimes I get some of these messages and
sometimes no. So far, I have not been able to figure our where is the
origin of this problem.

I'm working with a profile with lots of OCL in Eclipse Mars and Papyrus
1.1.0

Does anybody has a clue about how to avoid this?

Might it be related to this bug?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=465896

Best,

Victor
Re: Some random errors [message #1706172 is a reply to message #1706168] Mon, 24 August 2015 12:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5581
Registered: July 2009
Senior Member
Hi

I expect that the problem is due to the Xtext builder that is not
compatible with OCL's usage of Resources.

I find that problems go away if you avoid having an Xtext nature or at
least avoid an Xtext builder where there are OCL files.

I had a quick go at disabling the Xtext functionality, but there's no
documentation and I got lost in my empirical discoveries.

Regards

Ed Willink


On 24/08/2015 12:02, V. López wrote:
> Hi all,
> I've been experimenting some random errors like this one:
>
> "Severity Description Element Parent Type
> Error The 'PropertyCallExp::NonStaticSourceTypeIsConformant'
> constraint is violated for '1_.qualifiedName' <<FlowPort, MyPort>>
> <Port> flowport2 RootElement::Element1 EMF Problem
>
> I validate the model and sometimes I get some of these messages and
> sometimes no. So far, I have not been able to figure our where is the
> origin of this problem.
>
> I'm working with a profile with lots of OCL in Eclipse Mars and
> Papyrus 1.1.0
>
> Does anybody has a clue about how to avoid this?
>
> Might it be related to this bug?
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=465896
>
> Best,
>
> Victor
Re: Some random errors [message #1707093 is a reply to message #1706172] Wed, 02 September 2015 08:59 Go to previous message
Eclipse UserFriend
Thanks Ed.
By now closing the model and making the validation several times usually
works at some point. I'll take a look at Xtext as you suggest.

El 24/08/2015 a las 14:23, Ed Willink escribió:
> Hi
>
> I expect that the problem is due to the Xtext builder that is not
> compatible with OCL's usage of Resources.
>
> I find that problems go away if you avoid having an Xtext nature or at
> least avoid an Xtext builder where there are OCL files.
>
> I had a quick go at disabling the Xtext functionality, but there's no
> documentation and I got lost in my empirical discoveries.
>
> Regards
>
> Ed Willink
>
>
> On 24/08/2015 12:02, V. López wrote:
>> Hi all,
>> I've been experimenting some random errors like this one:
>>
>> "Severity Description Element Parent Type
>> Error The 'PropertyCallExp::NonStaticSourceTypeIsConformant'
>> constraint is violated for '1_.qualifiedName' <<FlowPort, MyPort>>
>> <Port> flowport2 RootElement::Element1 EMF Problem
>>
>> I validate the model and sometimes I get some of these messages and
>> sometimes no. So far, I have not been able to figure our where is the
>> origin of this problem.
>>
>> I'm working with a profile with lots of OCL in Eclipse Mars and
>> Papyrus 1.1.0
>>
>> Does anybody has a clue about how to avoid this?
>>
>> Might it be related to this bug?
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=465896
>>
>> Best,
>>
>> Victor
>
Previous Topic:Execution of eclipse OCL source code from GIT Repository
Next Topic:OCLinEclipse Discarding Tuple Type Information on Operations
Goto Forum:
  


Current Time: Fri Jan 19 17:47:59 GMT 2018

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

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