IBM Support

Opening a BPMN diagram gives the "Could not open the editor..." error

Troubleshooting


Problem

In IBM Rational Software Architect, if you try to open a BPMN diagram, the "Could not open the editor: An unexpected exception was thrown" error message appears.

Symptom

Double-click the .bpmx model from the Project Explorer in order to open the BPMN diagram. The Could not open the editor: An unexpected exception was thrown error will appear as in the screenshot:


The following output is generated in the .log file:

!MESSAGE Unable to create editor ID com.ibm.xtools.bpmn2.ui.diagram.internal.part.Bpmn2DiagramEditorID: An unexpected exception was thrown.

!STACK 0

java.lang.NullPointerException

at org.eclipse.gmf.runtime.diagram.ui.services.editpart.EditPartService.createEditPart(Unknown Source)

at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents(Unknown Source)

at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewerContents(Unknown Source)

at com.ibm.xtools.bpmn2.modeler.ui.internal.editor.CustomBpmn2DiagramEditorWithHeader.initializeGraphicalViewerContents(Unknown Source)

at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initializeGraphicalViewer(Unknown Source)...

It is not possible to open the BPMN diagram.

Cause

You modified a model that had dependencies on another model, which means that your changes to the first model caused the second one to change as well.

However, although you saved the changes to the first model and then closed it, you did not save the changes to the second model, before you closed it.

As a result, the two models are no longer synchronized with each other and there are broken references that cause the second BPMN model to be corrupted.

Resolving The Problem

WORKAROUND

Load the BPMN model that throws the error into a new workspace in order to recover the diagram.

[{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4JCV","label":"Rational Software Architect for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Modeling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB15","label":"Integration"}}]

Document Information

Modified date:
10 September 2020

UID

swg21622787