Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MOFScript » Executing Problem with Java API
Executing Problem with Java API [message #480673] Tue, 18 August 2009 04:09 Go to next message
Bekir  is currently offline Bekir
Messages: 5
Registered: August 2009
Junior Member
Hi,

I'm defining some textual tranformations for models based on the
Jadex metamodel. It works fine! However, when I try to
integrate my MOFScript transformation in a Java environment, using the
example given in the MOFScript User Guide, it doesn't work.

I took these errors;
Parsing result: 213 errors
: Error: MTTParseError: Illegal/unknown context: jadex, line: 649, column: 0
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 9, column: 12
: Error: MTTParseError: Can't find feature 'name' for type 'Agent'., line: 15, column: 30
: Error: MTTParseError: Can't find feature 'package' for type 'Agent'., line: 17, column: 33
: Error: MTTParseError: Can't find feature 'description' for type 'Agent'., line: 19, column: 37
: Error: MTTParseError: Can't find feature 'propertyfile' for type 'Agent'., line: 21, column: 37

.............................

I think there is a problem with metamodel setting.
Can you help me, your code doesn't work in the guide.

Best regards,
Bekir
Re: Executing Problem with Java API [message #480981 is a reply to message #480673] Wed, 19 August 2009 05:10 Go to previous messageGo to next message
Gøran K. Olsen is currently offline Gøran K. Olsen
Messages: 184
Registered: July 2009
Senior Member
Hello Bekir,

I am not sure this will solve the problem, but you could try adding a line
in the beginning of your code like:

JadexModelFactory _jadexModelFactory = JadexModelFactory.eINSTANCE;


If "Jadex"ModelFactory is the correct name in your case I dont know. Just
add the factory for your model.

Cheers,
G
Re: Executing Problem with Java API [message #481053 is a reply to message #480981] Wed, 19 August 2009 08:55 Go to previous messageGo to next message
Bekir  is currently offline Bekir
Messages: 5
Registered: August 2009
Junior Member
Hi,

I tried your advice but it doesn't work Sad

I think i had a same problem with this: http://www.eclipse.org/forums/index.php?t=msg&th=125320& amp;start=0&S=1d70109ac3dbe09f01b59730a4b62ddc

I tried the solution at the above link but i could not solve my problem. I took same parser errors.

Can you explain the solution at that link? where am i wrong?

Thanks for your attention,
Bekir
Re: Executing Problem with Java API [message #568234 is a reply to message #480981] Wed, 19 August 2009 08:55 Go to previous message
Bekir  is currently offline Bekir
Messages: 5
Registered: August 2009
Junior Member
Hi,

I tried your advice but it doesn't work :(

I think i had a same problem with this: http://www.eclipse.org/forums/index.php?t=msg&th=125320& amp;start=0&S=1d70109ac3dbe09f01b59730a4b62ddc

I tried the solution at the above link but i could not solve my problem. I took same parser errors.

Can you explain the solution at that link? where am i wrong?

Thanks for your attention,
Bekir
Previous Topic:Executing Problem with Java API
Next Topic:[MOFScript] MOFScript and Eclipse Galileo
Goto Forum:
  


Current Time: Wed Aug 20 16:46:16 EDT 2014

Powered by FUDForum. Page generated in 0.02401 seconds