Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360057 - Update installation fails
Summary: Update installation fails
Status: CLOSED DUPLICATE of bug 317785
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 19:50 EDT by Holger Knust CLA
Modified: 2012-08-17 20:25 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Knust CLA 2011-10-05 19:50:21 EDT
Build Identifier: 20110615-0604

The updater fails with:

'Updating Software' has encountered a problem.

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Comparison method violates its general contract!
Comparison method violates its general contract!


Reproducible: Always

Steps to Reproduce:
1. Ran "Check for available updates"
2. Selected both updates choices, i.e. "Eclipse IDE for Java EE Developers (1.4.1.20110909-1818)" & "m2e Maven Integration for Eclipse (1.0.100.20110804-1717)"
3.Selected Finish and error occurrs during update process
Comment 1 Thomas Schindl CLA 2011-10-06 02:17:26 EDT
I got the same exception when i used jdk 7 and it went away by going back to my jdk-6 install.
Comment 2 Dani Megert CLA 2011-10-06 04:52:56 EDT
If you don't want to fallback to JRE 6 you can also use the following VM argument:
-Djava.util.Arrays.useLegacyMergeSort=true

*** This bug has been marked as a duplicate of bug 317785 ***
Comment 3 Holger Knust CLA 2011-10-06 07:13:56 EDT
Thanks, Dani that worked!

I was a bit confused when I saw the original bug report was closed and marked as fixed but the issue still occurred. Using your workaround, I was able to upgrade to a version that includes the fix (hopefully).
Comment 4 Traca Zerui CLA 2012-08-17 15:01:28 EDT
Hi Dani Megert .

I am having the same problem.and because i am new with ecplipse, could you tell me , please, where exactly to put (-Djava.util.Arrays.useLegacyMergeSort=true) ?

I´ve tried the command: "eclipse -Djava.util.Arrays.useLegacyMergeSort=true" but the issue persist.

Thanks and best regards.

Traca
Comment 5 Thomas Hallgren CLA 2012-08-17 18:10:34 EDT
Try:

eclipse -vmargs -Djava.util.Arrays.useLegacyMergeSort=true
Comment 6 Traca Zerui CLA 2012-08-17 20:25:55 EDT
Thanks Thomas.

it did not work.

thanks anyway.


(In reply to comment #5)
> Try:
> 
> eclipse -vmargs -Djava.util.Arrays.useLegacyMergeSort=true