| Migration from UML2 3.2.0 to 4.0 with Profiles and Stereotypes [message #1007411] |
Tue, 05 February 2013 13:48  |
Fredrik Robertssen Messages: 22 Registered: July 2009 |
Junior Member |
|
|
Hi,
I upgraded to UML 4.0 and have some troubles reading the models when it comes to stereotypes.
The model was saved with UML2 3.2, (ergo XMI 2.1) and included a profile that was applied with the dynamic technique.
Now, when loading the model with UML 4.0, i receive the following exception:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value '250' is not legal. (platform:/resource/example/Test.uml, 65, 132)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:406)
at org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain.loadResource(AdapterFactoryEditingDomain.java:405)
The line where loading fails is a stereotype, and the value an stored UMLPrimitiveTypes::String
Any idea why this happens?
Now, vice-versa, when I create a new model and save it useing UML 4.0, the values of the stereotypes (again, UMLPrimitiveTypes::String), are stored in a "strange" way:
<graphics:Shape xmi:id="_w4hNkPaXEeG_Gb8QAQ0kdw" x="ACED0005740003313830" y="ACED00057400023535" width="ACED0005740003363133" height="ACED00057400023534" base_Element="_wlI-kPaXEeG_Gb8QAQ0kdw"/>
Is this some sort of reference? If, so, I do not find where they point to.
Is there something I have not seen? I have read the migration guide, and I have tried to update the original profile specification, but it did not seem to change things.
Thanks for any help in advance!
|
|
|