tsonglew / intellij-etcdhelper

IntelliJ platform etcd plugin
https://plugins.jetbrains.com/plugin/19924-etcdhelper
MIT License
29 stars 3 forks source link

Getting NullPointerException when connecting to ETCD #92

Open martinb-uk opened 3 months ago

martinb-uk commented 3 months ago

Describe the bug After configuring a connection and expecting it to connect, instead IntelliJ is displaying an error message, and the log is displaying a NullPointerException.

To Reproduce Setup a new connection and expect it to connect. I have tested both TLS + non-TLS connections but see the same issue on both.

Expected behavior Connection to work successfully.

Screenshots image

Desktop (please complete the following information): IntelliJ IDEA 2024.1.3 (Community Edition) on Windows

Additional context The etcd-manager tool is able to successfully connect and display the cluster, so I am quite confident there is nothing wrong with ETC/connectivity etc.

2024-08-13 11:27:45,739 [1825169953]   INFO - #com.github.tsonglew.etcdhelper.service.ConnectionSettings - connections after add: [ETCDDevExperamental(@https://ukdc2-g7-psc251.worldpaytd.local:2379), ETCD_J1(@https://ukdc2-j1-pgg01.worldpaytd.local:2379,https://ukdc2-j1-pgg02.worldpaytd.local:2379)]
2024-08-13 11:27:45,742 [1825169956]   INFO - #com.github.tsonglew.etcdhelper.client.impl.EtcdClient - invalid connection info
2024-08-13 11:27:51,769 [1825175983]   INFO - #com.github.tsonglew.etcdhelper.client.impl.EtcdClient - get by prefix error: null
2024-08-13 11:27:51,770 [1825175984]   INFO - STDERR - java.lang.NullPointerException
2024-08-13 11:27:51,770 [1825175984]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.client.impl.EtcdClient.getByPrefix(EtcdClient.kt:209)
2024-08-13 11:27:51,771 [1825175985]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.view.editor.EtcdKeyTreeDisplayPanel.renderKeyTree(EtcdKeyTreeDisplayPanel.kt:117)
2024-08-13 11:27:51,771 [1825175985]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.view.editor.EtcdKeyTreeDisplayPanel.renderKeyTree$default(EtcdKeyTreeDisplayPanel.kt:115)
2024-08-13 11:27:51,771 [1825175985]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.view.editor.EtcdKeyTreeDisplayPanel$createRefreshAction$1$1.invoke(EtcdKeyTreeDisplayPanel.kt:136)
2024-08-13 11:27:51,771 [1825175985]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.view.editor.EtcdKeyTreeDisplayPanel$createRefreshAction$1$1.invoke(EtcdKeyTreeDisplayPanel.kt:136)
2024-08-13 11:27:51,771 [1825175985]   INFO - STDERR -  at com.github.tsonglew.etcdhelper.action.CustomAction.actionPerformed(CustomAction.kt:49)
2024-08-13 11:27:51,772 [1825175986]   INFO - STDERR -  at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:234)
2024-08-13 11:27:51,772 [1825175986]   INFO - STDERR -  at com.intellij.openapi.actionSystem.impl.ActionButton.lambda$performAction$2(ActionButton.java:213)
2024-08-13 11:27:51,772 [1825175986]   INFO - STDERR -  at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1166)
2024-08-13 11:27:51,772 [1825175986]   INFO - STDERR -  at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.kt:321)
2024-08-13 11:27:51,773 [1825175987]   INFO - STDERR -  at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:213)
2024-08-13 11:27:51,773 [1825175987]   INFO - STDERR -  at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:531)
2024-08-13 11:27:51,773 [1825175987]   INFO - STDERR -  at java.desktop/java.awt.Component.processEvent(Component.java:6422)
2024-08-13 11:27:51,773 [1825175987]   INFO - STDERR -  at java.desktop/java.awt.Container.processEvent(Container.java:2266)
2024-08-13 11:27:51,773 [1825175987]   INFO - STDERR -  at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5027)
2024-08-13 11:27:51,774 [1825175988]   INFO - STDERR -  at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
2024-08-13 11:27:51,774 [1825175988]   INFO - STDERR -  at java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)
2024-08-13 11:27:51,774 [1825175988]   INFO - STDERR -  at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4969)
2024-08-13 11:27:51,774 [1825175988]   INFO - STDERR -  at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4583)
2024-08-13 11:27:51,775 [1825175989]   INFO - STDERR -  at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4524)
2024-08-13 11:27:51,775 [1825175989]   INFO - STDERR -  at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
2024-08-13 11:27:51,775 [1825175989]   INFO - STDERR -  at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2809)
2024-08-13 11:27:51,775 [1825175989]   INFO - STDERR -  at java.desktop/java.awt.Component.dispatchEvent(Component.java:4855)
2024-08-13 11:27:51,776 [1825175990]   INFO - STDERR -  at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:794)
2024-08-13 11:27:51,776 [1825175990]   INFO - STDERR -  at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:739)
2024-08-13 11:27:51,776 [1825175990]   INFO - STDERR -  at java.desktop/java.awt.EventQueue$3.run(EventQueue.java:733)
2024-08-13 11:27:51,776 [1825175990]   INFO - STDERR -  at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
2024-08-13 11:27:51,776 [1825175990]   INFO - STDERR -  at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
2024-08-13 11:27:51,777 [1825175991]   INFO - STDERR -  at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
2024-08-13 11:27:51,777 [1825175991]   INFO - STDERR -  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:766)
2024-08-13 11:27:51,777 [1825175991]   INFO - STDERR -  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:764)
2024-08-13 11:27:51,777 [1825175991]   INFO - STDERR -  at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
2024-08-13 11:27:51,778 [1825175992]   INFO - STDERR -  at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
2024-08-13 11:27:51,778 [1825175992]   INFO - STDERR -  at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:763)
2024-08-13 11:27:51,778 [1825175992]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:699)
2024-08-13 11:27:51,778 [1825175992]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:638)
2024-08-13 11:27:51,778 [1825175992]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$10(IdeEventQueue.kt:584)
2024-08-13 11:27:51,779 [1825175993]   INFO - STDERR -  at com.intellij.openapi.application.impl.RwLockHolder.runWithEnabledImplicitRead(RwLockHolder.kt:138)
2024-08-13 11:27:51,779 [1825175993]   INFO - STDERR -  at com.intellij.openapi.application.impl.RwLockHolder.runWithImplicitRead(RwLockHolder.kt:129)
2024-08-13 11:27:51,779 [1825175993]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:584)
2024-08-13 11:27:51,779 [1825175993]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:77)
2024-08-13 11:27:51,780 [1825175994]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:362)
2024-08-13 11:27:51,780 [1825175994]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.compute(IdeEventQueue.kt:361)
2024-08-13 11:27:51,780 [1825175994]   INFO - STDERR -  at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)
2024-08-13 11:27:51,780 [1825175994]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:361)
2024-08-13 11:27:51,781 [1825175995]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1.invoke(IdeEventQueue.kt:356)
2024-08-13 11:27:51,781 [1825175995]   INFO - STDERR -  at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1022)
2024-08-13 11:27:51,781 [1825175995]   INFO - STDERR -  at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
2024-08-13 11:27:51,781 [1825175995]   INFO - STDERR -  at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1022)
2024-08-13 11:27:51,781 [1825175995]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$7(IdeEventQueue.kt:356)
2024-08-13 11:27:51,782 [1825175996]   INFO - STDERR -  at com.intellij.openapi.application.impl.RwLockHolder.runIntendedWriteActionOnCurrentThread(RwLockHolder.kt:209)
2024-08-13 11:27:51,782 [1825175996]   INFO - STDERR -  at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:830)
2024-08-13 11:27:51,782 [1825175996]   INFO - STDERR -  at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:398)
2024-08-13 11:27:51,782 [1825175996]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
2024-08-13 11:27:51,783 [1825175997]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
2024-08-13 11:27:51,783 [1825175997]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
2024-08-13 11:27:51,783 [1825175997]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
2024-08-13 11:27:51,783 [1825175997]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
2024-08-13 11:27:51,784 [1825175998]   INFO - STDERR -  at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)