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:
- 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.
- Open Rational Software Modeler v7.0.5 and load the model into this version
- Open the sequence diagram in question to make sure that opens without errors
- Save the model in version 7.0.5 and close Rational Software Modeler v7.0.5
- Open Rational Software Architect v7.5.4
- Load the model you saved in version 7.0.5.
The sequence diagram will now open without errors.
Was this topic helpful?
Document Information
Modified date:
29 September 2018
UID
swg21573862