Error Exception in thread "main" java.lang.ClassCastException when using Execute as UML Model option in Rational Software Architect
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.
More support for:
Rational Software Architect
Software version: 8.0.4, 18.104.22.168, 22.214.171.124, 8.5, 8.5.1
Operating system(s): Windows
Reference #: 1625210
Modified date: 13 February 2013
Translate this page: