On startup: indexing error reported in Event Log (v14.1)
Recently upgraded to version 14.1 (OS X) and updated to the latest JDK from Oracle (1.8.0_40). Now everytime I startup IntelliJ this shows up in my event log:
12:33:41 PM AbstractMethodError
Error while indexing /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/lib/tools.jar!/com/sun/tools/hat/resources/oqlhelp.html
To reindex this file IDEA has to be restarted
12:33:57 PM AbstractMethodError
Error while indexing /Users/jhall/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/org/hamcrest/core/package.html
To reindex this file IDEA has to be restarted
I verified and repaired disk permissions, but that didn't help. What else should I check?
This is a maven-based project. Here's the POM:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.brainwreckage</groupId>
<artifactId>java8</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
</project>
Thanks!
Please sign in to leave a comment.
Please try 14.1.1: http://www.jetbrains.com/idea/download/index.html or 14.1.2 EAP: https://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP .
This index bug should be fixed there.
I continue get this this error under 14.1.3 on OS X Yosemite, even after updating to JDK 1.8.0_45:
From the Event Log:
3:33:42 PM AbstractMethodError
Error while indexing /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/tools.jar!/com/sun/tools/hat/resources/oqlhelp.html
To reindex this file IDEA has to be restarted
From the IDE Fatal Errors window:
Error while indexing /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/lib/tools.jar!/com/sun/tools/hat/resources/oqlhelp.html
To reindex this file IDEA has to be restarted
java.lang.AbstractMethodError
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.detectCharset(LoadTextUtil.java:135)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.a(LoadTextUtil.java:169)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.a(LoadTextUtil.java:165)
at com.intellij.openapi.fileEditor.impl.LoadTextUtil.detectCharsetAndSetBOM(LoadTextUtil.java:160)
at com.intellij.util.indexing.FileContentImpl.<init>(FileContentImpl.java:118)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1654)
at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1623)
at com.intellij.util.indexing.UnindexedFilesUpdater$2.consume(UnindexedFilesUpdater.java:101)
at com.intellij.util.indexing.UnindexedFilesUpdater$2.consume(UnindexedFilesUpdater.java:97)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable$1.run(CacheUpdateRunner.java:290)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1098)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable$2.run(CacheUpdateRunner.java:310)
at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:152)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:452)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:402)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:137)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:304)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
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:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:695)
at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
Restarting the IDE does not resolve the problem. Any ideas I can try?
I resolved the indexing error associated with the hamcrest library by deleting it from my Maven repository and re-importing it.
Thanks.
What JDK is used do run IDEA?
Does it happen with this build: https://download.jetbrains.com/idea/ideaIU-14.1.3-custom-jdk-bundled.dmg ?
My installation's build.txt file contains this version information: IU-141.1010.3
Before I download the DMG you posted can you please explain what is different from my installed version?
If I open a terminal session, 'java -version' indicates Java build 1.8.0_45-b14 is in the path, so I believe that would be the version of Java I launch the app with, unless there is somewhere else to configure that. I run the executable ../Contents/MacOS/idea; clicking on that in Finder dumps this to the terminal window that opens:
$ /Applications/IntelliJ\ IDEA\ 14.app/Contents/MacOS/idea ; exit;
2015-06-11 17:38:39.920 idea[8700:417750] Value of IDEA_JDK: (null)
2015-06-11 17:38:39.929 idea[8700:417756] fullFileName is: /Applications/IntelliJ IDEA 14.app/Contents/bin/idea.vmoptions
2015-06-11 17:38:39.930 idea[8700:417756] fullFileName exists: /Applications/IntelliJ IDEA 14.app/Contents/bin/idea.vmoptions
2015-06-11 17:38:39.930 idea[8700:417756] Value of IDEA_VM_OPTIONS is (null)
2015-06-11 17:38:39.930 idea[8700:417756] Processing VMOptions file at /Applications/IntelliJ IDEA 14.app/Contents/bin/idea.vmoptions
2015-06-11 17:38:39.930 idea[8700:417756] Done
2015-06-11 17:38:39.930 idea[8700:417756] Processing VMOptions file at /Users/jhall/Library/Preferences/IntelliJIdea14/idea.vmoptions
2015-06-11 17:38:39.930 idea[8700:417756] No content found
2015-06-11 17:38:39.930 idea[8700:417756] Processing VMOptions file at
2015-06-11 17:38:39.931 idea[8700:417756] No content found
/Applications/IntelliJ IDEA 14.app/Contents/bin/idea.properties: 'java.endorsed.dirs' already defined
If I open a different project (that also uses the same JDK), the same error pops up in the event window after opening it.
I am wondering if this was something I caused a while ago when my main system account was changed from an Admin to a standard user. Later, I changed things back and noticed some group permissions around the file system looked like they might be incorrect. Upon repairing disk permissions however, the problem remained. and FYI, I do have full disk encryption turned on. Don't know if that could cause a problem or not.
This version uses custom JDK 1.8 to run instead of JDK 1.6 used by the standard dmg. Give it a try.
Disk encryption could be the case, if possible, see if you can reproduce it on a system without encryption. Note that keeping IDE caches on encrypted drive will cause severe performance problems.