Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Motorpsycho on July 17, 2008, 07:54:29 am
-
Hello, i am having trouble accessing my database stored models from JAVA. I can connect to the database and open the repository but access to models, packages or elements only returns "null". See the following code snippet:
DatabaseRepository = new org.sparx.Repository();
DatabaseRepository.OpenFile("eap --- DBType=0;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=eap");
DatabaseRepository.GetLatestUpdate(); // works => Repository is ready and opened
Collection<org.sparx.Package> models = DatabaseRepository.GetModels(); // always returns "null" though there are models existing
org.sparx.Package p = DatabaseRepository.GetPackageByGuid("<guid>"); // returns "null" if <guid> is existing, else throws java.lang.exception
I didn't had this problem with 6.x release of EA. Anyone any idea what i might be missing?
-
There was a problem with the early 7.1 builds that caused this. The latest build should fix your problem. (And searching would have helped you get this answer sooner...)