Bug 237835 - ArrayIndexOutOfBoundsException thown rebuilding workspace
Summary: ArrayIndexOutOfBoundsException thown rebuilding workspace
Status: RESOLVED DUPLICATE of bug 237166
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 14:19 EDT by Christian Vogt CLA
Modified: 2008-07-16 14:41 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Vogt CLA 2008-06-19 14:19:12 EDT
Build ID: I20080516-1333

Possibly related to bug 237166.

With a large number of projects in the workspace. I replaced a java file with the latest version from CVS and when the auto build kicked in my workspace became full of errors and the exception below constantly added to the error log.

This leaves many, if not all, of the projects in the workspace with build errors and is difficult to recover from.

java.lang.ArrayIndexOutOfBoundsException
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:446)
at org.eclipse.core.internal.content.ContentTypeCatalog.internalFindContentTypesFor(ContentTypeCatalog.java:384)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:304)
at org.eclipse.core.internal.content.ContentTypeCatalog.getDescriptionFor(ContentTypeCatalog.java:318)
at org.eclipse.core.internal.content.ContentTypeMatcher.getDescriptionFor(ContentTypeMatcher.java:86)
at org.eclipse.core.internal.resources.ContentDescriptionManager.readDescription(ContentDescriptionManager.java:400)
at org.eclipse.core.internal.resources.ContentDescriptionManager.getDescriptionFor(ContentDescriptionManager.java:309)
at org.eclipse.core.internal.resources.File.internalGetCharset(File.java:260)
at org.eclipse.core.internal.resources.File.getCharset(File.java:221)
at org.eclipse.core.internal.resources.File.getCharset(File.java:208)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.cacheEncodingState(ResourceTextFileBuffer.java:484)
at org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:285)
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:241)
at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:112)
at org.eclipse.pde.internal.core.builders.XMLErrorReporter.<init>(XMLErrorReporter.java:95)
at org.eclipse.pde.internal.core.builders.FeatureErrorReporter.<init>(FeatureErrorReporter.java:41)
at org.eclipse.pde.internal.core.builders.FeatureConsistencyChecker.checkFile(FeatureConsistencyChecker.java:98)
at org.eclipse.pde.internal.core.builders.FeatureConsistencyChecker.access$1(FeatureConsistencyChecker.java:95)
at org.eclipse.pde.internal.core.builders.FeatureConsistencyChecker$DeltaVisitor.visit(FeatureConsistencyChecker.java:58)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:68)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:79)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)
at org.eclipse.pde.internal.core.builders.FeatureConsistencyChecker.build(FeatureConsistencyChecker.java:83)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Kent Johnson CLA 2008-06-19 14:35:57 EDT
Christian, Alex - this is the 4th different walkback that we've seen in the last 2 days that ends up with an AIOOBE at Arrays.mergeSort.

Alex & I saw one yesterday from an SWT stack trace and we have 2 in the compiler (sorting fields & methods).


This looks more and more like a VM bug, but I don't have proof yet.

I suggest changing VMs to see if the problem is reproduceable on more than 1 VM (1.4, 1.5 vs. 6.0) & more than 1 vendor (sun vs. j9).
Comment 2 Andrew Niefer CLA 2008-06-19 14:42:00 EDT
sending over to UI since it is their builder.
Comment 3 Darin Wright CLA 2008-06-19 14:51:33 EDT
Moving to platform text for comment - we're just connecting a file to a buffer manager.
Comment 4 Dani Megert CLA 2008-06-19 15:44:41 EDT
What VM are you using?

My guess is a VM or JIT bug, but if not, it's definitely not a Text bug as we correctly call File.getCharset().
Comment 5 Christian Vogt CLA 2008-06-19 16:51:33 EDT
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070511 (SR5))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-2007042
6 (JIT enabled)
J9VM - 20070420_12448_lHdSMR
JIT  - 20070419_1806_r8
GC   - 200704_19)
JCL  - 20070511
Comment 6 Alex Fitzpatrick CLA 2008-06-19 17:12:31 EDT
I've been getting similar errors with a sun 1.6 vm and (recent?) J9 1.6
Comment 7 John Arthorne CLA 2008-06-19 17:34:43 EDT
Alex: similar errors in ContentTypeCatalog, or other users of mergeSort?
Comment 8 Alex Fitzpatrick CLA 2008-06-19 17:56:58 EDT
unknown.

Merge sort errors when synching with CVS etc.
Comment 9 Kent Johnson CLA 2008-07-16 10:11:01 EDT
Have closed bug 237166 as NOT_ECLIPSE since the AIOOBEs are only appearing on certain VMs.
Comment 10 John Arthorne CLA 2008-07-16 14:41:04 EDT
Sounds the same here.

*** This bug has been marked as a duplicate of bug 237166 ***