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:
- Use Java 6 for the Worklight Studio installation.
- After the Worklight Studio installation completes, close Eclipse.
- Update the eclipse.ini file to point to Java 7.
- Restart Eclipse.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21598218