Data corruption: now cannot open my diagram

error in user interface: java.lang.NullPointerException: Cannot invoke “org.eclipse.draw2d.IFigure.getParent()” because “figure” is null

errorS in files (I selected only first lines):
!MESSAGE Unhandled event loop exception
ava.lang.ClassCastException: class org.bonitasoft.studio.diagram.custom.parts.CustomSequenceFlowEditPart cannot be cast to class org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart (org.bonitasoft.studio.diagram.custom.parts.CustomSequenceFlowEditPart is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @19540247; org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @47ccb397)
at org.bonitasoft.studio.diagram.custom.editPolicies.DraggableElementCreationTool.createItem(DraggableElementCreationTool.java:297)
at org.bonitasoft.studio.diagram.custom.editPolicies.DraggableElementCreationTool.handleButtonUp(DraggableElementCreationTool.java:284)

java.util.ConcurrentModificationException
at java.base/java.util.ArrayList.forEach(ArrayList.java:1513)
at org.eclipse.draw2d.Figure.validate(Figure.java:2065)
at org.eclipse.draw2d.Viewport.validate(Viewport.java:365)
at org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane.validate(AnimatableScrollPane.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at org.eclipse.draw2d.Figure.validate(Figure.java:2065)

java.lang.NullPointerException: Cannot invoke “org.eclipse.gef.commands.Command.getLabel()” because “command” is null
at org.bonitasoft.studio.diagram.custom.editPolicies.DraggableElementCreationTool.createItem(DraggableElementCreationTool.java:304)
at org.bonitasoft.studio.diagram.custom.editPolicies.DraggableElementCreationTool.handleButtonUp(DraggableElementCreationTool.java:284)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1188)
at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:583)

I checked the XML, and it seems to be correct: lines and pools seems to be coherents at least.

Hi @kaltoum.maison

Could you give more details on what happened? Which version of Bonita are you using?

Thanks,

Hi Thalia,

I was exchanging two pools positions, it would not respond, then I closed it and Voilà…

This seems weird. I’ve sent a message to our R&D for advise. Hopefully they’ll be able to take a look and answer you directly on this thread.

Thank you very much.
Do you know how long this process can get?