Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 302122 - AIOOBE after adding optional bundle dependencies
Summary: AIOOBE after adding optional bundle dependencies
Status: CLOSED DUPLICATE of bug 308741
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 308741
Blocks:
  Show dependency tree
 
Reported: 2010-02-08 06:32 EST by Michael Schneider CLA
Modified: 2011-02-01 14:06 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schneider CLA 2010-02-08 06:32:09 EST
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
Comment 1 Curtis Windatt CLA 2010-02-08 14:34:02 EST
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).
Comment 2 Curtis Windatt CLA 2010-06-17 16:32:53 EDT
Possible dupe of bug 308741
Comment 3 Curtis Windatt CLA 2011-02-01 14:06:40 EST

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