Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Problem to load Rose model
Problem to load Rose model [message #1689556] Mon, 23 March 2015 21:12 Go to next message
lami P is currently offline lami PFriend
Messages: 10
Registered: November 2014
Junior Member
Hello,

I have problems to create an EMF model from the rose model (.mdl), there occur loads of errors .
"Problems were encountered processing the Rose model"
Hopefully someone can help me please, thanks in advance
Re: Problem to load Rose model [message #1689585 is a reply to message #1689556] Mon, 23 March 2015 21:56 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1162
Registered: July 2009
Location: Canada
Senior Member

Hi,

This is a question for the EMF newsgroup (copied in this reply).
Hopefully somebody there can help, but they will probably need more
specifics of your situation, such as what particular errors are
reported.

Cheers,

Christian


On 2015-03-23 21:12:55 +0000, lami P said:

> Hello,
> I have problems to create an EMF model from the rose model (.mdl),
> there occur loads of errors . "Problems were encountered processing the
> Rose model"
> Hopefully someone can help me please, thanks in advance
Re: Problem to load Rose model [message #1689599 is a reply to message #1689585] Mon, 23 March 2015 22:47 Go to previous messageGo to next message
lami P is currently offline lami PFriend
Messages: 10
Registered: November 2014
Junior Member
Hi,
when i load the rose model , this error appears "Problems were encountered processing the Rose model"
with the following details:

Duplicate 'classifierMap' reference in 'Classifier' will be discarded
Duplicate 'featureMap' reference in 'Feature' will be discarded
Data type not set for 'Any' so 'java.lang.String' will be used
Data type not set for 'Float' so 'java.lang.String' will be used
Duplicate 'responsibleParty' reference in 'Contact' will be discarded
Duplicate 'component' reference in 'DeployedComponent' will be discarded
Duplicate 'set' reference in 'AttributeAssignement' will be discarded
Container relation must have multiplicity upper bound 1; reference 'categoryMap' -> 'taxonomy'
Data type not set for 'Double' so 'java.lang.String' will be used
Duplicate 'renderedObject' reference in 'RenderedObjectSet' will be discarded
Duplicate 'renderedObject' reference in 'Rendering' will be discarded
Duplicate 'description' attribute in 'ExternalEvent' will be discarded

thanks for help

Re: Problem to load Rose model [message #1689724 is a reply to message #1689585] Tue, 24 March 2015 07:33 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 29122
Registered: July 2009
Senior Member
Yes,

I'd need some more details and would point out that Rose itself is way,
way, way past end of life. Such problems are often encountered as a
result of trying to load Rose cross model references.

On 23/03/2015 10:56 PM, Christian W. Damus wrote:
> Hi,
>
> This is a question for the EMF newsgroup (copied in this reply).
> Hopefully somebody there can help, but they will probably need more
> specifics of your situation, such as what particular errors are reported.
>
> Cheers,
>
> Christian
>
>
> On 2015-03-23 21:12:55 +0000, lami P said:
>
>> Hello,
>> I have problems to create an EMF model from the rose model (.mdl),
>> there occur loads of errors . "Problems were encountered processing
>> the Rose model"
>> Hopefully someone can help me please, thanks in advance
>
>
Re: Problem to load Rose model [message #1689981 is a reply to message #1689599] Tue, 24 March 2015 19:53 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 1162
Registered: July 2009
Location: Canada
Senior Member

Hi,

I think many of these are real problems that indicate that your source
Rose model is not sufficiently specified to generate a valid Ecore model

(by the way, are you importing from Rose to Ecore or to UML?)

HTH,

Christian

On 2015-03-23 22:47:35 +0000, lami P said:

> Hi, when i load the rose model , this error appears "Problems were
> encountered processing the Rose model"
> with the following details:
> Duplicate 'classifierMap' reference in 'Classifier' will be discarded
> Duplicate 'featureMap' reference in 'Feature' will be discarded

These indicate that the classes (Classifier, Feature) somehow define
the same reference property more than once, probably by inheriting
properties of the same name from multiple superclasses.

Java does not support repeated features, so neither does Ecore.
Possibly this is harmless if the features would have the same
semantics, but it may indicate a problem in the source model.


> Data type not set for 'Any' so 'java.lang.String' will be used
> Data type not set for 'Float' so 'java.lang.String' will be used

Ecore needs to know what Java type an EDataType in the source model
represents so that it can generate complete and correct code. This is
specified in an Ecore EDataType by setting its instanceClassName
attribute. I don't know how the Rose importer infers EDataTypes from
Rose models, so I can't help any further with this (I don't even know
whether Rose distinguishes DataTypes from Classes).


> Duplicate 'responsibleParty' reference in 'Contact' will be discarded
> Duplicate 'component' reference in 'DeployedComponent' will be discarded
> Duplicate 'set' reference in 'AttributeAssignement' will be discarded

cf. earlier remarks


> Container relation must have multiplicity upper bound 1; reference
> 'categoryMap' -> 'taxonomy'

The run-time object graphs modelled by Ecore are strictly
tree-structured: an object can have at most one container. The Rose
model has a composite association where the composing end has a
multiplicity greater than one, which implies multiple owners. Ecore
does not support that.


> Data type not set for 'Double' so 'java.lang.String' will be used
> Duplicate 'renderedObject' reference in 'RenderedObjectSet' will be discarded
> Duplicate 'renderedObject' reference in 'Rendering' will be discarded
> Duplicate 'description' attribute in 'ExternalEvent' will be discarded

As above.


>
> thanks for help
Re: Problem to load Rose model [message #1690067 is a reply to message #1689981] Tue, 24 March 2015 23:05 Go to previous messageGo to next message
lami P is currently offline lami PFriend
Messages: 10
Registered: November 2014
Junior Member
to Christian W. DamusFriend,
I import the Rose model to Ecore.
My general aim is to extend the CWM (Common Warehouse Metamodel) metamodel , so i import its Rose model (.mdl that i found in the OMG group) to ecore , when i load the model i find the errors displayed before, but i have always the possibility to pass to the next step.
In this case, i generate the .ecore, .genmodel, .edit and .editor and i can also creat instances of that model, but when i validate the .ecore, lot of errors appear and some relations between model instances are missing
As you said, i think that the errors are comming from the Rose model (which dates from 2003 !!)

i hope to find an alternative

Re: Problem to load Rose model [message #1690097 is a reply to message #1690067] Wed, 25 March 2015 09:08 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5580
Registered: July 2009
Senior Member
Hi

Early OMG models predated good modeling tools and so the models often
vary from bad to dreadful.

e.g. UML 2.5 is the first version with fewer than a couple of hundred
OCL errors.

OCL itself does not have useable models available from OMG; the QVT 1.2
models are perhaps the best.

Within OMG there has occasionally been discussion about moving from MOF
to Ecore in order to exploit the more coherent tooling.

Today, the implementer of a specification generally should expect to do
significant work with old 'official' models and probably use a certain
amount of common sense to resolve difficulties.

So your Rose problems may well be down to questionable models that were
never exposed to the increasingly strong validation checks that EMF now
imposes.

Regards

Ed Willink


On 24/03/2015 23:05, lami P wrote:
> to Christian W. DamusFriend,
> I import the Rose model to Ecore.
> My general aim is to extend the CWM (Common Warehouse Metamodel)
> metamodel , so i import its Rose model (.mdl that i found in the OMG
> group) to ecore , when i load the model i find the errors displayed
> before, but i have always the possibility to pass to the next step.
> In this case, i generate the .ecore, .genmodel, .edit and .editor and
> i can also creat instances of that model, but when i validate the
> .ecore, lot of errors appear and some relations between model
> instances are missing
> As you said, i think that the errors are comming from the Rose model
> (which dates from 2003 !!)
>
> i hope to find an alternative
>
Previous Topic:find elements by type and by name
Next Topic:how to create a UML2 V2.1 model
Goto Forum:
  


Current Time: Fri Jan 19 00:09:38 GMT 2018

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

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