MPS diagram core exception

Hello. When trying to using the diagram projection on my DSL im stumbled when i try to create a connection. Now, i only need this connection represented on the diagram, i do not need it to be logical.

 

When trying to connect two diagram boxes, i get a core exception. The stack trace will be at the bottom of this post.

 

Even when using ports in these boxes, i still get the same exception, and i cant find anyone with the same error. The version of MPS i'm using is 2018.2, and i've tried 2018.3 to no avail.

 

Here is the stack trace:

java.lang.NullPointerException
at de.itemis.mps.editor.diagram.runtime.jgraph.EdgeDCell.isCurved(EdgeDCell.java:49)
at de.itemis.mps.editor.diagram.runtime.jgraph.MyInteractiveCanvas.intersects(MyInteractiveCanvas.java:21)
at com.mxgraph.swing.mxGraphComponent.getCellAt(mxGraphComponent.java:1912)
at com.mxgraph.swing.mxGraphComponent.getCellAt(mxGraphComponent.java:1859)
at com.mxgraph.swing.mxGraphComponent.getCellAt(mxGraphComponent.java:1847)
at com.mxgraph.swing.mxGraphComponent$mxGraphControl.getToolTipText(mxGraphComponent.java:4149)
at de.itemis.mps.editor.diagram.runtime.jgraph.MyGraphComponent$MyGraphControl.getToolTipText(MyGraphComponent.java:731)
at com.intellij.ide.IdeTooltipManager.isTooltipDefined(IdeTooltipManager.java:203)
at com.intellij.ide.IdeTooltipManager.maybeShowFor(IdeTooltipManager.java:175)
at com.intellij.ide.IdeTooltipManager.eventDispatched(IdeTooltipManager.java:150)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2430)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2321)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2280)
at java.awt.Component.dispatchEventImpl(Component.java:4799)
at java.awt.Container.dispatchEventImpl(Container.java:2295)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4539)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
at java.awt.Container.dispatchEventImpl(Container.java:2281)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

 

The editor freezes when i try to create a connection and i either have to restart it or drag the editor window out and re-seat it. After that, the connection isn't there.

 

Here is an image my editor at this point:

 

 

Any tips to fix this?

 

Thank you kindly

1 comment
Comment actions Permalink

Fixed it -- had to override the oncreate method for the relationships. Ended up having to make them in a logical way. 

 

Here it is if someone has the same problem:

 

0

Please sign in to leave a comment.