Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352995

Summary: B3 Aggregator generates error during 'Build Aggregation' task
Product: [Technology] CBI Reporter: Wayne Pascoe <wayne.pascoe>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: miles.daffin, thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wayne Pascoe CLA 2011-07-25 07:47:17 EDT
The B3 aggregator generates the following error and related stack trace during the 'Build Aggregation' and 'Clean then Build Aggregation' steps. 

This is an intermittent error, and does not happen all of the time. 

org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository cannot be cast to org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository

java.lang.ClassCastException: org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository cannot be cast to org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
            at org.eclipse.b3.aggregator.engine.Builder.getAggregationArtifactRepository(Builder.java:730)
            at org.eclipse.b3.aggregator.engine.Builder.initializeArtifactMirroring(Builder.java:1004)
            at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:1650)
            at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildAggregationAction$1.run(AggregatorActionBarContributor.java:292)
            at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Version details for the aggregator that this occured with are as follows:

b3 Aggregator Engine (Incubation)	0.2.0.v20110720-0814 org.eclipse.b3.aggregator.engine.feature.feature.group	Eclipse b3 Project
Comment 1 Miles Daffin CLA 2011-11-11 10:03:17 EST
Seeing this error quite a lot today. Quite disruptive. Any idea why it happens?
Comment 2 Thomas Hallgren CLA 2011-11-12 03:59:19 EST

*** This bug has been marked as a duplicate of bug 362809 ***
Comment 3 David Williams CLA 2016-09-16 15:51:19 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
Made no changes to assignee's for closed bugs, even though some were old inbox.]