org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Invalid side argument: 0. Should be the value from PositionConstants: WEST, EAST, NORTH or SOUTH)

eclipse.org | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Eclipse Community Forums: GMF (Graphical Modeling Framework) ยป [GMF tooling] Figure with affixed children and internal children

    eclipse.org | 6 months ago
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Invalid side argument: 0. Should be the value from PositionConstants: WEST, EAST, NORTH or SOUTH)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid side argument: 0. Should be the value from PositionConstants: WEST, EAST, NORTH or SOUTH

      at org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator.calculateNextNonConflictingPosition()
    2. GMF Diagram UI
      BorderItemLocator.relocate
      1. org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator.calculateNextNonConflictingPosition(BorderItemLocator.java:447)
      2. org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator.locateOnBorder(BorderItemLocator.java:394)
      3. org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator.relocate(BorderItemLocator.java:550)
      3 frames
    3. Graphical Editing Framework Draw2d
      Figure.validate
      1. org.eclipse.draw2d.DelegatingLayout.layout(DelegatingLayout.java:75)
      2. org.eclipse.draw2d.Figure$LayoutNotifier.layout(Figure.java:1976)
      3. org.eclipse.draw2d.Figure.layout(Figure.java:1093)
      4. org.eclipse.draw2d.Figure.validate(Figure.java:1896)
      4 frames
    4. GMF Diagram UI
      BorderItemContainerFigure.validate
      1. org.eclipse.gmf.runtime.diagram.ui.internal.figures.BorderItemContainerFigure.validate(BorderItemContainerFigure.java:340)
      1 frame
    5. Graphical Editing Framework Draw2d
      Figure.validate
      1. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      1 frame
    6. GMF Diagram UI
      BorderedNodeFigure.validate
      1. org.eclipse.gmf.runtime.diagram.ui.figures.BorderedNodeFigure.validate(BorderedNodeFigure.java:262)
      1 frame
    7. Graphical Editing Framework Draw2d
      Figure.validate
      1. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      1 frame
    8. GMF Diagram UI
      DiagramEditPart$1.validate
      1. org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183)
      2. org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart$1.validate(DiagramEditPart.java:157)
      2 frames
    9. Graphical Editing Framework Draw2d
      Figure.validate
      1. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      1 frame
    10. GMF Diagram UI
      BorderItemsAwareFreeFormLayer.validate
      1. org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareFreeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:183)
      1 frame
    11. Graphical Editing Framework Draw2d
      DeferredUpdateManager.performValidation
      1. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      2. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      3. org.eclipse.draw2d.Figure.validate(Figure.java:1898)
      4. org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.calculatePreferredSize(FreeformViewport.java:25)
      5. org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractLayout.java:110)
      6. org.eclipse.draw2d.AbstractHintLayout.getPreferredSize(AbstractHintLayout.java:90)
      7. org.eclipse.draw2d.Figure.getPreferredSize(Figure.java:807)
      8. org.eclipse.draw2d.ScrollPaneSolver.solve(ScrollPaneSolver.java:82)
      9. org.eclipse.draw2d.FigureCanvas.layoutViewport(FigureCanvas.java:325)
      10. org.eclipse.draw2d.FigureCanvas.access$4(FigureCanvas.java:323)
      11. org.eclipse.draw2d.FigureCanvas$3.notifyValidating(FigureCanvas.java:292)
      12. org.eclipse.draw2d.UpdateManager.fireValidating(UpdateManager.java:143)
      13. org.eclipse.draw2d.DeferredUpdateManager.performValidation(DeferredUpdateManager.java:214)
      13 frames
    12. GMF Diagram UI
      DiagramGraphicalViewer$ToggleUpdateManager.performValidation
      1. org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$ToggleUpdateManager.performValidation(DiagramGraphicalViewer.java:116)
      1 frame
    13. Graphical Editing Framework Draw2d
      DeferredUpdateManager.performUpdate
      1. org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:190)
      1 frame
    14. GMF Diagram UI
      DiagramGraphicalViewer$ToggleUpdateManager.performUpdate
      1. org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalViewer$ToggleUpdateManager.performUpdate(DiagramGraphicalViewer.java:106)
      1 frame
    15. Graphical Editing Framework Draw2d
      DeferredUpdateManager$UpdateRequest.run
      1. org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:44)
      1 frame
    16. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4144)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
      4 frames
    17. Eclipse Workbench SWT
      PartRenderingEngine$9.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
      1 frame
    18. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    19. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
      1 frame
    20. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      1 frame
    21. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      1 frame
    22. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    23. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      1 frame
    24. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    25. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      1 frame
    26. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    27. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      4 frames
    28. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    29. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1414)
      4 frames