IBM Support

"Java to UML: Select a single UML model or an IContainer as the target" error when using transformation

Troubleshooting


Problem

Selecting a Package in a Model as the Source of a UML to Java transformation where the reverse transformation is enabled will give the error "Java to UML: Select a single UML model or an IContainer as the target" in IBM® Rational® Software Architect or IBM Rational Systems Developer 7.0.x

Symptom

If the you select a package contained in the target model as shown below:



the error Java to UML: Select a single UML model or an IContainer as the target will appear in the Problems view.

Resolving The Problem

Selecting the Model root directory (in the above case Test) will resolve the error.

With version 7.0.x, in order to proceed with the Java to UML transformation, only the Root model directory can be selected unlike for the UML to Java transformation where a model, package or class can be selected as the source.


Note that where a UML to Java transformation is created with the Reverse transformation enabled the error above will appear as well. The reason is that a Java to UML transformation will use the same transformation configuration.

With version 7.5.x, if you have enabled the Reverse Transformation with the "Reconcile" option, you need to choose
- for the UML to Java, the root model as the source and the Java project as the target
- for the Java to UML, the Java project as the source and the root model as the target.
Note that choosing the Conceptual or Mixed transformation protocol will remove these constraints.

Here are the different options possible for the transformations in version 7.5.x:







    [{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Transformation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSJP3D","label":"Rational Systems Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Transformation","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.5;7.0.5.1;7.0.5.2","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

    Document Information

    Modified date:
    10 September 2020

    UID

    swg21291351