[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmt.amw] Re: [AMW] Problems with AMW weaver editor loading Traceability weaving model

Hello,

Hello

I followed all your advices but it doesn't load anyway.

I use Eclipse Europa, and all plugins downloaded via Update Site (except AMW is last version from CVS).


Now you can also use the latest development build. http://www.eclipse.org/gmt/amw/download/. It is a compiled version with the latest sources.

Thanks for your replies, now I am using this version but unfortunately I get the same error.


I have been debugging sources and the exception is raised when Input and Output metamodels are the same ones. I found that in method initWoven of class WeaverModelManager only the first time It loads a metamodel It works ok, the rest of times I get the first post error. If I use two distinct metamodels and it loads ok.

In the other hand if I specify metamodels with uris I get "null pointer exception" in this fragment of code:

// if we works with models / metamodels
if(isModelExists){ // model
// register the mm - not cessary to register mm by URI
if (rs != null) WeaverResourceUtil.initResource(rs.getResource(uri,false));


Resource metamodel = (Resource) rs.getResources().get(0); <<-- rs is null so it raises an exception

Thanks you :)
José Carlos