Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource
IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #379659] Wed, 21 February 2007 12:40 Go to next message
Eclipse User
Originally posted by: zhengxie.ie.ibm.com

When the following resource is loaded, the parser throws an exception:
IllegalArgumentException: The feature 'artifact' is not a valid feature

Can you see what is wrong with the resource? It was deserialised by
save() on the resource.

Thanks a lot!

Zheng
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<mrd:RepositoryModel xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mdp="http://com.mtools.repository/defauld"
xmlns:mrd="http://com.mtools.repository" name="Analysis"
id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
version="_cT2SM8GVEdubFJnviccVQw">
<classification xsi:type="mrd:RepositoryModelClassification"/>
<solution xsi:type="mrd:RepositoryModelContents">
<artifact xsi:type="mdp:_Artifact"
artifactId="_i3BrUMGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
<reference xsi:type="mdp:_Reference"><element
href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
<description xsi:type="mdp:_Description"><value>IFW Summary
Requirements Model</value></description>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_i3BrUcGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
<reference xsi:type="mdp:_Reference"><element
href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@artifact.0/@artifact.0"/>
<description xsi:type="mdp:_Description"><value>IFW Summary
Requirements Model</value></description>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jEk_IMGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
packageURI="http:///com/ibm/db/models/naming/naming.ecore">
<reference xsi:type="mdp:_Reference"><element
href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
<description xsi:type="mdp:_Description"/>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jEk_IcGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
artifactId="_i3BrUsGVEdubFJnviccVQw"
packageURI="http:///com/ibm/db/models/naming/naming.ecore">
<reference xsi:type="mdp:_Reference"><element
href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@artifact.2/@artifact.0"/>
<description xsi:type="mdp:_Description"/>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jJNAcMGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
artifactId="_jEk_IsGVEdubFJnviccVQw"
packageURI="http:///com/ibm/db/models/logical/logical.ecore">
<reference xsi:type="mdp:_Reference"><element
href="analysis/Domain
Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
Model.ddm</value></reference>
<description xsi:type="mdp:_Description"/>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jTx4wMGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
<reference xsi:type="mdp:_Reference"><element
href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
<description xsi:type="mdp:_Description"><value>IFW System of
Record Model</value></description>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jTx4wcGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
packageURI="http:///com/ibm/db/models/logical/logical.ecore">
<reference xsi:type="mdp:_Reference"><element
href="analysis/IFW System of Record
Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
System of Record Model.ldm</value></reference>
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@artifact.5/@artifact.0"/>
<description xsi:type="mdp:_Description"/>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jhVzoMGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
<reference xsi:type="mdp:_Reference"><element
href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
<description xsi:type="mdp:_Description"><value>IFW Summary and
Analysis Model</value></description>
</artifact>
</artifact>
<artifact xsi:type="mdp:_Artifact"
artifactId="_jhVzocGVEdubFJnviccVQw">
<artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
packageURI="http:///com/ibm/db/models/logical/logical.ecore">
<reference xsi:type="mdp:_Reference"><element
href="analysis/IFW Summary and Analysis
Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
Summary and Analysis Model.ldm</value></reference>
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@artifact.7/@artifact.0"/>
<description xsi:type="mdp:_Description"/>
</artifact>
</artifact>
</solution>
<profile xsi:type="mrd:Analysis"/>
</mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #379661 is a reply to message #379659] Wed, 21 February 2007 13:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26050
Registered: July 2009
Senior Member
Zheng,

This question would be better asked on the EMF newsgroup, which I've
added to the "to" list. Without knowing the model itself, and without a
stack trace, it's hard to say what might be wrong.


Zheng Xie wrote:
> When the following resource is loaded, the parser throws an exception:
> IllegalArgumentException: The feature 'artifact' is not a valid feature
>
> Can you see what is wrong with the resource? It was deserialised by
> save() on the resource.
>
> Thanks a lot!
>
> Zheng
> -------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <mrd:RepositoryModel xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:mdp="http://com.mtools.repository/defauld"
> xmlns:mrd="http://com.mtools.repository" name="Analysis"
> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
> version="_cT2SM8GVEdubFJnviccVQw">
> <classification xsi:type="mrd:RepositoryModelClassification"/>
> <solution xsi:type="mrd:RepositoryModelContents">
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_i3BrUMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> Requirements Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_i3BrUcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.0/@artifact.0"/>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> Requirements Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jEk_IMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
> artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jEk_IcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
> artifactId="_i3BrUsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.2/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jJNAcMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
> artifactId="_jEk_IsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/Domain
> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
> Model.ddm</value></reference>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jTx4wMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW System of
> Record Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jTx4wcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/IFW System of Record
> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
> System of Record Model.ldm</value></reference>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.5/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jhVzoMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
> Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> and Analysis Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jhVzocGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
> Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/IFW Summary and Analysis
> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
> Summary and Analysis Model.ldm</value></reference>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.7/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> </solution>
> <profile xsi:type="mrd:Analysis"/>
> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #379664 is a reply to message #379661] Wed, 21 February 2007 14:24 Go to previous messageGo to next message
Eclipse User
Originally posted by: zhengxie.ie.ibm.com

Thanks Ed.

This is a RAS manifest file. It seems that the artifact dependency stuff
cause the problem. If I manually remove the artifact dependency, then
the manifest can be loaded as an asset.

Zheng

Ed Merks wrote:
> Zheng,
>
> This question would be better asked on the EMF newsgroup, which I've
> added to the "to" list. Without knowing the model itself, and without a
> stack trace, it's hard to say what might be wrong.
>
> Zheng Xie wrote:
>> When the following resource is loaded, the parser throws an exception:
>> IllegalArgumentException: The feature 'artifact' is not a valid feature
>>
>> Can you see what is wrong with the resource? It was deserialised by
>> save() on the resource.
>>
>> Thanks a lot!
>>
>> Zheng
>> -------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <mrd:RepositoryModel xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:mdp="http://com.mtools.repository/defauld"
>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>> version="_cT2SM8GVEdubFJnviccVQw">
>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>> <solution xsi:type="mrd:RepositoryModelContents">
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> Requirements Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.0/@artifact.0"/>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> Requirements Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
>> artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
>> artifactId="_i3BrUsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.2/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/Domain
>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>> Model.ddm</value></reference>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW System of
>> Record Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/IFW System of Record
>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>> System of Record Model.ldm</value></reference>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.5/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
>> Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> and Analysis Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jhVzocGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
>> Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/IFW Summary and Analysis
>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>> Summary and Analysis Model.ldm</value></reference>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.7/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> </solution>
>> <profile xsi:type="mrd:Analysis"/>
>> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #379666 is a reply to message #379664] Wed, 21 February 2007 14:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26050
Registered: July 2009
Senior Member
Zheng,

I know nothing about what a RAS manifest file is. Given that the
message is complaining about the "artifact" feature, it's quite apparent
this is related to that feature's use in the serialization. Does your
comment mean you've solved the problem or are you still asking a
question? Without seeing the model and without a stack trace, I can't
think of anything to say that might be helpful.


Zheng Xie wrote:
> Thanks Ed.
>
> This is a RAS manifest file. It seems that the artifact dependency
> stuff cause the problem. If I manually remove the artifact dependency,
> then the manifest can be loaded as an asset.
>
> Zheng
>
> Ed Merks wrote:
>> Zheng,
>>
>> This question would be better asked on the EMF newsgroup, which I've
>> added to the "to" list. Without knowing the model itself, and
>> without a stack trace, it's hard to say what might be wrong.
>>
>> Zheng Xie wrote:
>>> When the following resource is loaded, the parser throws an
>>> exception: IllegalArgumentException: The feature 'artifact' is not a
>>> valid feature
>>>
>>> Can you see what is wrong with the resource? It was deserialised by
>>> save() on the resource.
>>>
>>> Thanks a lot!
>>>
>>> Zheng
>>> -------------------------------------
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <mrd:RepositoryModel xmi:version="2.0"
>>> xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:mdp="http://com.mtools.repository/defauld"
>>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>>> version="_cT2SM8GVEdubFJnviccVQw">
>>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>>> <solution xsi:type="mrd:RepositoryModelContents">
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> Requirements Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.0/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> Requirements Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>> name="NamingStandard" artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>> name="NamingStandard" artifactId="_i3BrUsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.2/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/Domain
>>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>>> Model.ddm</value></reference>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW System
>>> of Record Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/IFW System of Record
>>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>> System of Record Model.ldm</value></reference>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.5/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> and Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> and Analysis Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jhVzocGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> and Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/IFW Summary and Analysis
>>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>> Summary and Analysis Model.ldm</value></reference>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.7/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> </solution>
>>> <profile xsi:type="mrd:Analysis"/>
>>> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #379964 is a reply to message #379666] Mon, 05 March 2007 11:07 Go to previous message
Eclipse User
Originally posted by: zhengxie.ie.ibm.com

Hi Ed,

I found for the artifactDependency it has to be
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@solution/@artifact.0/@artifact.0"/>

Because "artifact" is contained in "solution".

What went wrong was when the RepositoryModelContents is created, it is
set into the RepositoryModel, but not in the way that RepositoryModel is
its container. So when the model is serialized, it is as
.....artifact="//@artifact.0/@artifact.0"...
not
....artifact="//@solution/@artifact.0/@artifact.0"...

Zheng
Ed Merks wrote:
> Zheng,
>
> I know nothing about what a RAS manifest file is. Given that the
> message is complaining about the "artifact" feature, it's quite apparent
> this is related to that feature's use in the serialization. Does your
> comment mean you've solved the problem or are you still asking a
> question? Without seeing the model and without a stack trace, I can't
> think of anything to say that might be helpful.
>
>
> Zheng Xie wrote:
>> Thanks Ed.
>>
>> This is a RAS manifest file. It seems that the artifact dependency
>> stuff cause the problem. If I manually remove the artifact dependency,
>> then the manifest can be loaded as an asset.
>>
>> Zheng
>>
>> Ed Merks wrote:
>>> Zheng,
>>>
>>> This question would be better asked on the EMF newsgroup, which I've
>>> added to the "to" list. Without knowing the model itself, and
>>> without a stack trace, it's hard to say what might be wrong.
>>>
>>> Zheng Xie wrote:
>>>> When the following resource is loaded, the parser throws an
>>>> exception: IllegalArgumentException: The feature 'artifact' is not a
>>>> valid feature
>>>>
>>>> Can you see what is wrong with the resource? It was deserialised by
>>>> save() on the resource.
>>>>
>>>> Thanks a lot!
>>>>
>>>> Zheng
>>>> -------------------------------------
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <mrd:RepositoryModel xmi:version="2.0"
>>>> xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:mdp="http://com.mtools.repository/defauld"
>>>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>>>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>>>> version="_cT2SM8GVEdubFJnviccVQw">
>>>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>>>> <solution xsi:type="mrd:RepositoryModelContents">
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> Requirements Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.0/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> Requirements Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>>> name="NamingStandard" artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>>> name="NamingStandard" artifactId="_i3BrUsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>>>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.2/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>>>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/Domain
>>>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>>>> Model.ddm</value></reference>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW System
>>>> of Record Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/IFW System of Record
>>>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>>> System of Record Model.ldm</value></reference>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.5/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> and Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> and Analysis Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jhVzocGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> and Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/IFW Summary and Analysis
>>>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>>> Summary and Analysis Model.ldm</value></reference>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.7/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> </solution>
>>>> <profile xsi:type="mrd:Analysis"/>
>>>> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #586715 is a reply to message #379659] Wed, 21 February 2007 13:45 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26050
Registered: July 2009
Senior Member
Zheng,

This question would be better asked on the EMF newsgroup, which I've
added to the "to" list. Without knowing the model itself, and without a
stack trace, it's hard to say what might be wrong.


Zheng Xie wrote:
> When the following resource is loaded, the parser throws an exception:
> IllegalArgumentException: The feature 'artifact' is not a valid feature
>
> Can you see what is wrong with the resource? It was deserialised by
> save() on the resource.
>
> Thanks a lot!
>
> Zheng
> -------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <mrd:RepositoryModel xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:mdp="http://com.mtools.repository/defauld"
> xmlns:mrd="http://com.mtools.repository" name="Analysis"
> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
> version="_cT2SM8GVEdubFJnviccVQw">
> <classification xsi:type="mrd:RepositoryModelClassification"/>
> <solution xsi:type="mrd:RepositoryModelContents">
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_i3BrUMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> Requirements Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_i3BrUcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.0/@artifact.0"/>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> Requirements Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jEk_IMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
> artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jEk_IcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
> artifactId="_i3BrUsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.2/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jJNAcMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
> artifactId="_jEk_IsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/Domain
> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
> Model.ddm</value></reference>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jTx4wMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW System of
> Record Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jTx4wcGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/IFW System of Record
> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
> System of Record Model.ldm</value></reference>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.5/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jhVzoMGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
> Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
> <reference xsi:type="mdp:_Reference"><element
> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>
> <description xsi:type="mdp:_Description"><value>IFW Summary
> and Analysis Model</value></description>
> </artifact>
> </artifact>
> <artifact xsi:type="mdp:_Artifact"
> artifactId="_jhVzocGVEdubFJnviccVQw">
> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
> Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
> <reference xsi:type="mdp:_Reference"><element
> href="analysis/IFW Summary and Analysis
> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
> Summary and Analysis Model.ldm</value></reference>
> <artifactDependency xsi:type="mdp:_ArtifactDependency"
> artifact="//@artifact.7/@artifact.0"/>
> <description xsi:type="mdp:_Description"/>
> </artifact>
> </artifact>
> </solution>
> <profile xsi:type="mrd:Analysis"/>
> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #586725 is a reply to message #379661] Wed, 21 February 2007 14:24 Go to previous message
Eclipse User
Originally posted by: zhengxie.ie.ibm.com

Thanks Ed.

This is a RAS manifest file. It seems that the artifact dependency stuff
cause the problem. If I manually remove the artifact dependency, then
the manifest can be loaded as an asset.

Zheng

Ed Merks wrote:
> Zheng,
>
> This question would be better asked on the EMF newsgroup, which I've
> added to the "to" list. Without knowing the model itself, and without a
> stack trace, it's hard to say what might be wrong.
>
> Zheng Xie wrote:
>> When the following resource is loaded, the parser throws an exception:
>> IllegalArgumentException: The feature 'artifact' is not a valid feature
>>
>> Can you see what is wrong with the resource? It was deserialised by
>> save() on the resource.
>>
>> Thanks a lot!
>>
>> Zheng
>> -------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <mrd:RepositoryModel xmi:version="2.0"
>> xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:mdp="http://com.mtools.repository/defauld"
>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>> version="_cT2SM8GVEdubFJnviccVQw">
>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>> <solution xsi:type="mrd:RepositoryModelContents">
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> Requirements Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.0/@artifact.0"/>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> Requirements Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
>> artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="NamingStandard"
>> artifactId="_i3BrUsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.2/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/Domain
>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>> Model.ddm</value></reference>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW System of
>> Record Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/IFW System of Record
>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>> System of Record Model.ldm</value></reference>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.5/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
>> Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>> <reference xsi:type="mdp:_Reference"><element
>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>
>> <description xsi:type="mdp:_Description"><value>IFW Summary
>> and Analysis Model</value></description>
>> </artifact>
>> </artifact>
>> <artifact xsi:type="mdp:_Artifact"
>> artifactId="_jhVzocGVEdubFJnviccVQw">
>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary and
>> Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>> <reference xsi:type="mdp:_Reference"><element
>> href="analysis/IFW Summary and Analysis
>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>> Summary and Analysis Model.ldm</value></reference>
>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>> artifact="//@artifact.7/@artifact.0"/>
>> <description xsi:type="mdp:_Description"/>
>> </artifact>
>> </artifact>
>> </solution>
>> <profile xsi:type="mrd:Analysis"/>
>> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #586739 is a reply to message #379664] Wed, 21 February 2007 14:44 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26050
Registered: July 2009
Senior Member
Zheng,

I know nothing about what a RAS manifest file is. Given that the
message is complaining about the "artifact" feature, it's quite apparent
this is related to that feature's use in the serialization. Does your
comment mean you've solved the problem or are you still asking a
question? Without seeing the model and without a stack trace, I can't
think of anything to say that might be helpful.


Zheng Xie wrote:
> Thanks Ed.
>
> This is a RAS manifest file. It seems that the artifact dependency
> stuff cause the problem. If I manually remove the artifact dependency,
> then the manifest can be loaded as an asset.
>
> Zheng
>
> Ed Merks wrote:
>> Zheng,
>>
>> This question would be better asked on the EMF newsgroup, which I've
>> added to the "to" list. Without knowing the model itself, and
>> without a stack trace, it's hard to say what might be wrong.
>>
>> Zheng Xie wrote:
>>> When the following resource is loaded, the parser throws an
>>> exception: IllegalArgumentException: The feature 'artifact' is not a
>>> valid feature
>>>
>>> Can you see what is wrong with the resource? It was deserialised by
>>> save() on the resource.
>>>
>>> Thanks a lot!
>>>
>>> Zheng
>>> -------------------------------------
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <mrd:RepositoryModel xmi:version="2.0"
>>> xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns:mdp="http://com.mtools.repository/defauld"
>>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>>> version="_cT2SM8GVEdubFJnviccVQw">
>>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>>> <solution xsi:type="mrd:RepositoryModelContents">
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> Requirements Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.0/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> Requirements Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>> name="NamingStandard" artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>> name="NamingStandard" artifactId="_i3BrUsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.2/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/Domain
>>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>>> Model.ddm</value></reference>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW System
>>> of Record Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/IFW System of Record
>>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>> System of Record Model.ldm</value></reference>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.5/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> and Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>>
>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>> and Analysis Model</value></description>
>>> </artifact>
>>> </artifact>
>>> <artifact xsi:type="mdp:_Artifact"
>>> artifactId="_jhVzocGVEdubFJnviccVQw">
>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>> and Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>> <reference xsi:type="mdp:_Reference"><element
>>> href="analysis/IFW Summary and Analysis
>>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>> Summary and Analysis Model.ldm</value></reference>
>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>> artifact="//@artifact.7/@artifact.0"/>
>>> <description xsi:type="mdp:_Description"/>
>>> </artifact>
>>> </artifact>
>>> </solution>
>>> <profile xsi:type="mrd:Analysis"/>
>>> </mrd:RepositoryModel>
Re: IllegalArgumentException: The feature 'artifact' is not a valid feature, when load resource [message #589925 is a reply to message #379666] Mon, 05 March 2007 11:07 Go to previous message
Eclipse User
Originally posted by: zhengxie.ie.ibm.com

Hi Ed,

I found for the artifactDependency it has to be
<artifactDependency xsi:type="mdp:_ArtifactDependency"
artifact="//@solution/@artifact.0/@artifact.0"/>

Because "artifact" is contained in "solution".

What went wrong was when the RepositoryModelContents is created, it is
set into the RepositoryModel, but not in the way that RepositoryModel is
its container. So when the model is serialized, it is as
.....artifact="//@artifact.0/@artifact.0"...
not
....artifact="//@solution/@artifact.0/@artifact.0"...

Zheng
Ed Merks wrote:
> Zheng,
>
> I know nothing about what a RAS manifest file is. Given that the
> message is complaining about the "artifact" feature, it's quite apparent
> this is related to that feature's use in the serialization. Does your
> comment mean you've solved the problem or are you still asking a
> question? Without seeing the model and without a stack trace, I can't
> think of anything to say that might be helpful.
>
>
> Zheng Xie wrote:
>> Thanks Ed.
>>
>> This is a RAS manifest file. It seems that the artifact dependency
>> stuff cause the problem. If I manually remove the artifact dependency,
>> then the manifest can be loaded as an asset.
>>
>> Zheng
>>
>> Ed Merks wrote:
>>> Zheng,
>>>
>>> This question would be better asked on the EMF newsgroup, which I've
>>> added to the "to" list. Without knowing the model itself, and
>>> without a stack trace, it's hard to say what might be wrong.
>>>
>>> Zheng Xie wrote:
>>>> When the following resource is loaded, the parser throws an
>>>> exception: IllegalArgumentException: The feature 'artifact' is not a
>>>> valid feature
>>>>
>>>> Can you see what is wrong with the resource? It was deserialised by
>>>> save() on the resource.
>>>>
>>>> Thanks a lot!
>>>>
>>>> Zheng
>>>> -------------------------------------
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <mrd:RepositoryModel xmi:version="2.0"
>>>> xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>>> xmlns:mdp="http://com.mtools.repository/defauld"
>>>> xmlns:mrd="http://com.mtools.repository" name="Analysis"
>>>> id="_cT2SMsGVEdubFJnviccVQw" date="21-Feb-2007 11:22:33"
>>>> version="_cT2SM8GVEdubFJnviccVQw">
>>>> <classification xsi:type="mrd:RepositoryModelClassification"/>
>>>> <solution xsi:type="mrd:RepositoryModelContents">
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_i3BrUMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> Requirements Model" artifactId="_Hh1w67hyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F 9A043C257D.ma#_FX2leLhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> Requirements Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_i3BrUcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> Requirements Model" artifactId="_cT2SNMGVEdubFJnviccVQw"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D.ma#_FX2leLhyEd u4-fVe9xIyRQ "/><value> industryModels/analysis/D53FD5B2-6BAF-F45D-716E-2F9A043C257D .ma </value></reference>
>>>>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.0/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> Requirements Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jEk_IMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>>> name="NamingStandard" artifactId="_Hh1w7rhyEdu4-fVe9xIyRQ"
>>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/7ABFBB51-3F50-6412-4210-BE DA9FD0F746.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/><value> industryModels/analysis/7ABFBB51-3F50-6412-4210-BEDA9FD0F746 .ndm </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jEk_IcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact"
>>>> name="NamingStandard" artifactId="_i3BrUsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/naming/naming.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/NamingStandard.ndm#_Gt9WUIICEdmDSdxbPbsTjQ"/ ><value>industryModels/analysis/NamingStandard.ndm</value> </reference>
>>>>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.2/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jJNAcMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="Domain Model"
>>>> artifactId="_jEk_IsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/Domain
>>>> Model.ddm#_TzD848GVEdubFJnviccVQw"/><value>industryModels/analysis/Domain
>>>> Model.ddm</value></reference>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jTx4wMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>>> Record Model" artifactId="_Hh1w5bhyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/02045AAC-985E-0711-ABE0-C7 2AAD108DBB.ma#_FX2lZrhyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/02045AAC-985E-0711-ABE0-C72AAD108DBB .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW System
>>>> of Record Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jTx4wcGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW System of
>>>> Record Model" artifactId="_jJNAccGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/IFW System of Record
>>>> Model.ldm#_FX2lZrhyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>>> System of Record Model.ldm</value></reference>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.5/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jhVzoMGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> and Analysis Model" artifactId="_Hh1w6LhyEdu4-fVe9xIyRQ"
>>>> packageURI="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href=" rasset://_Hh1wsLhyEdu4-fVe9xIyRQ/934336C5-1AE7-4F31-E873-FCA A7C8EC07E/industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F1 6E84ACAF7A.ma#_FX2lb7hyEdu4-fVe9xIyRQ"/><value> industryModels/analysis/4A66BCCB-3FB3-273D-C1F5-F16E84ACAF7A .ma </value></reference>
>>>>
>>>> <description xsi:type="mdp:_Description"><value>IFW Summary
>>>> and Analysis Model</value></description>
>>>> </artifact>
>>>> </artifact>
>>>> <artifact xsi:type="mdp:_Artifact"
>>>> artifactId="_jhVzocGVEdubFJnviccVQw">
>>>> <artifact xsi:type="mrd:CoreModelArtifact" name="IFW Summary
>>>> and Analysis Model" artifactId="_jTx4wsGVEdubFJnviccVQw"
>>>> packageURI="http:///com/ibm/db/models/logical/logical.ecore">
>>>> <reference xsi:type="mdp:_Reference"><element
>>>> href="analysis/IFW Summary and Analysis
>>>> Model.ldm#_FX2lb7hyEdu4-fVe9xIyRQ"/><value>industryModels/analysis/IFW
>>>> Summary and Analysis Model.ldm</value></reference>
>>>> <artifactDependency xsi:type="mdp:_ArtifactDependency"
>>>> artifact="//@artifact.7/@artifact.0"/>
>>>> <description xsi:type="mdp:_Description"/>
>>>> </artifact>
>>>> </artifact>
>>>> </solution>
>>>> <profile xsi:type="mrd:Analysis"/>
>>>> </mrd:RepositoryModel>
Previous Topic:plugin for reverse engineering
Next Topic:Use of Eclipse Comparaison Tool after JMerge
Goto Forum:
  


Current Time: Thu Sep 18 23:47:10 GMT 2014

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

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