Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ClassNotFoundException error(M2T Transformation from ecore to lydia)
ClassNotFoundException error [message #841564] Wed, 11 April 2012 13:26 Go to next message
Toni Marin is currently offline Toni MarinFriend
Messages: 7
Registered: October 2011
Junior Member
Hi,

When running the acceleo M2T transformation there is an error related (I think) with the coherence between the ecore metamodel and the xmi model. Here is the error prompt:

org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'System' is not found or is abstract. (model.xmi)

When manually registering the metamodel and validating the model there are no problems.
At first I was having much more problems (pic attached) which seemed to be solved by adding missing libraries. Now only the above problem is shown, but some of this problems may persist.

index.php/fa/7857/0/


I will appreciate any suggestions,

Cheers
  • Attachment: ErrorLog.png
    (Size: 63.45KB, Downloaded 1046 times)

[Updated on: Wed, 11 April 2012 14:51]

Report message to a moderator

Re: ClassNotFoundException error [message #841618 is a reply to message #841564] Wed, 11 April 2012 14:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

This is usually caused by unregistered or inconsistently registered
meta-models. Read the comments in your generated Java file and read many
related posts on the M2T newsgroup.

Regards

Ed Willink


On 11/04/2012 14:26, Missing name Mising name wrote:
> Hi,
>
> When running the acceleo M2T transformation there is an error related (I think) with the coherence between the ecore metamodel and the xmi model.
>
> Here is the error prompt:
>
> org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'System' is not found or is abstract. (model.xmi)
>
>
> When manually registering the metamodel and validating the model there are no problems.
>
> Also, at first I was having much more problems (see pic below) which seemed to be solved by adding missing libraries. Now only the above problem is shown.
>
>
> I will appreciate any suggestions,
>
> Cheers
Re: ClassNotFoundException error [message #857378 is a reply to message #841618] Thu, 26 April 2012 13:42 Go to previous messageGo to next message
Toni Marin is currently offline Toni MarinFriend
Messages: 7
Registered: October 2011
Junior Member
Thanks Ed,

I still cannot load the metamodel.

I have tracked till the Initialize() function within the AbstractAcceleoGenerator.class.

The error appears while executing this line:

model = ModelUtils.load(newModelURI, modelResourceSet);

The problem comes from loading the metamodel (modelResourceSet). The error is still "ClassNotFoundException" and no .emtl file is created.

I have read few related post, but couldn't find a solution.

Please, if anyone have any ideas on how to solve this will be welcome.

Regads,
Antonio

[Updated on: Thu, 26 April 2012 14:22]

Report message to a moderator

Re: ClassNotFoundException error [message #857438 is a reply to message #857378] Thu, 26 April 2012 14:34 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I just noticed that your original PNG mentioned Acceleo 1.0.

You need to ask on the M2T forum for advice on that old release.

Regards

Ed Willink


On 26/04/2012 14:42, Missing name Mising name wrote:
> Thanks Ed,
>
> I still cannot load the metamodel.
>
> I have tracked till the Initialize() function within the
> AbstractAcceleoGenerator.class.
> The error appears while executing this line:
>
> model = ModelUtils.load(newModelURI, modelResourceSet);
>
> And it is now clear that the problem comes from loading the metamodel.
> The error is still "ClassNotFoundException". I have read few related
> post, but couldn't find a solution.
>
> Please, if anyone have any ideas on how to solve this will be welcome.
>
> Regads,
> Antonio
>
Previous Topic:Undo/Redo refactorings using EMF Refactor
Next Topic:Transactional command stack non-redoable with command or wrapped operation trigger
Goto Forum:
  


Current Time: Thu Apr 25 16:45:05 GMT 2024

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

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

Back to the top