IBM Support

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

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.

[{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Transformation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0.4;8.0.4.1;8.0.4.2;8.5;8.5.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 September 2020

UID

swg21625210