IBM Support

My Rhapsody plug-in crashes when exiting with system.exit

Troubleshooting


Problem

My Java API plug-in for IBM Rational Rhapsody crashes when it should be exiting the plug-in due to the system.exit call.

Diagnosing The Problem

You have used the system.exit function in your plug-in code, and Rhapsody crashes at that point in the code.

Resolving The Problem

The system.exit call should not be used within a Rhapsody Java API plug-in; terminating the execution of the plug-in in this way causes Rhapsody to crash. Instead, it is recommended to handle any errors that are encountered by outputting them to the Rhapsody log.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.6.1.4;7.6.1.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1;8.3","Edition":"Rational Rhapsody Architect for Software;Rational Rhapsody Architect for Systems Engineers;Rational Rhapsody Designer for Systems Engineers;Rational Rhapsody Developer","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22012136