Book a Demo

Author Topic: Duplicate ids in XMI 1.2 / UML 1.4 export  (Read 3265 times)

cwensel

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Duplicate ids in XMI 1.2 / UML 1.4 export
« on: April 30, 2007, 08:50:11 am »
Hi all

I am successfully loading a generated XMI from AndroMDA/NetBeans into EA.

But when I export the package back into XMI (think round trip), EA takes one of the imported AssociationClass elements and creates a 'duplicate' Association element. Part of the problem is that both elements have the same xmi.id.

This feels like a bug. Even if there should be a companion Association with every AssociationClass (which I dont think is true), they must always have differing id values.

I have confirmed the original imported XMI does not have duplicates of this or any sort.

the exported XMI header is

<XMI xmi.version = '1.2' xmlns:UML = 'org.omg.xmi.namespace.UML' timestamp = 'Mon Apr 30 10:33:03 PDT 2007'>

any ideas?

chris
« Last Edit: April 30, 2007, 09:12:34 am by cwensel »

cwensel

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Duplicate ids in XMI 1.2 / UML 1.4 export
« Reply #1 on: April 30, 2007, 09:15:30 am »
I've also noticed that the AssociationClass has all the Attribute elements, and the Association has all the AssociationEnd elements.

The XMI imported from has both Attribute and AssociationEnd elements under the AssociationClass.

chris
« Last Edit: April 30, 2007, 09:15:55 am by cwensel »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Duplicate ids in XMI 1.2 / UML 1.4 export
« Reply #2 on: April 30, 2007, 11:42:45 am »
Check your EA version and build. As I write the current build is 805.

There has been at least one recent post concerning duplicates in XMI round trips, and the problem had something to do with Associations - the specifics escape me.

This was apparently addressed by Sparx. I do not remember if this occurred before build 805 was issued. If not you will likely need to wait for 806, which should be along soon.

If this does not resolve your issue I suggest you report this as a bug. Use the Bug Report link on the Support page (via the link at the top of any forum page) or from the EA main menu choose Help | On-line Resources | Bug Report Page.

David
No, you can't have it!

cwensel

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Duplicate ids in XMI 1.2 / UML 1.4 export
« Reply #3 on: April 30, 2007, 12:04:38 pm »
thanks. i tested this with 805 and i still have dupes. i'll submit as a bug.