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