When I start IDEA 8 or now IDEA 9, I am getting a Fatal Error initializing class com.intellij.util.indexing.FileBasedIndex
The log looks like this
2009-11-12 15:53:25,820 [ 163169] ERROR - plication.impl.ApplicationImpl - InvocationTargetException: java.io.FileNotFoundException C:\Documents and Settings\900714\.IntelliJIdea90\system\index\groovydslfileindex\GroovyDslFileIndex.ver (Access is denied)
(though it's not always the same file that has access denied)
When I look in Process Explorer (a Windows util to indentify file locks), nothing has a lock on the directory.
I was having this problem originally in IDEA 8 so I decided to install IDEA 9. But I'm still seeing the problem there. I cannot start IDEA and even restarting my computer did not fix the problem (this time, usually it does). The error starts happening only sometimes when I have to shutdown IDEA abruptly (because it stops responding).
Any ideas on what's going on and how to fix it?