Uploaded image for project: 'Kieler Pragmatics'
  1. Kieler Pragmatics
  2. KIPRA-1386

NullPointerException with Camunda Modeler

    XMLWordPrintable

    Details

      Description

      Tried to use KIELER Layout for Graphiti with Camunda Modeler (http://www.camunda.org/features/modeler.html) but I get an NullPointerException (see Details below).

      I tried to solve it by myself, but to be honest I did not really understand the whole Graphiti concept. At least I guess I tracked down the problem to the function calcInsets. Seems like that in some way the function relies on the GraphicAlgorithm tree whereas it should use the Shapes tree. But just a rough as, as I need did understand the whole concept.

      !ENTRY de.cau.cs.kieler.kiml.ui 4 0 2014-01-21 19:03:50.446
      !MESSAGE Error in monitored operation
      !STACK 0
      java.lang.NullPointerException
      at de.cau.cs.kieler.kiml.graphiti.KimlGraphitiUtil.calcInsets(KimlGraphitiUtil.java:371)
      at de.cau.cs.kieler.kiml.graphiti.GraphitiDiagramLayoutManager.createNode(GraphitiDiagramLayoutManager.java:251)
      at de.cau.cs.kieler.kiml.graphiti.GraphitiDiagramLayoutManager.buildLayoutGraphRecursively(GraphitiDiagramLayoutManager.java:229)
      at de.cau.cs.kieler.kiml.graphiti.GraphitiDiagramLayoutManager.buildLayoutGraph(GraphitiDiagramLayoutManager.java:171)
      at de.cau.cs.kieler.kiml.ui.diagram.DiagramLayoutEngine$1.preUIexec(DiagramLayoutEngine.java:183)
      at de.cau.cs.kieler.kiml.ui.util.MonitoredOperation.runUnmonitored(MonitoredOperation.java:186)
      at de.cau.cs.kieler.kiml.ui.util.MonitoredOperation.runUnmonitored(MonitoredOperation.java:170)
      at de.cau.cs.kieler.kiml.ui.diagram.DiagramLayoutEngine.layout(DiagramLayoutEngine.java:237)
      at de.cau.cs.kieler.kiml.ui.diagram.DiagramLayoutEngine.layout(DiagramLayoutEngine.java:127)
      at de.cau.cs.kieler.kiml.ui.diagram.DiagramLayoutEngine.layout(DiagramLayoutEngine.java:93)
      at de.cau.cs.kieler.kiml.ui.diagram.LayoutHandler.execute(LayoutHandler.java:72)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
      at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:850)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.handleWidgetSelection(HandledContributionItem.java:743)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.access$7(HandledContributionItem.java:727)
      at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem$4.handleEvent(HandledContributionItem.java:662)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      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:354)
      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

        Attachments

          Activity

            People

            Assignee:
            msp Miro Spoenemann [X] (Inactive)
            Reporter:
            marvin Marvin Ludwig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: