Bizarre problems opening Java files in Editor (4129)

I've just updated to 4129 from after being a few builds behind. Suddenly, I'm getting a seemingly random string of errors when I open some of my files in the editor. It doesn't seem to be tied to a specific file. I get the error for one file, and then try again a few minutes later and that file come up just fine.

In some cases the file doesn't open at all in the editor. In other cases, it opens but appears to be filled with jibberish. I can always open these files just fine in other Java or text editors, so I'm confident the files aren't actually corrupted. This is happening on Mac OS X Tiger.

Whenever the error happens, I do get an exception that follows. I can't seem to get the auto-reporting to work either, so here is the text of the exception:


Error synchronizing psi and repository in file: /Users/tdean/Projects/Personal/Personal.Mac/Implementation/Model/src/com/deansoft/pdm/util/dao/jdbc/JdbcKeyedDao.java repositoryElementType: CLASS psiParent: PsiJavaFile:JdbcKeyedDao.java processor.index = 0 repositoryChildren.length = 1
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:47)
at com.intellij.psi.impl.RepositoryElementsManager.a(RepositoryElementsManager.java:59)
at com.intellij.psi.impl.RepositoryElementsManager.getOrFindTreeElement(RepositoryElementsManager.java:335)
at com.intellij.psi.impl.source.SrcRepositoryPsiElement.calcTreeElement(SrcRepositoryPsiElement.java:56)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getTextOffset(TreeWrapperPsiElement.java:92)
at com.intellij.ide.util.EditSourceUtil.getDescriptor(EditSourceUtil.java:14)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.navigate(TreeWrapperPsiElement.java:85)
at com.intellij.ide.projectView.impl.nodes.BasePsiNode.navigate(BasePsiNode.java:55)
at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:41)
at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29)
at com.intellij.util.EditSourceOnDoubleClickHandler$1.mouseClicked(EditSourceOnDoubleClickHandler.java:49)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.Component.processMouseEvent(Component.java:5557)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at com.intellij.util.ui.Tree.processMouseEvent(Tree.java:70)
at java.awt.Component.processEvent(Component.java:5319)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:110)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:18)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



java.lang.NullPointerException
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getTextOffset(TreeWrapperPsiElement.java:92)
at com.intellij.ide.util.EditSourceUtil.getDescriptor(EditSourceUtil.java:14)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.navigate(TreeWrapperPsiElement.java:85)
at com.intellij.ide.projectView.impl.nodes.BasePsiNode.navigate(BasePsiNode.java:55)
at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:41)
at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29)
at com.intellij.util.EditSourceOnDoubleClickHandler$1.mouseClicked(EditSourceOnDoubleClickHandler.java:49)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.Component.processMouseEvent(Component.java:5557)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at com.intellij.util.ui.Tree.processMouseEvent(Tree.java:70)
at java.awt.Component.processEvent(Component.java:5319)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4021)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3869)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:110)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:18)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

1 comment

Hello Tim,

This exception means internal caches are corrupted. You're to clean them
up manually unfortunately.
On MacOS X they usually reside in /Users/tdean/Library/Caches/IntelliJIDEA50/caches.
Just wipe it out.

-


Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.