开源改变世界!!

找不到具有首选 ID AutoLevelerTopComponent 的 TopComponent #744

推推 grbl 2年前 (2023-01-27) 111次浏览
关闭
peterverbrugge 打开了这个问题 2017 年 9 月 6 日 · 4条评论
关闭

找不到具有首选 ID AutoLevelerTopComponent 的 TopComponent#744

peterverbrugge 打开了这个问题 2017 年 9 月 6 日 · 4条评论

注释

找不到具有首选 ID AutoLevelerTopComponent 的 TopComponent #744
贡献者
彼得维尔布鲁日 评论了 2017 年 9 月 6 日  

早晨,

我尝试使用自调匀整功能,但不幸的是它立即向我显示了这个堆栈跟踪。
这是构建c1e66de

java.lang.IllegalStateException: Cannot find TopComponent with preferredID AutoLevelerTopComponent, see IDE log for more details. at org.openide.windows.OpenComponentAction.actionPerformed(OpenComponentAction.java:92) at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:199) at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95) at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116) at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99) at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:202) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6533) at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) at java.awt.Component.processEvent(Component.java:6298) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) at java.awt.Container.dispatchEventImpl(Container.java:2280) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) 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:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] 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)

我在 Debian 10 系统上将它与 grbl 0.9 控制器一起使用。我正在使用 run_platform.sh 启动构建。
java -v 报告:
openjdk 版本“1.8.0_141”
OpenJDK 运行时环境(构建 1.8.0_141-8u141-b15-3-b15)
OpenJDK 64 位服务器 VM(构建 25.141-b15,混合模式)

找不到具有首选 ID AutoLevelerTopComponent 的 TopComponent #744
贡献者作者

哦,显然这是 AutoLevelerTopComponent.java
als.zSurface 的第 142 行上的 ClassCastException 被装箱为 Double,然后在 Swing 内部转换为 Integer 的结果。

找不到具有首选 ID AutoLevelerTopComponent 的 TopComponent #744
贡献者作者

已通过提交#745解决