IBM Support

P2 (Eclipse Update) cannot be installed using a Java 7 JVM with IBM Worklight and IBM Mobile Foundation

Troubleshooting


Problem

You might notice that repeated attempts to download plugins eventually fail. A dialog box opens and indicates that an error occurred while collection items are being installed.

Symptom

For example, if Eclipse has trouble retrieving org.apache.derby.core, you might see:

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=).
Multiple problems occurred while downloading.
Unable to write to repository: file:/C:/Users/nick/jee-32/eclipse/.
Failed to create directory C:\Users\nick\jee-32\eclipse\plugins\org.apache.derby.core_10.5.1.1_v20120213.
Unable to write to repository: file:/C:/Users/nick/jee-32/eclipse/.
Failed to create directory C:\Users\nick\jee-32\eclipse\plugins\org.apache.derby.core_10.5.1.1_v20120213.

Cause

The Java™ 7 Java virtual machine (JVM) modified its sort algorithm and exposed a bug in the update site sorting algorithm. The current implementation violates the Comparator.compare() contract for transitivity. This Comparator bug only surfaces with the new sorting algorithm that is found in the Java 7 JVM. The Java 6 JVM does surface the problem.

Resolving The Problem

For more information, see Bug 317785: Synchronization problem in mirror selection. To workaround this problem, complete the following steps:

  1. Use Java 6 for the Worklight Studio installation.

  2. After the Worklight Studio installation completes, close Eclipse.

  3. Update the eclipse.ini file to point to Java 7.

  4. Restart Eclipse.

[{"Product":{"code":"SS4HGH","label":"IBM Mobile Foundation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Installation","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF033","label":"Windows"}],"Version":"5.0","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Installation","Platform":[{"code":"","label":"Linux Red Hat - xSeries"},{"code":"","label":"Linux Red Hat - zSeries"},{"code":"","label":"Linux SUSE - xSeries"},{"code":"","label":"Linux SUSE - zSeries"},{"code":"","label":"Mac OS X"},{"code":"PF033","label":"Windows"}],"Version":"5.0","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21598218