Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352503 - java.util.NoSuchElementException on complex build
Summary: java.util.NoSuchElementException on complex build
Status: CLOSED FIXED
Alias: None
Product: CBI
Classification: Technology
Component: CBI p2 Repository Aggregator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 16:02 EDT by Miles Daffin CLA
Modified: 2016-09-16 15:52 EDT (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 Miles Daffin CLA 2011-07-19 16:02:50 EDT
When building a large aggregation I get this exception each time. I am using   b3 Aggregator Editor (Incubation)	0.2.0.v20110718-2116	org.eclipse.b3.aggregator.editor.feature.feature.group.

----

org.eclipse.core.runtime.CoreException: java.util.NoSuchElementException
	at org.eclipse.b3.util.ExceptionUtils.fromMessage(ExceptionUtils.java:53)
	at org.eclipse.b3.util.ExceptionUtils.wrap(ExceptionUtils.java:120)
	at org.eclipse.b3.aggregator.engine.ValidationSetVerifier.run(ValidationSetVerifier.java:784)
	at org.eclipse.b3.aggregator.engine.Builder.runRepositoryVerifier(Builder.java:1713)
	at org.eclipse.b3.aggregator.engine.Builder.run(Builder.java:1644)
	at org.eclipse.b3.aggregator.presentation.AggregatorActionBarContributor$BuildAggregationAction$1.run(AggregatorActionBarContributor.java:292)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.util.NoSuchElementException
	at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:717)
	at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:696)
	at org.eclipse.b3.aggregator.engine.ValidationSetVerifier.resolvePartialIU(ValidationSetVerifier.java:557)
	at org.eclipse.b3.aggregator.engine.ValidationSetVerifier.run(ValidationSetVerifier.java:703)
	... 4 more
Comment 1 Thomas Hallgren CLA 2011-07-20 00:56:16 EDT
A sample b3aggr file would be very helpful. Would that be possible here or does it include proprietary stuff? If it doesn't but still is rendered sensitive, perhaps you could email it to me?

Thanks.
Comment 2 Thomas Hallgren CLA 2011-07-20 02:36:02 EDT
I found the cause of this. It happens when a legacy site (one that only has a site.xml) has IU's for which no artifacts has been generated. A partial IU can then not be resolved. A warning will be issued when this happens since it's not fatal and I think installing this IU further on will just be a no-op.

Fixed in rev. 1536.
Comment 3 Miles Daffin CLA 2011-07-20 12:24:30 EDT
Thanks Thomas. The model in question would only work in our environment, so I could not provide it. I have run the build again a couple of times and have not seen this error again yet.
Comment 4 Miles Daffin CLA 2011-07-25 07:08:26 EDT
Still not seen this again. Closing.
Comment 5 David Williams CLA 2016-09-16 15:52:22 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.]