redhat-developer / intellij-tekton

IntelliJ Tekton plugin
https://plugins.jetbrains.com/plugin/14096-tekton-pipelines-by-red-hat
Eclipse Public License 2.0
20 stars 11 forks source link

java.lang.ClassNotFoundException: com/mxgraph/swing/util/mxGraphTransferable when opening editor #565

Open adietish opened 2 years ago

adietish commented 2 years ago

Steps:

  1. ASSERT: have "buildpacks" imported from TektonHub
  2. EXEC: in tekton resource tree: double click [current cluster] > [current namespace] > Pipelines > buildpacks (opens it in an editor)
  3. ASSERT: editor for buildpacks opens

Result: "Fatal IDE error" notification shows up unveiling the following stacktrace:

Error initializing dataFlavor

java.lang.ClassNotFoundException: com/mxgraph/swing/util/mxGraphTransferable
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.tryToLoadClass(DataFlavor.java:156)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java:529)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:496)
    at com.mxgraph.swing.util.mxGraphTransferable.<clinit>(mxGraphTransferable.java:531)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:398)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.tryToLoadClass(DataFlavor.java:156)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.initialize(DataFlavor.java:529)
    at java.datatransfer/java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:469)
    at com.redhat.devtools.intellij.tektoncd.ui.editors.TektonPreviewEditor.<clinit>(TektonPreviewEditor.java:60)
    at com.redhat.devtools.intellij.tektoncd.ui.editors.TektonFileEditorProvider.createEditor(TektonFileEditorProvider.java:64)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.createComposite(FileEditorManagerImpl.java:1087)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4Edt(FileEditorManagerImpl.java:988)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$17(FileEditorManagerImpl.java:961)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.runBulkTabChange(FileEditorManagerImpl.java:1697)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$18(FileEditorManagerImpl.java:960)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:490)
    at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:523)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:957)
    at com.jetbrains.rdserver.fileEditors.BackendServerFileEditorManager.openFileImpl4(BackendServerFileEditorManager.kt:34)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$14(FileEditorManagerImpl.java:885)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
    at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:884)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:764)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:724)
    at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:122)
    at com.redhat.devtools.intellij.tektoncd.utils.VirtualFileHelper.createAndOpenVirtualFile(VirtualFileHelper.java:81)
    at com.redhat.devtools.intellij.tektoncd.utils.VirtualFileHelper.innerOpenVirtualFileInEditor(VirtualFileHelper.java:54)
    at com.redhat.devtools.intellij.tektoncd.utils.VirtualFileHelper.openVirtualFileInEditor(VirtualFileHelper.java:44)
    at com.redhat.devtools.intellij.tektoncd.utils.TreeHelper.lambda$openTektonResourceInEditor$5(TreeHelper.java:226)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:215)
    at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:22)
    at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:197)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
    at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:511)
    at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:96)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:69)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:112)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:42)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:898)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
    at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
    at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
dgloeckner commented 2 years ago

Happens all the time when I active the plugin. Not complex to reproduce I guess.


IntelliJ IDEA 2022.2.2 (Ultimate Edition)
Build #IU-222.4167.29, built on September 13, 2022
``
gerrnot commented 1 year ago

same here, still occurring