Hi,
I've to unmarshal an XML document produced by MagicDraw UML. Everything
works fine but the mapping below.
<object name="ownedAttribute"
smalltalkClass="XMI_MagicDrawUML.OwnedAttribute">
<attribute name="xmi:type" minOccurs="1" aspect="xmiType"
ref="xsd:string">
<simple baseType="xsd:string">
<enumeration value="uml:Property"/>
</simple>
</attribute>
<!-- <attribute name="type" minOccurs="0" aspect="typeAttr"
ref="xsd:string" /> -->
<attribute name="type" minOccurs="0" aspect="typeAttr"
ref="packagedElement">
<keyRef ref="elementKey">
<attribute name="type" ref="xsd:string"/>
</keyRef>
</attribute>
</object>
It fails with a SubscriptOutOfBoundsError in
KeyRefObjectMarshaler >> setRelation: relation for: target to: object
context:
where surprisingly
target = OrderedCollection ('_16_0_1_5fc01e1_1260964305366_843269_963')
object = 'uml:Property'
However, without the key reference (see XML comment) no error happens.
Here is an example snippet from the XML to be unmarshaled ,
"ownedAttribute" and "type" are in the empty namespace:
<ownedAttribute xmi:type='uml:Property'
type='_16_0_1_5fc01e1_1260964305366_843269_963'>
</ownedAttribute>
Do you have any idea what causes this error? Perhaps there is something
wrong with my mapping?
Best Regards,
Steffen
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc