Variables and imports spontaneously being flagged as never used and unused

While editing a file, IDEA spontaneously flags all variables in the code at never used and flags all imports as unused. The only way to resolve the problem is to close the project and IDEA and re-start. The log is full of the following exception around the time of the problem. Any suggestions would be greatly appreciated.

007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 6.0.5 Build #6180
2007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - JDK: 1.5.0_11
2007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Client VM
2007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - Vendor: Sun Microsystems Inc.
2007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - OS: Windows XP
2007-08-02 15:43:39,771 ERROR - llij.ide.plugins.PluginManager - Last Action: GotoDeclaration
2007-08-02 15:43:39,791 ERROR - llij.ide.plugins.PluginManager -
java.lang.AssertionError
at com.intellij.util.xml.impl.GetCollectionChildInvocation.invoke(GetCollectionChildInvocation.java:4)
at com.intellij.util.xml.impl.DomInvocationHandler.a(DomInvocationHandler.java:296)
at com.intellij.util.xml.impl.DomInvocationHandler.invoke(DomInvocationHandler.java:204)
at com.intellij.javaee.model.xml.impl.PersistenceImpl$$EnhancerByCGLIB$$a3d22662.getPersistenceUnits() at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.util.xml.ModelMergerImpl.a(ModelMergerImpl.java:85) at com.intellij.util.xml.ModelMergerImpl.access$100(ModelMergerImpl.java:77) at com.intellij.util.xml.ModelMergerImpl$3.invokeMethod(ModelMergerImpl.java:2) at com.intellij.util.xml.ModelMergerImpl$MergingInvocationHandler.invoke(ModelMergerImpl.java:10) at com.intellij.javaee.model.common.JavaeeModelElement$$EnhancerByCGLIB$$9a3281d9.getPersistenceUnits(]]>)
at com.intellij.javaee.persistence.JavaeePersistenceRoleHolderImpl$1.rebuildInternal(JavaeePersistenceRoleHolderImpl.java:22)
at com.intellij.javaee.JavaeeClassRoleHolderSupport.c(JavaeeClassRoleHolderSupport.java:14)
at com.intellij.javaee.JavaeeClassRoleHolderSupport.b(JavaeeClassRoleHolderSupport.java:44)
at com.intellij.javaee.JavaeeClassRoleHolderSupport.getRoles(JavaeeClassRoleHolderSupport.java:11)
at com.intellij.javaee.persistence.JavaeePersistenceRoleHolderImpl.getRoles(JavaeePersistenceRoleHolderImpl.java:2)
at com.intellij.javaee.persistence.JavaeePersistenceRoleHolderImpl.getRoles(JavaeePersistenceRoleHolderImpl.java:13)
at com.intellij.javaee.persistence.PersistenceUtil.getPersistenceRoles(PersistenceUtil.java:190)
at com.intellij.codeInsight.daemon.impl.analysis.annotator.JavaeePersistenceClassAnnotator.annotate(JavaeePersistenceClassAnnotator.java:10)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitElement(HighlightVisitorImpl.java:168)
at com.intellij.psi.JavaElementVisitor.visitDocToken(JavaElementVisitor.java:368)
at com.intellij.psi.impl.source.javadoc.PsiDocTokenImpl.accept(PsiDocTokenImpl.java:1)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:121)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:23)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:20)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:59)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:18)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:2)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:51)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:23)

4 comments
Comment actions Permalink

Fixed, but unfortunately, only in Selena

0
Comment actions Permalink

Hi,
I'm having the same problem since a few minutes with the same build.
Maybe there is a problem with the current build?
Nicolas.

ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 6.0.5 Build #6180
ERROR - llij.ide.plugins.PluginManager - JDK: 1.5.0_07
ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) Client VM
ERROR - llij.ide.plugins.PluginManager - Vendor: Apple Computer, Inc.
ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
ERROR - llij.ide.plugins.PluginManager - Last Action: EditorBackSpace
java.lang.AssertionError
at com.intellij.util.io.ByteBufferIntObjectMap.]]>(ByteBufferIntObjectMap.java:14)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl.a(ImmutableIdCacheImpl.java:67)
at com.intellij.psi.impl.cache.impl.idCache.ImmutableIdCacheImpl.processFilesWithWord(ImmutableIdCacheImpl.java:77)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheImpl.processFilesWithWord(IdCacheImpl.java:170)
at com.intellij.psi.impl.cache.impl.CacheManagerImpl.processFilesWithWord(CacheManagerImpl.java:89)
at com.intellij.psi.impl.cache.impl.CompositeCacheManager.processFilesWithWord(CompositeCacheManager.java:32)
at com.intellij.psi.impl.cache.impl.CompositeCacheManager.getFilesWithWord(CompositeCacheManager.java:14)
at com.intellij.psi.impl.search.PsiSearchHelperImpl.findFormsBoundToClass(PsiSearchHelperImpl.java:168)
at com.intellij.uiDesigner.binding.FormClassAnnotator.annotate(FormClassAnnotator.java:37)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitElement(HighlightVisitorImpl.java:168)
at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:64)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitClass(HighlightVisitorImpl.java:173)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:240)
at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:121)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:23)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:20)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:59)
at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:271)
at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:18)
at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:2)
at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:1)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:51)
at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:23)

0
Comment actions Permalink

Is the problem being caused by any plugin that I can remove/disable or is it core to IDEA?

Is there any workaround? Since it seems to happen randomly, I can't figure out what sequence of events puts it in this state in the first place.

Thanks!

0
Comment actions Permalink

I forgot to precise that i have the problem EVERYTIME i restart IDEA and my project.

I even uninstalled and reinstalled IDEA, i built an other IDEA project, but i always have the same problem. All my variables are flagged as never unused.
I have the same problem since yesterday afternoon and so i can't really move on with my code....

0

Please sign in to leave a comment.