Error Exception in thread "main" java.lang.ClassCastException when using Execute as UML Model option in Rational Software Architect

Technote (troubleshooting)


Problem(Abstract)

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.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Software Architect
Transformation

Software version:

8.0.4, 8.0.4.1, 8.0.4.2, 8.5, 8.5.1

Operating system(s):

Windows

Reference #:

1625210

Modified date:

2013-02-13

Translate my page

Machine Translation

Content navigation