Book a Demo

Author Topic: ExportPackageXMI() problem under EA 6.5  (Read 4156 times)

monio

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
ExportPackageXMI() problem under EA 6.5
« on: March 17, 2009, 01:36:13 am »
Hi There,

I have been having a problem using the ExportPackageXMI method. I put in the enum EnumXMIType.xmiEA21 as the type I want to export, but the created XML is of type xmi.version="1.1". Any ideas how to export to type 2.1?

When I am using GUI interface all works great! I am using EA 6.5.

I can add that when I fire my code under EA 7.1 30 days trial it works to!

Pleas help me.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: ExportPackageXMI() problem under EA 6.5
« Reply #1 on: March 17, 2009, 02:24:36 am »
My guess - and it has been so long since I've used EA 6.x that I cannot be sure - is that the API export to XMI 2.x might have only shown up in EA 7.0.

Just in case, check the XMI itself; not just the header. Does it match the XMI 1.1 you get by hand, or the 2.1?

[edit]BTW, it might be cost effective for you to renew your license; you could then acquire the current version. Sparx used to make this quite reasonable. You have to contact Sparx directly - there are instructions on the EA license page of the Sparx site. Scroll down a bit and you'll find a paragraph regarding renewal of expired licenses.[/edit]
« Last Edit: March 17, 2009, 02:30:12 am by Midnight »
No, you can't have it!

monio

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: ExportPackageXMI() problem under EA 6.5
« Reply #2 on: March 17, 2009, 03:03:09 am »
Thanks for fast answer.  

As I mention I use EA 6.5 and from gui I can export my project to both XMI 1.1 and XMI 2.1. When I read Java API files I see that everything looks good. But when I run my code it doesn't matter what kind of XMI i prefer it always export it to XMI 1.1. I don't know what is wrong :/
« Last Edit: March 17, 2009, 03:36:33 am by monio »

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: ExportPackageXMI() problem under EA 6.5
« Reply #3 on: March 17, 2009, 09:08:49 am »
There was a bug in the automation interface where the XMIType parameter of ExportPackageXMI() method was not being correctly used.  XMI would always export as XMI 1.1.  This issue was resolved in EA 7.0 build 818.  Update your EA installation to EA 7.0.818 or higher and this issue should be resolved.  Make sure to reference the updated SSJavaCOM.dll and eaapi.jar files included with the new EA installation from your Java code.

monio

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: ExportPackageXMI() problem under EA 6.5
« Reply #4 on: March 17, 2009, 07:41:14 pm »
Yes. And this is what i've received from support:


"This issue did exist in EA 6.5. But it been fixed since EA 7.0 Build 818. So, you need to upgrade your Build of EA. If you are a registered user and have purchased ( or upgraded ) your license in the last twelve months, you can download the latest Build from the registered users section at : http://www.sparxsystems.com.au/registered/index.html"

Thanks for help Aaron B and «Midnight».