Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » CDO feature bug? FeatureNotFoundException
CDO feature bug? FeatureNotFoundException [message #426220] Fri, 19 December 2008 18:46 Go to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Hello,

i have a ecore model with this feature in it.

<eStructuralFeatures xsi:type="ecore:EAttribute" name="performedBy"
unique="false"
upperBound="-1" eType="ecore:EDataType
http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="PerformedBy"/>
</eAnnotations>
</eStructuralFeatures>

Now i want to load an exmaple model with a class in it and this feature
isn't set. This leads to following generation in the xmi file

<ContentElement xsi:type="uma:Task" name="Check Compatibility"
briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
presentationName="Check Compatibility" suppressed="false"
isAbstract="false" variabilityType="na" PerformedBy="">

If i want to load this model i get an feature not found exception. I
tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug, or
miss i something?

Greetings
Jörg
Re: CDO feature bug? FeatureNotFoundException [message #426221 is a reply to message #426220] Fri, 19 December 2008 19:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30911
Registered: July 2009
Senior Member
Jörg,

Comments below.

Jörg wrote:
> Hello,
>
> i have a ecore model with this feature in it.
>
> <eStructuralFeatures xsi:type="ecore:EAttribute"
> name="performedBy" unique="false"
> upperBound="-1" eType="ecore:EDataType
> http://www.eclipse.org/emf/2003/XMLType#//String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="kind" value="element"/>
> <details key="name" value="PerformedBy"/>
> </eAnnotations>
> </eStructuralFeatures>
>
> Now i want to load an exmaple model with a class in it and this
> feature isn't set. This leads to following generation in the xmi file
>
> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
> presentationName="Check Compatibility" suppressed="false"
> isAbstract="false" variabilityType="na" PerformedBy="">
I would expect it to be serialized as an element.
>
> If i want to load this model i get an feature not found exception. I
> tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug, or
> miss i something?
What kind of resource as you using to load this?

It seems to me that CDO had a problem in the implementation of eIsSet.
What you show above would be caused by "performedBy" feature true for
eIsSet, even though the list is empty...
>
> Greetings
> Jörg
Re: CDO feature bug? FeatureNotFoundException [message #426222 is a reply to message #426221] Fri, 19 December 2008 19:51 Go to previous messageGo to next message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Jep, this eIsSet Method gets true. Is this a bug and will be fixed or
should i overwrite this method?

Greetings

Ed Merks schrieb:
> Jörg,
>
> Comments below.
>
> Jörg wrote:
>> Hello,
>>
>> i have a ecore model with this feature in it.
>>
>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>> name="performedBy" unique="false"
>> upperBound="-1" eType="ecore:EDataType
>> http://www.eclipse.org/emf/2003/XMLType#//String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="kind" value="element"/>
>> <details key="name" value="PerformedBy"/>
>> </eAnnotations>
>> </eStructuralFeatures>
>>
>> Now i want to load an exmaple model with a class in it and this
>> feature isn't set. This leads to following generation in the xmi file
>>
>> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
>> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
>> presentationName="Check Compatibility" suppressed="false"
>> isAbstract="false" variabilityType="na" PerformedBy="">
> I would expect it to be serialized as an element.
>>
>> If i want to load this model i get an feature not found exception. I
>> tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug, or
>> miss i something?
> What kind of resource as you using to load this?
>
> It seems to me that CDO had a problem in the implementation of eIsSet.
> What you show above would be caused by "performedBy" feature true for
> eIsSet, even though the list is empty...
>>
>> Greetings
>> Jörg
Re: CDO feature bug? FeatureNotFoundException [message #426223 is a reply to message #426222] Fri, 19 December 2008 20:02 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30911
Registered: July 2009
Senior Member
Jörg,

It's a bug if it's doing that. If it's still doing that in M4, open a
CDO bugzilla.


Jörg wrote:
> Jep, this eIsSet Method gets true. Is this a bug and will be fixed or
> should i overwrite this method?
>
> Greetings
>
> Ed Merks schrieb:
>> Jörg,
>>
>> Comments below.
>>
>> Jörg wrote:
>>> Hello,
>>>
>>> i have a ecore model with this feature in it.
>>>
>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>> name="performedBy" unique="false"
>>> upperBound="-1" eType="ecore:EDataType
>>> http://www.eclipse.org/emf/2003/XMLType#//String">
>>> <eAnnotations
>>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>>> <details key="kind" value="element"/>
>>> <details key="name" value="PerformedBy"/>
>>> </eAnnotations>
>>> </eStructuralFeatures>
>>>
>>> Now i want to load an exmaple model with a class in it and this
>>> feature isn't set. This leads to following generation in the xmi file
>>>
>>> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
>>> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
>>> presentationName="Check Compatibility" suppressed="false"
>>> isAbstract="false" variabilityType="na" PerformedBy="">
>> I would expect it to be serialized as an element.
>>>
>>> If i want to load this model i get an feature not found exception. I
>>> tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug,
>>> or miss i something?
>> What kind of resource as you using to load this?
>>
>> It seems to me that CDO had a problem in the implementation of
>> eIsSet. What you show above would be caused by "performedBy" feature
>> true for eIsSet, even though the list is empty...
>>>
>>> Greetings
>>> Jörg
Re: CDO feature bug? FeatureNotFoundException [message #426224 is a reply to message #426223] Fri, 19 December 2008 20:24 Go to previous messageGo to next message
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
We have already a bugzilla open for it. (few days ago)

See below:
258933: CDORevisionImpl.eIsSet() works incorrectly
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258933

I will add comments made here into the bugs!!

Simon

Ed Merks wrote:
> Jörg,
>
> It's a bug if it's doing that. If it's still doing that in M4, open a
> CDO bugzilla.
>
>
> Jörg wrote:
>> Jep, this eIsSet Method gets true. Is this a bug and will be fixed or
>> should i overwrite this method?
>>
>> Greetings
>>
>> Ed Merks schrieb:
>>> Jörg,
>>>
>>> Comments below.
>>>
>>> Jörg wrote:
>>>> Hello,
>>>>
>>>> i have a ecore model with this feature in it.
>>>>
>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>> name="performedBy" unique="false"
>>>> upperBound="-1" eType="ecore:EDataType
>>>> http://www.eclipse.org/emf/2003/XMLType#//String">
>>>> <eAnnotations
>>>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>>>> <details key="kind" value="element"/>
>>>> <details key="name" value="PerformedBy"/>
>>>> </eAnnotations>
>>>> </eStructuralFeatures>
>>>>
>>>> Now i want to load an exmaple model with a class in it and this
>>>> feature isn't set. This leads to following generation in the xmi file
>>>>
>>>> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
>>>> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
>>>> presentationName="Check Compatibility" suppressed="false"
>>>> isAbstract="false" variabilityType="na" PerformedBy="">
>>> I would expect it to be serialized as an element.
>>>>
>>>> If i want to load this model i get an feature not found exception. I
>>>> tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a bug,
>>>> or miss i something?
>>> What kind of resource as you using to load this?
>>>
>>> It seems to me that CDO had a problem in the implementation of
>>> eIsSet. What you show above would be caused by "performedBy" feature
>>> true for eIsSet, even though the list is empty...
>>>>
>>>> Greetings
>>>> Jörg
Re: CDO feature bug? FeatureNotFoundException [message #426225 is a reply to message #426224] Fri, 19 December 2008 21:24 Go to previous message
Oelerink is currently offline OelerinkFriend
Messages: 129
Registered: July 2009
Senior Member
Thanks

Simon McDuff schrieb:
> We have already a bugzilla open for it. (few days ago)
>
> See below:
> 258933: CDORevisionImpl.eIsSet() works incorrectly
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=258933
>
> I will add comments made here into the bugs!!
>
> Simon
>
> Ed Merks wrote:
>> Jörg,
>>
>> It's a bug if it's doing that. If it's still doing that in M4, open a
>> CDO bugzilla.
>>
>>
>> Jörg wrote:
>>> Jep, this eIsSet Method gets true. Is this a bug and will be fixed or
>>> should i overwrite this method?
>>>
>>> Greetings
>>>
>>> Ed Merks schrieb:
>>>> Jörg,
>>>>
>>>> Comments below.
>>>>
>>>> Jörg wrote:
>>>>> Hello,
>>>>>
>>>>> i have a ecore model with this feature in it.
>>>>>
>>>>> <eStructuralFeatures xsi:type="ecore:EAttribute"
>>>>> name="performedBy" unique="false"
>>>>> upperBound="-1" eType="ecore:EDataType
>>>>> http://www.eclipse.org/emf/2003/XMLType#//String">
>>>>> <eAnnotations
>>>>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>>>>> <details key="kind" value="element"/>
>>>>> <details key="name" value="PerformedBy"/>
>>>>> </eAnnotations>
>>>>> </eStructuralFeatures>
>>>>>
>>>>> Now i want to load an exmaple model with a class in it and this
>>>>> feature isn't set. This leads to following generation in the xmi file
>>>>>
>>>>> <ContentElement xsi:type="uma:Task" name="Check Compatibility"
>>>>> briefDescription="" id="_KuaOoJRqEd2LH7gFeFi93A" orderingGuide=""
>>>>> presentationName="Check Compatibility" suppressed="false"
>>>>> isAbstract="false" variabilityType="na" PerformedBy="">
>>>> I would expect it to be serialized as an element.
>>>>>
>>>>> If i want to load this model i get an feature not found exception.
>>>>> I tried this in cdo 1.0,1.4 and 2.0m4 . Allway the same. Is it a
>>>>> bug, or miss i something?
>>>> What kind of resource as you using to load this?
>>>>
>>>> It seems to me that CDO had a problem in the implementation of
>>>> eIsSet. What you show above would be caused by "performedBy"
>>>> feature true for eIsSet, even though the list is empty...
>>>>>
>>>>> Greetings
>>>>> Jörg
Previous Topic:XMI deserialization
Next Topic:Deploying new app using JWS with EMF problems
Goto Forum:
  


Current Time: Wed Feb 26 23:04:15 GMT 2020

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

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

Back to the top