Attempts to use option Execute as UML Model in IBM Rational Software Architect leads to Error: Exception in thread "main" java.lang.ClassCastException.
In debug console, after executing UML Model you will see the following error:
"Error: Exception in thread "main" java.lang.ClassCastException.
The problem is a known limitation which is documented in the translation rules document:"This translation rule assumes that the interaction that is used belongs to the same classifier as the Interaction Use".
Diagnosing the problem
If you are re-using Interaction with same name you will get this error.
Resolving the problem
In order to resolve the problem ensure to give a different names to each Interaction also ensure that Interactions are present under the same class.