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:
Was this topic helpful?
Document Information
Modified date:
10 September 2020
UID
swg21291351