Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Mirko Sertic on January 15, 2009, 09:25:51 pm
-
Hi@all
I am using EA 7.0, and i am getting the following stacktrace:
java.lang.Exception:
at org.sparx.Collection.comGetAt(Native Method)
at org.sparx.Collection.GetAt(Collection.java:135)
at org.sparx.Collection$CollectionIterator.next(Collection.java:46)
when iterating over usecase constraints. The code works for 7.1, but it throws exceptions in 7.0. Is this normal and is there a workaround available to run it in 7.0?
Thanks in advance
Mirko
-
7.1 includes various bugfixes and extensions to the automation API so I believe that falls under this category.
If possible upgrade to 7.1, it is worth the improvements anyway.
On the other hand you might try to skip the Iterator class and access the constraints through a for or while loop.
You could also post your code fragment in question here so we can have a look at it.
Oliver