Troubleshooting
Problem
Attempts to use option Execute as UML Model in IBM Rational Software Architect leads to Error: Exception in thread "main" java.lang.ClassCastException.
Symptom
In debug console, after executing UML Model you will see the following error:
"Error: Exception in thread "main" java.lang.ClassCastException.
Cause
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.
Was this topic helpful?
Document Information
Modified date:
10 September 2020
UID
swg21625210