执行gef5的zest样本时出现异常

问题描述

我使用的版本:jdk11 jfx11 eclipse202012R gef5.3.2

当我运行任何 zest 示例时,我在拖动和移动节点时抛出异常。

有人可以帮我吗?

如果谁能给出一个MVC模型或者可以应用的例子,那将是最好的。 这是例外,当我运行 org.eclipse.gef.zest.examples.SimpleExample 时,拖动和节点:

*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5c9003f9 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,which is the actual type inferred from the instance.
            You should probably adjust your binding to provide a type key using AdapterKey.get(<type>,SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@62dd03b7 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@123226b5 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_LINK_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@625c78f3 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,FOCUS_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5377f8c1 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@47a36c4d Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@772cd355 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_LINK_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@1c75668a Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,FOCUS_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@5cf61c20 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:403). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_HANDLES_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@3321b77 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:413). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@1252fb09 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:423). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,SELECTION_LINK_FeedBACK_GEOMETRY_PROVIDER).
*** WARNING: The actual type of adapter org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider@3f279475 Could not be inferred from the binding at org.eclipse.gef.zest.fx.ZestFxModule.bindNodePartAdapters(ZestFxModule.java:437). The adapter will only be retrievable via key types assignable to org.eclipse.gef.mvc.fx.providers.ShapeBoundsProvider,FOCUS_FeedBACK_GEOMETRY_PROVIDER).

java.lang.IllegalStateException: java.lang.IllegalArgumentException: Not enough bend points supplied!
          at org.eclipse.gef.mvc.fx.policies.BendConnectionPolicy.locallyExecuteOperation(BendConnectionPolicy.java:587)
          at org.eclipse.gef.mvc.fx.policies.BendConnectionPolicy.move(BendConnectionPolicy.java:677)
          at org.eclipse.gef.mvc.fx.handlers.ConnectedSupport.init(ConnectedSupport.java:159)
          at org.eclipse.gef.mvc.fx.handlers.TranslateSelectedOnDragHandler.startDrag(TranslateSelectedOnDragHandler.java:350)
          at org.eclipse.gef.zest.fx.handlers.TranslateSelectedAndRelocateLabelsOnDragHandler.startDrag(TranslateSelectedAndRelocateLabelsOnDragHandler.java:60)
          at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.press(ClickDragGesture.java:393)
          at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture$1.handle(ClickDragGesture.java:100)
          at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture$1.handle(ClickDragGesture.java:1)
          at javafx.base/com.sun.javafx.event.CompositeEventHandler$normalEventFilterRecord.handleCapturingEvent(CompositeEventHandler.java:282)
          at javafx.base/com.sun.javafx.event.CompositeEventHandler.dispatchCapturingEvent(CompositeEventHandler.java:98)

java.lang.NullPointerException
          at org.eclipse.gef.mvc.fx.handlers.AbstractHandler.restoreRefreshVisuals(AbstractHandler.java:256)
          at org.eclipse.gef.mvc.fx.handlers.TranslateSelectedOnDragHandler.abortDrag(TranslateSelectedOnDragHandler.java:67)
          at org.eclipse.gef.zest.fx.handlers.TranslateSelectedAndRelocateLabelsOnDragHandler.abortDrag(TranslateSelectedAndRelocateLabelsOnDragHandler.java:37)
          at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.doAbortPolicies(ClickDragGesture.java:236)
          at org.eclipse.gef.mvc.fx.gestures.AbstractGesture.abortPolicies(AbstractGesture.java:66)
          at org.eclipse.gef.mvc.fx.gestures.ClickDragGesture.abortPolicies(ClickDragGesture.java:228)
          at org.eclipse.gef.mvc.fx.gestures.AbstractGesture$1.changed(AbstractGesture.java:124)
          at org.eclipse.gef.mvc.fx.gestures.AbstractGesture$1.changed(AbstractGesture.java:1)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
          at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
          at javafx.base/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
          at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
          at javafx.base/javafx.beans.property.BooleanPropertyBase.access$000(BooleanPropertyBase.java:50)
          at javafx.base/javafx.beans.property.BooleanPropertyBase$Listener.invalidated(BooleanPropertyBase.java:239)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:136)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
          at javafx.base/javafx.beans.binding.BooleanBinding.invalidate(BooleanBinding.java:174)
          at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer.onWindowFocusedChanged(InfiniteCanvasViewer.java:486)
          at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer.access$6(InfiniteCanvasViewer.java:484)
          at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer$3.changed(InfiniteCanvasViewer.java:99)
          at org.eclipse.gef.mvc.fx.viewer.InfiniteCanvasViewer$3.changed(InfiniteCanvasViewer.java:1)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(ExpressionHelper.java:360)
          at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
          at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)