Book a Demo

Author Topic: Java Exception when calling Iterator.next  (Read 2866 times)

Mirko Sertic

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Java Exception when calling Iterator.next
« 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

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • ArenĀ“t we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Java Exception when calling Iterator.next
« Reply #1 on: January 16, 2009, 06:40:31 pm »
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