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

Bug 361517

Summary: Cannot install Buckminster due to JAR files with invalid hashes
Product: z_Archived Reporter: Nick Giles <nick.giles>
Component: BuckminsterAssignee: buckminster.core-inbox <buckminster.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Error details from Eclipse installation none

Description Nick Giles CLA 2011-10-20 06:33:51 EDT
Build Identifier: Version: 3.7.1 Build id: M20110909-1335

Attempted to install Buckminster, both in an Eclipse, and using the commandline tools using the director_latest.zip file, and got tampering warnings from the 

Reproducible: Always

Steps to Reproduce:
1. Open an Eclipse which does not have Buckminster installed
2. Help > Install New Software
3. Enter 'http://download.eclipse.org/tools/buckminster/updates-3.7'
4. Select 'Buckminster - Core'
5. Click 'Finish'

After a while, you'll get an error as in the attachment
Comment 1 Nick Giles CLA 2011-10-20 06:38:05 EDT
Created attachment 205604 [details]
Error details from Eclipse installation
Comment 2 Nick Giles CLA 2011-10-20 06:40:46 EDT
Lines from error, to help with easy searching...

Problems downloading artifact: osgi.bundle,org.eclipse.buckminster.ant,1.2.360.v20110828-1131.
File has invalid content:/tmp/signatureFile6168589484575626043.jar
Invalid content:bmant.jar
The file "bmant.jar" in the jar "/tmp/signatureFile6168589484575626043.jar" has been tampered!
Comment 3 Thomas Hallgren CLA 2011-10-21 01:35:05 EDT
Just tried this and it works for me. Did you try this with a very old JVM? Or perhaps there was a network glitch? You could try using:

 -Declipse.p2.mirrors=false
Comment 4 Nick Giles CLA 2011-10-21 04:39:39 EDT
I'm using Sun (Oracle?) Java 1.7.0:
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)

If it's a network glitch, it's a persistent and odd one. I haven't tried downloading from another location so far, but I reasonably frequently install other Eclipse features from remote update sites.

Attempt 1, a clean Eclipse 3.7.1 on Sun Java 1.7.0 (just a retry of yesterday)

Got most of the way through installation, then:

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Retry another mirror
Problems downloading artifact: osgi.bundle,org.eclipse.buckminster.ant,1.2.360.v20110828-1131.
File has invalid content:/tmp/signatureFile1180951921562407413.jar
Invalid content:bmant.jar
The file "bmant.jar" in the jar "/tmp/signatureFile1180951921562407413.jar" has been tampered!
Invalid content:ant_tasks/ant_tasks.jar
The file "ant_tasks/ant_tasks.jar" in the jar "/tmp/signatureFile1180951921562407413.jar" has been tampered!


==========

Attempt 2, a clean Eclipse 3.7.1 on Sun Java 1.7.0, run as "./eclipse -Declipse.p2.mirrors=false"

Got most of the way through installation, then:

An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Retry another mirror
Problems downloading artifact: osgi.bundle,org.eclipse.buckminster.ant,1.2.360.v20110828-1131.
File has invalid content:/tmp/signatureFile748743890909006706.jar
Invalid content:bmant.jar
The file "bmant.jar" in the jar "/tmp/signatureFile748743890909006706.jar" has been tampered!
Invalid content:ant_tasks/ant_tasks.jar
The file "ant_tasks/ant_tasks.jar" in the jar "/tmp/signatureFile748743890909006706.jar" has been tampered!(In reply to comment #3)
> Just tried this and it works for me. Did you try this with a very old JVM? Or
> perhaps there was a network glitch? You could try using:
> 
>  -Declipse.p2.mirrors=false
Comment 5 Thomas Hallgren CLA 2011-10-21 04:54:59 EDT
I've had other people report problems with Java 1.7 (I'm using Java 1.6 myself). Could you try with Java 1.6 and see if that works?
Comment 6 Thomas Hallgren CLA 2011-10-21 05:29:35 EDT
Just tried with Java 1.7.0 on a Linux x86_64 box. I get the same error. This is indeed strange since the 1.6 JVM is able to do the unpacking without problems. I entered a p2 bug for this.
Comment 7 Nick Giles CLA 2011-10-21 05:49:10 EDT
Yep, and it works for me with Java 1.6.
Comment 8 Thomas Hallgren CLA 2011-10-21 06:25:59 EDT
I rebuilt our update site so that it contains both packed and unpacked jars. P2 will then silently fall back to the unpacked jar when it encounters this error. I verified that 'Buckminster - Core' can be installed successfully using Java 1.7.0.

We will retain both unpacked and packed jars until this issue has been resolved.