com.intellij.psi.impl.source.tree.FileElement: java.lang.ClassCastException

While loading the faces-config.xml in structure view.

lava.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiPlainTextImpl cannot be cast to com.intellij.psi.impl.source.tree.FileElement: java.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiPlainTextImpl cannot be cast to com.intellij.psi.impl.source.tree.FileElement


java.lang.RuntimeException: java.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiPlainTextImpl cannot be cast to com.intellij.psi.impl.source.tree.FileElement


at com.intellij.psi.impl.PsiDocumentManagerImpl$1.run(PsiDocumentManagerImpl.java:254)


at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:834)


at com.intellij.psi.impl.PsiDocumentManagerImpl.a(PsiDocumentManagerImpl.java:234)


at com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerImpl.java:228)


at com.intellij.psi.impl.PsiDocumentManagerImpl.commitAllDocuments(PsiDocumentManagerImpl.java:197)


at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.getPasses(TextEditorBackgroundHighlighter.java:83)


at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:106)


at com.intellij.codeInsight.daemon.impl.TextEditorBackgroundHighlighter.createPassesForEditor(TextEditorBackgroundHighlighter.java:35)


at com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerImpl$6.run(DaemonCodeAnalyzerImpl.java:677)



at com.intellij.util.Alarm$Request$1.run(Alarm.java:227)

at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:319)


at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)


at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)


at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)


at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:506)


at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:405)


at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)


at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)


at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)


at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)


at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)


at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)


at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Caused by: java.lang.ClassCastException: com.intellij.psi.impl.source.tree.PsiPlainTextImpl cannot be cast to com.intellij.psi.impl.source.tree.FileElement


at com.intellij.psi.impl.source.text.BlockSupportImpl.a(BlockSupportImpl.java:159)


at com.intellij.psi.impl.source.text.BlockSupportImpl.a(BlockSupportImpl.java:152)


at com.intellij.psi.impl.source.text.BlockSupportImpl.access$000(BlockSupportImpl.java:53)


at com.intellij.psi.impl.source.text.BlockSupportImpl$2.run(BlockSupportImpl.java:81)


at com.intellij.psi.impl.PsiManagerImpl$3.compute(PsiManagerImpl.java:211)


at com.intellij.psi.impl.source.PostprocessReformattingAspect.disablePostprocessFormattingInside(PostprocessReformattingAspect.java:114)


at com.intellij.psi.impl.PsiManagerImpl.performActionWithFormatterDisabled(PsiManagerImpl.java:209)


at com.intellij.psi.impl.source.text.BlockSupportImpl.reparseRange(BlockSupportImpl.java:79)


at com.intellij.psi.impl.PsiDocumentManagerImpl.commit(PsiDocumentManagerImpl.java:454)


at com.intellij.psi.impl.PsiDocumentManagerImpl$1.run(PsiDocumentManagerImpl.java:247)


... 22 more


0

Please sign in to leave a comment.