Exception in log files: java.lang.ClassCastException: PsiModifierListImpl

I am seeing this exception in logs (8823). Editor behaviour is weird (no errors are shown in red).

Thanks,
Gustavo.

2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - IntelliJ IDEA (Diana) #8823 Build #8823
2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - JDK: 1.6.0_05
2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - VM: Java HotSpot(TM) 64-Bit Server VM
2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - Vendor: Apple Inc.
2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - OS: Mac OS X
2008-09-30 08:05:37,275 ERROR - aemon.impl.PassExecutorService - Last Action: GotoImplementation
2008-09-30 08:05:40,414 ERROR - aemon.impl.PassExecutorService -
java.lang.ClassCastException: com.intellij.psi.impl.source.PsiModifierListImpl cannot be cast to com.intellij.psi.PsiClass
at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.a(JavaFileManagerImpl.java:148)
at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.findClass(JavaFileManagerImpl.java:115)
at com.intellij.psi.impl.JavaPsiFacadeImpl$PsiElementFinderImpl.findClass(JavaPsiFacadeImpl.java:8)
at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:29)
at com.intellij.spring.impl.model.AbstractDomSpringBean.getBeanClass(AbstractDomSpringBean.java:74)
at com.intellij.spring.impl.model.beans.SpringBeanImpl.getBeanClass(SpringBeanImpl.java:125)
at com.intellij.spring.impl.model.AbstractDomSpringBean.getBeanClass(AbstractDomSpringBean.java:39)
at com.intellij.spring.impl.SpringModelImpl$14.consume(SpringModelImpl.java:401)
at com.intellij.spring.impl.SpringModelImpl$14.consume(SpringModelImpl.java:400)
at com.intellij.spring.impl.SpringModelImpl$15.visitBean(SpringModelImpl.java:410)
at com.intellij.spring.model.SpringModelVisitor.visitBean(SpringModelVisitor.java:40)
at com.intellij.spring.model.SpringModelVisitor.visitBeans(SpringModelVisitor.java:31)
at com.intellij.spring.impl.SpringModelImpl.computeBeansByPsiClass(SpringModelImpl.java:415)
at com.intellij.spring.impl.SpringModelImpl.access$100(SpringModelImpl.java:44)
at com.intellij.spring.impl.SpringModelImpl$2.create(SpringModelImpl.java:56)
at com.intellij.spring.impl.SpringModelImpl$2.create(SpringModelImpl.java:55)
at com.intellij.util.containers.FactoryMap.get(FactoryMap.java:56)
at com.intellij.spring.impl.SpringModelImpl.findBeansByPsiClass(SpringModelImpl.java:325)
at com.intellij.spring.model.SpringUtils.getSpringBeans(SpringUtils.java:619)
at com.intellij.spring.aop.SpringAopProvider$2.compute(SpringAopProvider.java:103)
at com.intellij.psi.impl.CachedValueImpl.getValue(CachedValueImpl.java:88)
at com.intellij.spring.aop.SpringAopProvider.getAdvisedElementsSearcher(SpringAopProvider.java:116)
at com.intellij.aop.jam.AopLanguageInjector$1.value(AopLanguageInjector.java:128)
at com.intellij.aop.jam.AopLanguageInjector$1.value(AopLanguageInjector.java:127)
at com.intellij.util.containers.ContainerUtil.findAll(ContainerUtil.java:247)
at com.intellij.util.containers.ContainerUtil.findAll(ContainerUtil.java:241)
at com.intellij.aop.jam.AopLanguageInjector.getAopProviders(AopLanguageInjector.java:126)
at com.intellij.aop.jam.AopJavaAnnotator.annotate(AopJavaAnnotator.java:58)
at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:62)
at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visitElement(DefaultHighlightVisitor.java:3)
at com.intellij.psi.impl.source.tree.java.PsiIdentifierImpl.accept(PsiIdentifierImpl.java:2)
at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:6)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$6.run(GeneralHighlightingPass.java:24)
at com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:4)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:17)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:168)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:18)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:9)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:14)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:127)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:27)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:637)

1 comment
Comment actions Permalink

Hello Gustavo,

We believe that we've finally fixed this problem, and the fix will appear
in the next EAP build. For the time being, please clear the system/index
directory.

I am seeing this exception in logs (8823). Editor behaviour is weird
(no errors are shown in red).

Thanks,
Gustavo.
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - IntelliJ IDEA (Diana) #8823 Build
#8823
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - JDK: 1.6.0_05
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - VM: Java HotSpot(TM) 64-Bit Server VM
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - Vendor: Apple Inc.
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - OS: Mac OS X
2008-09-30 08:05:37,275 ERROR -
aemon.impl.PassExecutorService - Last Action: GotoImplementation
2008-09-30 08:05:40,414 ERROR -
aemon.impl.PassExecutorService -
java.lang.ClassCastException:
com.intellij.psi.impl.source.PsiModifierListImpl cannot be cast to
com.intellij.psi.PsiClass
at
com.intellij.psi.impl.file.impl.JavaFileManagerImpl.a(JavaFileManagerI
mpl.java:148)
at
com.intellij.psi.impl.file.impl.JavaFileManagerImpl.findClass(JavaFile
ManagerImpl.java:115)
at
com.intellij.psi.impl.JavaPsiFacadeImpl$PsiElementFinderImpl.findClass
(JavaPsiFacadeImpl.java:8)
at
com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.ja
va:29)
at
com.intellij.spring.impl.model.AbstractDomSpringBean.getBeanClass(Abst
ractDomSpringBean.java:74)
at
com.intellij.spring.impl.model.beans.SpringBeanImpl.getBeanClass(Sprin
gBeanImpl.java:125)
at
com.intellij.spring.impl.model.AbstractDomSpringBean.getBeanClass(Abst
ractDomSpringBean.java:39)
at
com.intellij.spring.impl.SpringModelImpl$14.consume(SpringModelImpl.ja
va:401)
at
com.intellij.spring.impl.SpringModelImpl$14.consume(SpringModelImpl.ja
va:400)
at
com.intellij.spring.impl.SpringModelImpl$15.visitBean(SpringModelImpl.
java:410)
at
com.intellij.spring.model.SpringModelVisitor.visitBean(SpringModelVisi
tor.java:40)
at
com.intellij.spring.model.SpringModelVisitor.visitBeans(SpringModelVis
itor.java:31)
at
com.intellij.spring.impl.SpringModelImpl.computeBeansByPsiClass(Spring
ModelImpl.java:415)
at
com.intellij.spring.impl.SpringModelImpl.access$100(SpringModelImpl.ja
va:44)
at
com.intellij.spring.impl.SpringModelImpl$2.create(SpringModelImpl.java
:56)
at
com.intellij.spring.impl.SpringModelImpl$2.create(SpringModelImpl.java
:55)
at com.intellij.util.containers.FactoryMap.get(FactoryMap.java:56)
at
com.intellij.spring.impl.SpringModelImpl.findBeansByPsiClass(SpringMod
elImpl.java:325)
at
com.intellij.spring.model.SpringUtils.getSpringBeans(SpringUtils.java:
619)
at
com.intellij.spring.aop.SpringAopProvider$2.compute(SpringAopProvider.
java:103)
at
com.intellij.psi.impl.CachedValueImpl.getValue(CachedValueImpl.java:88
)
at
com.intellij.spring.aop.SpringAopProvider.getAdvisedElementsSearcher(S
pringAopProvider.java:116)
at
com.intellij.aop.jam.AopLanguageInjector$1.value(AopLanguageInjector.j
ava:128)
at
com.intellij.aop.jam.AopLanguageInjector$1.value(AopLanguageInjector.j
ava:127)
at
com.intellij.util.containers.ContainerUtil.findAll(ContainerUtil.java:
247)
at
com.intellij.util.containers.ContainerUtil.findAll(ContainerUtil.java:
241)
at
com.intellij.aop.jam.AopLanguageInjector.getAopProviders(AopLanguageIn
jector.java:126)
at
com.intellij.aop.jam.AopJavaAnnotator.annotate(AopJavaAnnotator.java:5
8)
at
com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.
a(DefaultHighlightVisitor.java:62)
at
com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.
visitElement(DefaultHighlightVisitor.java:3)
at
com.intellij.psi.impl.source.tree.java.PsiIdentifierImpl.accept(PsiIde
ntifierImpl.java:2)
at
com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.
visit(DefaultHighlightVisitor.java:6)
at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$6.run(Gen
eralHighlightingPass.java:24)
at
com.intellij.codeInsight.daemon.impl.analysis.DefaultHighlightVisitor.
analyze(DefaultHighlightVisitor.java:4)
at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(General
HighlightingPass.java:17)
at
com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectIn
formationWithProgress(GeneralHighlightingPass.java:168)
at
com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightin
gPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java
:18)
at
com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInform
ation(TextEditorHighlightingPass.java:9)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1$1.run(PassExecutorService.java:14)
at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(Ap
plicationImpl.java:127)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
$1.run(PassExecutorService.java:2)
at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessU
nderProgress(ProgressManagerImpl.java:60)
at
com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass
.run(PassExecutorService.java:27)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441
)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecu
tor.java:885)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:907)
at java.lang.Thread.run(Thread.java:637)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.