Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Error opening bpmn file(Editor assertion failed)
Error opening bpmn file [message #889785] Tue, 19 June 2012 15:12 Go to next message
Curtis Salisbury is currently offline Curtis SalisburyFriend
Messages: 3
Registered: June 2012
Junior Member
When attempting to open a bpmn file, I am getting the following error:


org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1065)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
Re: Error opening bpmn file [message #889989 is a reply to message #889785] Wed, 20 June 2012 13:45 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Can you provide more details about where the bpmn file came from? Was it created with the New File wizard or copied into your workspace? If possible, can you post the process file?

Thanks,
Bob
Re: Error opening bpmn file [message #890155 is a reply to message #889989] Thu, 21 June 2012 10:04 Go to previous messageGo to next message
Bernhard Blank is currently offline Bernhard BlankFriend
Messages: 2
Registered: June 2012
Junior Member
Here is a default example of a BPMN2 process created by the editor. Same Assertion error

After it was closed i had opened it once in XML and then displayed it again. Afterwards i could not open it again in the Editor.

Any help/info would be helpful. Thank you.
Please note all links have a space added, to meet posting guidelines.

<?xml version="1.0" encoding="UTF-8"?><definitions xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance" xmlns="http: //www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http: //www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http: //www.omg.org/spec/DD/20100524/DC" xmlns:di="http: //www.omg.org/spec/DD/20100524/DI" xmlns:tns="http: //www.jboss.org/drools" xsi:schemaLocation="http: //www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="Definition" expressionLanguage="http: //www.mvel.org/2.0" targetNamespace="http: //www.jboss.org/drools" typeLanguage="http: //www.java.com/javaTypes"><process id="com.sample.bpmn" tns:packageName="com.sample.bpmn" name="Claim Service process" isExecutable="true" processType="Private">
    <startEvent id="StartProcess_1" name="StartProcess">
      <outgoing>SequenceFlow_1</outgoing>
    </startEvent>
    <serviceTask id="ServiceTask_1" name="Claim Service Task" implementation="##unspecified">
      <incoming>SequenceFlow_1</incoming>
      <outgoing>SequenceFlow_2</outgoing>
    </serviceTask>
    <businessRuleTask id="BusinessRuleTask_1" tns:ruleFlowGroup="" name="Business Rule Task" implementation="##unspecified">
      <incoming>SequenceFlow_2</incoming>
      <outgoing>SequenceFlow_3</outgoing>
    </businessRuleTask>
    <exclusiveGateway id="ExclusiveGateway_1" name="Business Rule Gateway" gatewayDirection="Diverging">
      <incoming>SequenceFlow_3</incoming>
      <outgoing>SequenceFlow_4</outgoing>
      <outgoing>SequenceFlow_5</outgoing>
    </exclusiveGateway>
    <serviceTask id="ServiceTask_2" name="Risk Assessment Service" implementation="##unspecified">
      <incoming>SequenceFlow_4</incoming>
      <outgoing>SequenceFlow_9</outgoing>
    </serviceTask>
    <exclusiveGateway id="ExclusiveGateway_2" name="Gateway 2" gatewayDirection="Diverging">
      <incoming>SequenceFlow_9</incoming>
      <outgoing>SequenceFlow_7</outgoing>
      <outgoing>SequenceFlow_10</outgoing>
    </exclusiveGateway>    
    <serviceTask id="ServiceTask_3" name="Claim Approval Service" implementation="##unspecified">
      <incoming>SequenceFlow_5</incoming>
      <incoming>SequenceFlow_10</incoming>
      <outgoing>SequenceFlow_6</outgoing>
    </serviceTask>
    <scriptTask id="ScriptTask_1" name="Reply Processing">
      <incoming>SequenceFlow_6</incoming>
      <incoming>SequenceFlow_7</incoming>
      <outgoing>SequenceFlow_8</outgoing>
    </scriptTask>
    <endEvent id="EndEvent_1" name="End Process">
      <incoming>SequenceFlow_8</incoming>
    </endEvent>
    <sequenceFlow id="SequenceFlow_1" tns:priority="1" name="" sourceRef="StartProcess_1" targetRef="ServiceTask_1"/>
    <sequenceFlow id="SequenceFlow_2" tns:priority="1" name="" sourceRef="ServiceTask_1" targetRef="BusinessRuleTask_1"/>
    <sequenceFlow id="SequenceFlow_3" tns:priority="1" name="" sourceRef="BusinessRuleTask_1" targetRef="ExclusiveGateway_1"/>
    <sequenceFlow id="SequenceFlow_4" tns:priority="1" name="" sourceRef="ExclusiveGateway_1" targetRef="ServiceTask_2"/>
    <sequenceFlow id="SequenceFlow_5" tns:priority="1" name="" sourceRef="ExclusiveGateway_1" targetRef="ServiceTask_3"/>
    <sequenceFlow id="SequenceFlow_6" tns:priority="1" name="" sourceRef="ServiceTask_3" targetRef="ScriptTask_1"/>
    <sequenceFlow id="SequenceFlow_7" tns:priority="1" name="" sourceRef="ExclusiveGateway_2" targetRef="ScriptTask_1"/>
    <sequenceFlow id="SequenceFlow_8" tns:priority="1" name="" sourceRef="ScriptTask_1" targetRef="EndEvent_1"/>
    <sequenceFlow id="SequenceFlow_9" tns:priority="1" name="" sourceRef="ServiceTask_2" targetRef="ExclusiveGateway_2"/>
    <sequenceFlow id="SequenceFlow_10" tns:priority="1" name="" sourceRef="ExclusiveGateway_2" targetRef="ServiceTask_3"/>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="com.sample.bpmn">
      <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="_1">
        <dc:Bounds height="48.0" width="48.0" x="251.0" y="66.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ServiceTask_1" bpmnElement="ServiceTask_1">
        <dc:Bounds height="50.0" width="110.0" x="220.0" y="150.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_BusinessRuleTask_1" bpmnElement="BusinessRuleTask_1">
        <dc:Bounds height="50.0" width="160.0" x="210.0" y="230.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ExclusiveGateway_1" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
        <dc:Bounds height="50.0" width="50.0" x="265.0" y="310.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ServiceTask_2" bpmnElement="ServiceTask_2">
        <dc:Bounds height="50.0" width="110.0" x="142.0" y="400.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_3">
        <dc:Bounds height="50.0" width="110.0" x="395.0" y="395.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1">
        <dc:Bounds height="50.0" width="110.0" x="280.0" y="480.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
        <dc:Bounds height="48.0" width="48.0" x="314.0" y="560.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ServiceTask_1">
        <di:waypoint xsi:type="dc:Point" x="275.0" y="114.0"/>
        <di:waypoint xsi:type="dc:Point" x="275.0" y="150.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_ServiceTask_1" targetElement="BPMNShape_BusinessRuleTask_1">
        <di:waypoint xsi:type="dc:Point" x="275.0" y="200.0"/>
        <di:waypoint xsi:type="dc:Point" x="290.0" y="230.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_BusinessRuleTask_1" targetElement="BPMNShape_ExclusiveGateway_1">
        <di:waypoint xsi:type="dc:Point" x="290.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="290.0" y="310.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ServiceTask_2">
        <di:waypoint xsi:type="dc:Point" x="265.0" y="335.0"/>
        <di:waypoint xsi:type="dc:Point" x="197.0" y="400.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_ExclusiveGateway_1" targetElement="BPMNShape_ServiceTask_3">
        <di:waypoint xsi:type="dc:Point" x="316.0" y="335.0"/>
        <di:waypoint xsi:type="dc:Point" x="395.0" y="420.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="BPMNShape_ServiceTask_3" targetElement="BPMNShape_ScriptTask_1">
        <di:waypoint xsi:type="dc:Point" x="395.0" y="420.0"/>
        <di:waypoint xsi:type="dc:Point" x="335.0" y="480.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_ScriptTask_1">
        <di:waypoint xsi:type="dc:Point" x="252.0" y="425.0"/>
        <di:waypoint xsi:type="dc:Point" x="335.0" y="480.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_EndEvent_1">
        <di:waypoint xsi:type="dc:Point" x="335.0" y="530.0"/>
        <di:waypoint xsi:type="dc:Point" x="338.0" y="560.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="BPMNShape_ServiceTask_2" targetElement="BPMNShape_ExclusiveGateway_2">
        <di:waypoint xsi:type="dc:Point" x="300.0" y="520.0"/>
        <di:waypoint xsi:type="dc:Point" x="300.0" y="540.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="BPMNShape_ExclusiveGateway_2" targetElement="BPMNShape_ServiceTask_3">
        <di:waypoint xsi:type="dc:Point" x="310.0" y="570.0"/>
        <di:waypoint xsi:type="dc:Point" x="310.0" y="580.0"/>
      </bpmndi:BPMNEdge>
	</bpmndi:BPMNPlane>      
  </bpmndi:BPMNDiagram>


</definitions>
Re: Error opening bpmn file [message #890264 is a reply to message #890155] Thu, 21 June 2012 16:21 Go to previous messageGo to next message
Andreas Drobisch is currently offline Andreas DrobischFriend
Messages: 1
Registered: June 2012
Junior Member
This DI Information is wrong: <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="_1"> as it references the non existing element "_1". It should be: <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartProcess_1"> . Did you edit the ID manually or in the editor?
Re: Error opening bpmn file [message #890276 is a reply to message #890264] Thu, 21 June 2012 17:50 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

There may be other problems with this process file as well; for instance there is no BPMNShape object for Exclusive_Gateway_2. The editor requires that all BPMN elements defined in the process have corresponding DI elements. It really looks like this file was seriously corrupted somehow...
Re: Error opening bpmn file [message #890455 is a reply to message #890276] Fri, 22 June 2012 10:35 Go to previous messageGo to next message
Bernhard Blank is currently offline Bernhard BlankFriend
Messages: 2
Registered: June 2012
Junior Member
No i didnt edit it at all, i just drew it. I did have it open once as an XML, just to copy it out.
I will attempt to reproduce the issue. Thanks again for your input.
Re: Error opening bpmn file [message #890493 is a reply to message #890455] Fri, 22 June 2012 12:20 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Thanks Bernhard. If you are able to repro this, please report it in bugzilla here:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=BPMN2Modeler
Re: Error opening bpmn file [message #891975 is a reply to message #890493] Tue, 26 June 2012 18:01 Go to previous messageGo to next message
Midhat Ali is currently offline Midhat AliFriend
Messages: 6
Registered: June 2012
Junior Member
I have the same problem with choreography diagrams created with eclipse
Re: Error opening bpmn file [message #892514 is a reply to message #889785] Thu, 28 June 2012 14:01 Go to previous message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Sorry gang, a recent change has broken the New File wizard. It's fixed now and the new build has been published to the update site.

Enjoy!
Bob
Previous Topic:Property Sheet
Next Topic:BPMN2 Modeller update site failing
Goto Forum:
  


Current Time: Fri Apr 19 15:26:14 GMT 2024

Powered by FUDForum. Page generated in 0.02205 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top