Fatal error initializing com.intellij.util.indexing.FileBasedIndex

Hi all,

Since I defragmented my HD, I cannot run any IntelliJ 8 version anymore. During startup, I get the above message, and IntelliJ doesn't do anything anymore after that. I guess it's related to this issue: http://www.jetbrains.net/jira/browse/IDEADEV-30794,
but it would be nice if there was a workaround, so I can further test (and blog) about IntelliJ 8.

The message doesn't display which directory has the problem,, and idea.log doesn't provide much details either. Suggestions?

Erik



Attachment(s):
Message.jpg
threadDump-20081015-112226.txt
idea.log
5 comments
Comment actions Permalink

Hello Erik,

Please examine the content of bin\idea.properties under the IDEA installation
directory and ensure that idea.config.path, idea.system.path and idea.plugin.path
point to existing and writable directories.

Since I defragmented my HD, I cannot run any IntelliJ 8 version
anymore. During startup, I get the above message, and IntelliJ doesn't
do anything anymore after that. I guess it's related to this issue:
http://www.jetbrains.net/jira/browse/IDEADEV-30794,

but it would be nice if there was a workaround, so I can further test
(and blog) about IntelliJ 8.

The message doesn't display which directory has the problem, and
idea.log doesn't exist anywhere. Suggestions?

Erik

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


0
Comment actions Permalink

Hi Dmitry,

I made the changes, and now it works again. Thanks!! I think my Windows installation is broken or something, cause using the .IntelliJ80 dir doesn't work, even when removing the directory, removing the read-only(?) from the directory, etc. Well, I've just put it in a different directory, fine by me. Thanks again

Erik

0
Comment actions Permalink

Hi Dmitry,

I have the same issue. See the stack trace from the log file below. I tried to fix the issue including reinstalling IDEA with deleting IntelliJ IDEA caches and local history, settings and installed plugins. I checked the file permissions as well. I explicitely cleared the read only attribute both on .IntelliJIdea80 and .IntelliJIdea8x. I also shared them giving full control to everyone. No change, I'm unable to start IDEA.

My operating system is Windows XP Professional Version 2002 (service pack 3)
Your help is very important since I'm entirely blocked now.

java.io.FileNotFoundException: C:\Documents and Settings\bsarvari\.IntelliJIdea8x\system\index\xmlnamespaces\XmlNamespaces.ver (Access is denied)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    at com.intellij.util.indexing.IndexInfrastructure.rewriteVersion(IndexInfrastructure.java:13)
    at com.intellij.util.indexing.FileBasedIndex.a(FileBasedIndex.java:193)
    at com.intellij.util.indexing.FileBasedIndex.<init>(FileBasedIndex.java:342)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:220)
    at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
    at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
    at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:11)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:22)
    at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:230)
    at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:217)
    at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:199)
    at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:99)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:173)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:128)
    at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:7)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:135)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:41)
    at com.intellij.idea.MainImpl$3.run(MainImpl.java:1)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:57)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
    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)

0
Comment actions Permalink

Alrigth, there is a magic reltationship between IDEA and the windows search indexing service. Simply killing the cisvc.exe process helped solve the issue. Also see http://devnet.jetbrains.net/thread/284960

0
Comment actions Permalink

After much tinkering around and noticing that IDEA would frequently fail on different .ver files each time I launched it, I came to the same conclusion: that it was some other process that was interfering with the file access.  

As I do not have administrator rights to the machine I use at work and therefore can't stop the Indexing Service, I tried disabling indexing on the directory hierarchy but the problem remained.  In the end I resorted to changing the permissions so that only my user could access the directory hierarchy and not Windows Administrators, which I assume the Indexing Service runs as.  This did the trick!

P.S. I was using IntelliJ IDEA 9.0.2 Community Edition with Windows XP SP3.

0

Please sign in to leave a comment.