IBM Support

Opening a sequence diagram after Rational Software Architect upgrade results in "Could not open the editor..." error

Troubleshooting


Problem

Attempts to open a sequence diagram after upgrading a UML model with IBM Rational Software Architect results in the error "Could not open the editor...".

Symptom

After you upgrade a model from Rational Software Architect v7.0.0.1 to Rational Software Architect v7.5.4 (or a higher version), you will get a Could not open the editor: Index: 0, Size: 0 error message, if you try to open a sequence diagram.

It is not possible to open this diagram.

The .log output is as follows:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

 at java.util.ArrayList.get(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.draw2d.LayoutHelper.getFragmentReferencePosition(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.RectangularFragment.calculateBounds(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.CombinedFragmentEditPart.calculateBounds(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.RectangularFragment.refreshBounds(Unknown Source)

 at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeEditPart.refreshVisuals(Unknown Source)

 at com.ibm.xtools.uml.ui.diagram.internal.editparts.BaseFrameEditPart.refreshVisuals(Unknown Source)

 at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

 at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

 at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$3(Unknown Source)

 at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(Unknown Source)

 at org.eclipse.gmf.runtime.emf.core.internal.domain.MSLTransactionalEditingDomain.runExclusive(Unknown Source)

 at org.eclipse.gmf.runtime.emf.core.internal.domain.MSLEditingDomain.runExclusive(Unknown Source)

 at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.refresh(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.RectangularFragment.refresh(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.CombinedFragmentEditPart.refresh(Unknown Source)

 at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Unknown Source)

 at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotify(Unknown Source)

 at org.eclipse.gef.editparts.AbstractEditPart.addChild(Unknown Source)

 at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.addChild(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.InteractionOperandEditPart.addChild(Unknown Source)

 at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(Unknown Source)

 at com.ibm.xtools.uml.ui.diagrams.sequence.internal.editparts.InteractionOperandEditPart.refreshChildren(Unknown Source)

 at org.eclipse.gef.editparts.AbstractEditPart.refresh(Unknown Source)

 at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(Unknown Source)

Cause

Unknown.

Resolving The Problem

WORKAROUND:

The following steps have been used to circumvent the issue:

  1. Install IBM Rational Software Modeler v7.0.5

    Note: If you cannot install Rational Software Modeler v7.0.5 at your site, contact IBM Rational Client Support.

  2. Open Rational Software Modeler v7.0.5 and load the model into this version

  3. Open the sequence diagram in question to make sure that opens without errors

  4. Save the model in version 7.0.5 and close Rational Software Modeler v7.0.5

  5. Open Rational Software Architect v7.5.4

  6. Load the model you saved in version 7.0.5.

The sequence diagram will now open without errors.

[{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling: Diagrams","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.4","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}},{"Product":{"code":"SS4JE2","label":"Rational Software Architect Standard Edition"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling: Diagrams","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.4","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling: Diagrams","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.5.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 September 2018

UID

swg21573862