Community
Participate
Working Groups
!ENTRY org.eclipse.jdt.core 4 4 Feb 05, 2003 18:20:39.220 !MESSAGE Background Indexer Crash Recovery !STACK 0 java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.eclipse.jdt.internal.core.index.impl.GammaCompressedIndexBlock.nextEntry (GammaCompressedIndexBlock.java:85) at org.eclipse.jdt.internal.core.index.impl.BlocksIndexInput.moveToNextWordEntry (BlocksIndexInput.java:186) at org.eclipse.jdt.internal.core.index.impl.MergeFactory.mergeReferences (MergeFactory.java:176) at org.eclipse.jdt.internal.core.index.impl.MergeFactory.merge (MergeFactory.java:85) at org.eclipse.jdt.internal.core.index.impl.Index.merge(Index.java:249) at org.eclipse.jdt.internal.core.index.impl.Index.save(Index.java:354) at org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndex (IndexManager.java:423) at org.eclipse.jdt.internal.core.search.indexing.IndexManager.saveIndexes (IndexManager.java:459) at org.eclipse.jdt.internal.core.search.indexing.IndexManager.notifyIdle (IndexManager.java:297) at org.eclipse.jdt.internal.core.search.processing.JobManager.run (JobManager.java:333) at java.lang.Thread.run(Thread.java:484)
Adam - you seem pretty unlucky. Do you have steps to reproduce it ?
no, sorry i just found it in the log (after a day of working) i had some OutOfMemory exceptions that day so maybe it's related
Fix title.
Defer
Reopening. Problem should go away with new implementation
I am working on a relatively large project (5000+ .java files) using Eclipse 2.1 M1, and I am getting a similar stack trace (see below). I see the problem when using the Type browser; if I hit Shift-Ctrl-T (or pick "Open Type" from the navigate menu) in this project I get an Exception dialog stating: "Unreported exception. See log for details." Here is the detail from the log message: Log Session: ============ java.version=1.3.1_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/ Status Details: =============== java.lang.reflect.InvocationTargetException: java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.eclipse.jdt.internal.core.index.impl.GammaCompressedIndexBlock.nextEntry (GammaCompressedIndexBlock.java:85) at org.eclipse.jdt.internal.core.index.impl.BlocksIndexInput.queryEntriesPrefixedBy (BlocksIndexInput.java:285) at org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches (SearchPattern.java:1161) at org.eclipse.jdt.internal.core.search.matching.SearchPattern.findIndexMatches (SearchPattern.java:1148) at org.eclipse.jdt.internal.core.search.PatternSearchJob.search (PatternSearchJob.java:150) at org.eclipse.jdt.internal.core.search.PatternSearchJob.execute (PatternSearchJob.java:93) at org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob (JobManager.java:282) at org.eclipse.jdt.core.search.SearchEngine.searchAllTypeNames (SearchEngine.java:592) at org.eclipse.jdt.internal.corext.util.AllTypesCache.doSearchTypes (AllTypesCache.java:130) at org.eclipse.jdt.internal.corext.util.AllTypesCache.getAllTypes (AllTypesCache.java:90) at org.eclipse.jdt.internal.corext.util.AllTypesCache.getTypes (AllTypesCache.java:66) at org.eclipse.jdt.internal.ui.dialogs.TypeSelectionDialog$1.run (TypeSelectionDialog.java:191) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:101) I get almost the same exact stack trace if I attempt to open the Type Hierarchy on a class. I don't get the error on a smaller project. Also, I tried using j2sdk 1.4 with eclipse but get the same error.
Just a final note - I was able to avoid the bug by removing several unused jars from my classpath (in addition to the 5000+ files, there are 30-odd jars on the CLASSPATH!).
This problem remains in 2.1.1.
We have replaced the entire index infrastructure. This bug is now obsolete.
Verified in build I200403240800.