SEVERE - #c.i.i.p.PluginManager - null cannot be cast to non-null type com.intellij.openapi.vfs.VirtualFile
Answered
Noticed that editor has half the window greyed out, so checking the logs found a couple of SEVERE status to reporting here.
Version info is in the log:
2024-08-31 11:14:29,841 [62006816] INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) UnindexedFilesIndexer[ndp, 0 files, reason: On refresh of files in ndp]
2024-08-31 11:14:29,841 [62006816] INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) UnindexedFilesIndexer[upp-cfg, 0 files, reason: On refresh of files in upp-cfg]
2024-08-31 11:14:29,841 [62006816] INFO - #c.i.o.p.MergingQueueGuiExecutor - Task finished: (dumb mode task) UnindexedFilesIndexer[capt, 0 files, reason: On refresh of files in capt]
2024-08-31 11:14:29,842 [62006817] INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [upp-cfg]
2024-08-31 11:14:29,843 [62006818] INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [capt]
2024-08-31 11:14:29,845 [62006820] INFO - #c.i.o.p.DumbServiceImpl - exit dumb mode [ndp]
2024-08-31 11:14:41,531 [62018506] INFO - STDOUT - 1000
2024-08-31 11:14:57,658 [62034633] INFO - STDOUT - 1000
2024-08-31 11:14:59,796 [62036771] SEVERE - #c.i.i.p.PluginManager - null cannot be cast to non-null type com.intellij.openapi.vfs.VirtualFile
java.lang.NullPointerException: null cannot be cast to non-null type com.intellij.openapi.vfs.VirtualFile
at com.intellij.openapi.fileEditor.impl.EditorWindow$1.selectionChanged(EditorWindow.kt:210)
at com.intellij.ui.tabs.impl.JBTabsImpl.fireSelectionChanged(JBTabsImpl.kt:1546)
at com.intellij.ui.tabs.impl.JBTabsImpl.executeSelectionChange(JBTabsImpl.kt:1482)
at com.intellij.ui.tabs.impl.JBTabsImpl.access$executeSelectionChange(JBTabsImpl.kt:110)
at com.intellij.ui.tabs.impl.JBTabsImpl$doSetSelected$1.run(JBTabsImpl.kt:1438)
at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer.lambda$2$lambda$1(EditorTabbedContainer.kt:128)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:226)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer._init_$lambda$2(EditorTabbedContainer.kt:126)
at com.intellij.ui.tabs.impl.JBTabsImpl.doSetSelected(JBTabsImpl.kt:1436)
at com.intellij.ui.tabs.impl.JBTabsImpl.select(JBTabsImpl.kt:1421)
at com.intellij.openapi.fileEditor.impl.EditorTabs.select(EditorTabbedContainer.kt:645)
at com.intellij.ui.tabs.impl.TabLabel$1.mousePressed(TabLabel.kt:105)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6659)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3394)
at java.desktop/java.awt.Component.processEvent(Component.java:6427)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5032)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4860)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4963)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4574)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4518)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2810)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4860)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:783)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:755)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:753)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:752)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:696)
at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:635)
at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$14(IdeEventQueue.kt:581)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:581)
at com.intellij.ide.IdeEventQueue.access$_dispatchEvent(IdeEventQueue.kt:73)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1$1.compute(IdeEventQueue.kt:357)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1$1.compute(IdeEventQueue.kt:356)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:843)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:356)
at com.intellij.ide.IdeEventQueue$dispatchEvent$processEventRunnable$1$1$1.invoke(IdeEventQueue.kt:351)
at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke$lambda$0(IdeEventQueue.kt:1035)
at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:84)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:910)
at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55)
at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1035)
at com.intellij.ide.IdeEventQueueKt$performActivity$runnableWithWIL$1.invoke(IdeEventQueue.kt:1035)
at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$1(IdeEventQueue.kt:1036)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:114)
at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:1036)
at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$10(IdeEventQueue.kt:351)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:397)
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)
2024-08-31 11:14:59,803 [62036778] SEVERE - #c.i.i.p.PluginManager - IntelliJ IDEA 2024.2.1 Build #IU-242.21829.142
2024-08-31 11:14:59,803 [62036778] SEVERE - #c.i.i.p.PluginManager - JDK: 21.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-08-31 11:14:59,803 [62036778] SEVERE - #c.i.i.p.PluginManager - OS: Windows 11
2024-08-31 11:15:04,815 [62041790] WARN - #org.intellij.plugins.markdown.ui.preview.jcef.MarkdownJCEFHtmlPanel - Canceling request for an external page with url: http://localhost:63342/markdownPreview/383111178/markdown-preview-index-1294303957.html?_ijt=hrk59giokkf8fsikfbt0vgk20a.
Current page url:
Target safe url: http://localhost:63342/markdownPreview/383111178/markdown-preview-index-1294303957.html?_ijt=2cg2k1u1l2aikmj1j8oputsca0
2024-08-31 11:15:04,865 [62041840] SEVERE - #c.i.o.a.i.CoroutineExceptionHandlerImpl - Unhandled exception in [ComponentManager(ProjectImpl@1973924006), CoroutineName(org.intellij.plugins.markdown.util.MarkdownPluginScope), Dispatchers.Default]
org.intellij.plugins.markdown.ui.preview.jcef.impl.LoadErrorException: Failed to load http://localhost:63342/markdownPreview/383111178/markdown-preview-index-1294303957.html?_ijt=hrk59giokkf8fsikfbt0vgk20a:
ERR_ABORTED: ERR_ABORTED
at org.intellij.plugins.markdown.ui.preview.jcef.impl.JcefUtilKt$waitForLoad$2$handler$1.onLoadError(JcefUtil.kt:64)
at com.intellij.ui.jcef.JBCefClient$11.lambda$onLoadError$3(JBCefClient.java:553)
at com.intellij.ui.jcef.JBCefClient$HandlerSupport.lambda$handleAll$0(JBCefClient.java:730)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2351)
at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handleAll(JBCefClient.java:730)
at com.intellij.ui.jcef.JBCefClient$11.onLoadError(JBCefClient.java:552)
at jcef/org.cef.CefClient.onLoadError(CefClient.java:912)
2024-08-31 11:15:04,866 [62041841] SEVERE - #c.i.o.a.i.CoroutineExceptionHandlerImpl - IntelliJ IDEA 2024.2.1 Build #IU-242.21829.142
2024-08-31 11:15:04,866 [62041841] SEVERE - #c.i.o.a.i.CoroutineExceptionHandlerImpl - JDK: 21.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2024-08-31 11:15:04,866 [62041841] SEVERE - #c.i.o.a.i.CoroutineExceptionHandlerImpl - OS: Windows 11
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - Exception in thread "DefaultDispatcher-worker-72" org.intellij.plugins.markdown.ui.preview.jcef.impl.LoadErrorException: Failed to load http://localhost:63342/markdownPreview/383111178/markdown-preview-index-1294303957.html?_ijt=hrk59giokkf8fsikfbt0vgk20a:
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - ERR_ABORTED: ERR_ABORTED
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at org.intellij.plugins.markdown.ui.preview.jcef.impl.JcefUtilKt$waitForLoad$2$handler$1.onLoadError(JcefUtil.kt:64)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at com.intellij.ui.jcef.JBCefClient$11.lambda$onLoadError$3(JBCefClient.java:553)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at com.intellij.ui.jcef.JBCefClient$HandlerSupport.lambda$handleAll$0(JBCefClient.java:730)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at java.base/java.lang.Iterable.forEach(Iterable.java:75)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at java.base/java.util.Collections$SynchronizedCollection.forEach(Collections.java:2351)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at com.intellij.ui.jcef.JBCefClient$HandlerSupport.handleAll(JBCefClient.java:730)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at com.intellij.ui.jcef.JBCefClient$11.onLoadError(JBCefClient.java:552)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - at jcef/org.cef.CefClient.onLoadError(CefClient.java:912)
2024-08-31 11:15:04,869 [62041844] INFO - STDERR - Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@1973924006), CoroutineName(org.intellij.plugins.markdown.util.MarkdownPluginScope), StandaloneCoroutine{Cancelling}@56eba267, Dispatchers.Default]
Please sign in to leave a comment.
Thanks for reporting this issue.
I have created a bug report here: https://youtrack.jetbrains.com/issue/IJPL-161628
Feel free to vote for it.
I think you could restart the IDE which should fix this issue.