JSF / xhtml file is all red

I am currently playing with the JBoss seam examples.
I noticed that for many xhtml files Idea gives a lot of errors
and then fails to recognize the JSF components.
For example in 'confirmed.xhtml' from the booking example, Idea
gives errors

  • "Wrong root element" (for <ui:composition...)

  • "Cannot resolve symbol ui:define"

  • "Cannot resolve symbol ..." for all JSF tags ("<h:...")


I am pretty new to JSF, so I don't know if the syntax used here is
wrong, or Idea treats it incorrectly, or I have top configure
something differently.

Any comments on this?


Booking Confirmed

Thank you, #{user.name}, your confimation number is #{booking.id}.

Congratulations

Now you've done it! Fell free to explore other features of the application. In the end of the day, Seam provides the glue between business components and presentation components. It provides sophisticated yet easy-to-use state management for multiple page transactions. Seam not only reduces the amount of code required for web applications, but also make the applications architecturally simpler and easier to maintain.

Credits

This most excellentest example application would not exist were it not for back-breaking physical effort of the following individuals and groups:

  • Jacob Hookom (design and presentation)
  • Gavin King (code)
  • Michael Yuan (popup explanations)
  • Our mothers (having us)

]]>
15 comments
Comment actions Permalink

Hi,
The xhtml extension should be mapped to jsp file type.

Stephen Kelvin wrote:

I am currently playing with the JBoss seam examples.
I noticed that for many xhtml files Idea gives a lot of errors
and then fails to recognize the JSF components.
For example in 'confirmed.xhtml' from the booking example, Idea
gives errors

  • "Wrong root element" (for <ui:composition...)

  • "Cannot resolve symbol ui:define"

  • "Cannot resolve symbol ..." for all JSF tags ("<h:...")


I am pretty new to JSF, so I don't know if the syntax used here is
wrong, or Idea treats it incorrectly, or I have top configure
something differently.

Any comments on this?


<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
template="template.xhtml">

<!-- content -->
<ui:define name="content">
<div >
<h1>Booking Confirmed</h1>
</div>
<div >
Thank you, #{user.name}, your confimation number is #{booking.id}.
</div>
<div >
<h:form>
<fieldset >
<h:commandButton action="main" value="Done" />
</fieldset>
</h:form>
</div>
</ui:define>

<!-- sidebar -->
<ui:define name="sidebar">
<h1>Congratulations</h1>
<p>Now you've done it! Fell free to explore other features of the
application. In the end of the day, Seam provides the glue between
business components and presentation components. It provides
sophisticated yet easy-to-use state management for multiple page
transactions. Seam not only reduces the amount of code required for web
applications, but also make the applications architecturally simpler and
easier to maintain.</p>

<h1>Credits</h1>
<p>
This most excellentest example application would not exist were it
not for
back-breaking physical effort of the following individuals and groups:
<ul>
<li>Jacob Hookom (design and presentation)</li>
<li>Gavin King (code)</li>
<li>Michael Yuan (popup explanations)</li>
<li>Our mothers (having us)</li>
</ul>
</p>
</ui:define>

</ui:composition>



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim Mossienko (JetBrains) wrote:

Hi,
The xhtml extension should be mapped to jsp file type.


Ouch. Seems to be not a good idea:
Idea is continuously throwing exceptions and cannot repaint
itself anymore.
Posting the exceptions failed, so here is a stacktrace:

Error during dispatching of java.awt.event.PaintEvent[PAINT,updateRect=java.awt.Rectangle[x=1782,y=1137,width=46,height=67]] on frame0: com.intellij.psi.impl.source.tree.Factory$1
java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)
at com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane.paint(EditorTabbedContainer.java:9)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4970)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent.paint(JComponent.java:995)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)
at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)
at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)
at com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)
at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)
at com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)
at com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


0
Comment actions Permalink

Does IDEA highlights them properly after restart?

Stephen Kelvin wrote:

Maxim Mossienko (JetBrains) wrote:

>> Hi,
>> The xhtml extension should be mapped to jsp file type.


Ouch. Seems to be not a good idea:
Idea is continuously throwing exceptions and cannot repaint
itself anymore.
Posting the exceptions failed, so here is a stacktrace:

Error during dispatching of
java.awt.event.PaintEvent[PAINT,updateRect=java.awt.Rectangle[x=1782,y=1137,width=46,height=67]]
on frame0: com.intellij.psi.impl.source.tree.Factory$1
java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)

at
com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)

at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at
com.intellij.openapi.fileEditor.impl.EditorTabbedContainer$MyTabbedPane.paint(EditorTabbedContainer.java:9)

at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4970)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent.paint(JComponent.java:995)
at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

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

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)

at
com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)

at
com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:168)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.PostHighlightingPass.doCollectInformation(PostHighlightingPass.java:26)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.RuntimeException: invalid element
at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:954)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootInspected(HighlightUtil.java:240)

at
com.intellij.codeInsight.daemon.impl.ExternalToolPass.doCollectInformation(ExternalToolPass.java:17)

at
com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3)

at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5)
at
com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14)

at
com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3)

at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10)

at
com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)

at
com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)

at javax.swing.JComponent.paint(JComponent.java:1005)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

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

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.ClassCastException: com.intellij.psi.impl.source.tree.Factory$1
at
com.intellij.psi.impl.source.PsiFileImpl.createFileElement(PsiFileImpl.java:44)

at
com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(PsiFileImpl.java:14)

at
com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:354)

at
com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:35)

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getNode(TreeWrapperPsiElement.java:86)

at com.intellij.psi.util.PsiUtil.getRootIndex(PsiUtil.java:944)
at
com.intellij.codeInsight.daemon.impl.analysis.HighlightingSettingsPerFile.getHighlightingSettingForRoot(HighlightingSettingsPerFile.java:30)

at
com.intellij.codeInsight.daemon.impl.analysis.HighlightUtil.isRootHighlighted(HighlightUtil.java:17)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.getDaemonCodeAnalyzerStatus(RefreshStatusRenderer.java:64)

at
com.intellij.codeInsight.daemon.impl.RefreshStatusRenderer.paint(RefreshStatusRenderer.java:25)

at
com.intellij.openapi.editor.impl.EditorMarkupModelImpl$MyErrorPanel.paintComponent(EditorMarkupModelImpl.java:59)

at javax.swing.JComponent.paint(JComponent.java:1005)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4963)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent._paintImmediately(JComponent.java:4859)
at javax.swing.JComponent.paintImmediately(JComponent.java:4666)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)

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

at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Ok, after restarting Idea here is what I get:
"Wrong root element" ("ui:composition"),
"Cannot resolve symbol ui:define",
and "JSF component tag ... outside view tag" for all
JSF component tags.

So at least I get the "outside view tag" error instead
of the even worse error "Cannot resolve symbol", but
same number of errors.

I tried mapping "xhtml" to "Java Server Page files"
and to "JSPx". Same errors.

0
Comment actions Permalink

Ok, let's continue with JIRA request with sample code.

Stephen Kelvin wrote:

Ok, after restarting Idea here is what I get:
"Wrong root element" ("ui:composition"),
"Cannot resolve symbol ui:define",
and "JSF component tag ... outside view tag" for all
JSF component tags.

So at least I get the "outside view tag" error instead
of the even worse error "Cannot resolve symbol", but
same number of errors.

I tried mapping "xhtml" to "Java Server Page files"
and to "JSPx". Same errors.



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim Mossienko (JetBrains) wrote:

Ok, let's continue with JIRA request with sample code.


Thanks - gotta run now. Will file it tomorrow.

0
Comment actions Permalink

Maxim Mossienko (JetBrains) wrote:

Ok, let's continue with JIRA request with sample code.


Ok, I finally got around to that: http://www.jetbrains.net/jira/browse/IDEA-7206

0
Comment actions Permalink

Hi,
The xhtml extension should be mapped to jsp file
type.


No. The Seam examples use Facelets not JSP. These are two different specifications.

0
Comment actions Permalink

The issue is still not fully resolved. Have created a bug report to illustrate the problem, please see http://www.jetbrains.net/jira/browse/IDEA-8116

0
Comment actions Permalink

Please, map xhtml extension to JSPX file type and do restart.

0
Comment actions Permalink

That did the trick, thank you.

0
Comment actions Permalink

Clears the tag errors but not the attribute errors. Is there any way to get it to ignore certain attributes?

I use the jsfc attribute with the span tag.

0
Comment actions Permalink

sry for opening this old thread but how can i do this?

0
Comment actions Permalink

File > Settings > IDE Settings > File Types

0
Comment actions Permalink

Now there is no need to map xhtml to jspx. You should have JSF facet
configured for the module where facelet pages are located.

0

Please sign in to leave a comment.