微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决执行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 举报,一经查实,本站将立刻删除。