Book a Demo

Author Topic: Broken Java API in AE 7.1  (Read 5626 times)

ovsttun

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Broken Java API in AE 7.1
« on: April 02, 2008, 05:05:02 pm »
I need to use the Java API for Transformation purposes and have discovered what seems as a showstopper bug in the 7.1 release.

The reported issue in version 7.1 is for me now a showstopper for usage of the Java API.

Similar bug problems have been reported here http://uml2ea.blogspot.com/

Replication of the issue :

1)
Create a default project by File->New Project... called test.eap
Include only Class Model
You now have a dummy eap file

2)
Run the following Java program
(I have used Java JDK version 1.6.0_02)

import org.sparx.Package;
import org.sparx.Repository;
import org.sparx.Collection;

public class Test2 {

   public static void main(String[] args) {
       Repository rep = new Repository();
       rep.OpenFile("test.eap");
       Collection<Package> packs = rep.GetModels();
   }
}

The following Exception is generated  
Exception in thread "main" java.lang.Exception: I
     at org.sparx.Repository.comGetModels(Native Method)
     at org.sparx.Repository.GetModels(Repository.java:590)
     at Test2.main(Test2.java:10)

I have used the eaapi.jar and SSJavaCOM.dll distributed with the EA 7.1. 828 running under on Win XP SP2

SaschaR

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Broken Java API in AE 7.1
« Reply #1 on: April 22, 2008, 11:18:21 pm »
I have noticed the same issue, is there a workaround or a new Version of the eaapi.jar / SSJavaCom.dll ?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Broken Java API in AE 7.1
« Reply #2 on: April 23, 2008, 08:12:51 am »
It should be fixed in build 829.