Community
Participate
Working Groups
Build Identifier: I20100129-1300 java.lang.ArrayIndexOutOfBoundsException: 4 at org.eclipse.pde.internal.core.builders.BundleErrorReporter.validateRequireBundle(BundleErrorReporter.java:492) at org.eclipse.pde.internal.core.builders.BundleErrorReporter.validateContent(BundleErrorReporter.java:63) at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.validateManifestFile(ManifestConsistencyChecker.java:269) at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.validateProject(ManifestConsistencyChecker.java:227) at org.eclipse.pde.internal.core.builders.ManifestConsistencyChecker.build(ManifestConsistencyChecker.java:157) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 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:42) 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) Reproducible: Always Steps to Reproduce: I added the two optional bundle dependencies to three bundles and saved. during compilation of one of them, I got the AIOOBE above. I then recompiled again and it worked fine. The manifest of the bundle in question: Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: Ui Bundle-SymbolicName: com.ibm.team.apt.api.ui Bundle-Version: 1.0.0.qualifier Require-Bundle: com.ibm.team.dev.jdojo.runtime.common;bundle-version="1.0.0", com.ibm.team.dev.jdojo.runtime.java;bundle-version="1.0.0", com.ibm.team.apt.api.client;bundle-version="1.0.0", com.ibm.team.apt.api.common;bundle-version="1.0.0", com.ibm.team.rtc.common.scriptengine;resolution:=optional, net.jazz.ajax;resolution:=optional Export-Package: com.ibm.team.apt.ui.model
The code throwing the AIOOBE assumes that the manifest header and bundle description have the same list of required bundles. This *should* always be the case, but in your case they are out of synch (the first time you build).
Possible dupe of bug 308741
*** This bug has been marked as a duplicate of bug 308741 ***