Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » MOFScript » Feature not found
Feature not found [message #634071] Wed, 20 October 2010 13:02 Go to next message
Torbjørn Knutsen is currently offline Torbjørn KnutsenFriend
Messages: 7
Registered: September 2010
Junior Member
Hi,

I am trying to transform a relational database model to text, but i get an error message when trying to load a model. I have set the NS uri of the metamodel, and used this as input to the transformation. The error message i get is:

## Loading source model - out.xmi... #Error in source model loading: Feature 'typeenum' not found.
Execution Error: org.eclipse.mofscript.runtime.MofScriptExecutionException: Missing Source Models.

I find this weird, since the feature is defined in the metamodel, like this:

<eClassifiers xsi:type="ecore:EClass" name="Table">
[...]
<eStructuralFeatures xsi:type="ecore:EReference" name="typeenum" lowerBound="1"
eType="#//TypeEnum" containment="true"/>
</eClassifiers>

So when the input file says:

<table name="UserRole" pkey="//@table.8/@cols.0">
<cols name="uuid" type="Integer"/>
<cols name="Description" type="String"/>
<typeenum>
<enumEntry enumString="UserRole"/>
</typeenum>

It should work?

Is it something that i'm missing here?

- Torbjørn
Re: Feature not found [message #635454 is a reply to message #634071] Tue, 26 October 2010 20:32 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. OlsenFriend
Messages: 184
Registered: July 2009
Senior Member
Hello Tobj
Re: Feature not found [message #637200 is a reply to message #634071] Thu, 04 November 2010 14:50 Go to previous message
Torbjørn Knutsen is currently offline Torbjørn KnutsenFriend
Messages: 7
Registered: September 2010
Junior Member
Somehow regenerating the model with another transformation, and copying the output to the input folder of the transformation i'm working on worked. They showed now difference when using diff on the one that works, and the one that don't. Remains quite the mystery to me..
Previous Topic:Subpackages URI problem
Next Topic:Problem with creating instances
Goto Forum:
  


Current Time: Thu Mar 28 23:20:54 GMT 2024

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

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

Back to the top