Issue1769677

classification
Title: ZipException/invalid entry size
Type: Severity: normal
Components: Installer Versions:
Milestone:
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: otmarhumbel Nosy List: cgroves, mpetteys, otmarhumbel
Priority: normal Keywords:

Created on 2007-08-07.21:58:48 by mpetteys, last changed 2007-08-08.17:17:58 by cgroves.

Files
File name Uploaded Description Edit Remove
RH4-install.log otmarhumbel, 2007-08-08.05:30:44 Successful installation on RedHat 4
Messages
msg1832 (view) Author: Matt (mpetteys) Date: 2007-08-07.21:58:48
I get the below error when attempting to install on redhat desktop.  Using the sun jre1.6.0_02.  Any help would be appreciated.

sh-3.00# more /etc/redhat-release
Red Hat Desktop release 4 (Nahant Update 5)

sh-3.00$ /usr/java/jre1.6.0_02/bin/java -jar jython_installer-2.2rc3.jar --console 
Welcome to Jython !
You are about to install Jython version 2.2rc3
(at any time, answer c to cancel the installation)
For the installation process, the following languages are available: English, German
Please select your language [e/g] >>> e
Do you want to read the license agreement now ? [y/n] >>> n
Do you accept the license agreement ? [y/n] >>> y
The following installation types are available:
  1. All (everything, including sources)
  2. Standard (core, library modules, demos and examples, documentation)
  3. Minimum (core)
  9. Standalone (a single, executable .jar)
Please select the installation type [1/2/3/9] >>> 2
Do you want to install additional parts ? [y/n] >>> n
Do you want to exclude parts from the installation ? [y/n] >>> n
Please enter the target directory >>> /tmp/jython
Unable to find directory /tmp/jython, create it ? [y/n] >>> y
Please enter the target java home directory (== for current) >>> ==
Your java version to start Jython is: Sun Microsystems Inc. / 1.6.0_02
Please press Enter to proceed >>> 
Your operation system version is: Linux / 2.6.9-55.0.2.EL
Please press Enter to proceed >>> 
Summary:
  - mod: true
  - demo: true
  - doc: true
  - src: false
  - JRE: /usr/java/jre1.6.0_02
Please confirm copying of files to directory /tmp/jython [y/n] >>> y
 10 %
org.python.util.install.InstallerException: Error accessing jar file
        at org.python.util.install.JarInstaller.inflate(Unknown Source)
        at org.python.util.install.ConsoleInstaller.install(Unknown Source)
        at org.python.util.install.Installation.internalMain(Unknown Source)
        at org.python.util.install.Installation.main(Unknown Source)
Caused by: java.util.zip.ZipException: invalid entry size (expected 47828 but got 48149 bytes)
        at java.util.zip.ZipInputStream.readEnd(Unknown Source)
        at java.util.zip.ZipInputStream.read(Unknown Source)
        at java.io.FilterInputStream.read(Unknown Source)
        ... 4 more
msg1833 (view) Author: Oti Humbel (otmarhumbel) Date: 2007-08-08.05:30:44
I tried on a slightly older RedHad version, using Sun JDK 1.6.0_02, and it installed successfully.
You can find the details in the attached RH4-install.log

I suspect that the download of the .jar file was not complete.
File Added: RH4-install.log
msg1834 (view) Author: Oti Humbel (otmarhumbel) Date: 2007-08-08.11:29:44
Please find below the md5 checksum of the 2.2rc3 installer jar, and report if yours is the same.

[root@localhost ~]# md5sum -b /tmp/jython_installer-2.2rc3.jar
b1e730cb588e5e397880264e70d236a2 */tmp/jython_installer-2.2rc3.jar
msg1835 (view) Author: Matt (mpetteys) Date: 2007-08-08.16:57:33
It does look like the file is corrupt.  I downloaded one with the correct md5 and it installed correctly.  Strange, I used wget to get the files and there was no warnings of download errors.. 

I tried several of the different mirrors at different locations and received invalid files only from superb-west.dl.sourceforge.net, but only from my current location not an alternate.  It is not obvious if this is a mirror problem or a local problem (I hope not since this is corporate type environment).  

File that I got yesterday, location 1

	c6e7c435990f092087e499fe00b46274 *jython_installer-2.2rc3.jar

http://internap.dl.sourceforge.net/sourceforge/jython/jython_installer-2.2rc3.jar

	MD5 of download from location 1..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

	MD5 of download from location 2..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

	MD5 of download from location 1, try 2
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

http://superb-west.dl.sourceforge.net/sourceforge/jython/jython_installer-2.2rc3.jar

	MD5 of download from location 1..
	b48175612816d6dd947e302e5fddbbd7 *jython_installer-2.2rc3.jar

	MD5 of download from location 2..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

	MD5 of download from location 1, try 2
	3d23b0e9d42de1216d1a5e7cf5cc4f8e *jython_installer-2.2rc3.jar

	MD5 of download from location 1, try 3
	3d23b0e9d42de1216d1a5e7cf5cc4f8e *jython_installer-2.2rc3.jar

	MD5 of download from location 2, try 2
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

http://easynews.dl.sourceforge.net/sourceforge/jython/jython_installer-2.2rc3.jar

	MD5 of download from location 1..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

	MD5 of download from location 2..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar

	MD5 of download from location 1, try 2..
	b1e730cb588e5e397880264e70d236a2 *jython_installer-2.2rc3.jar
msg1836 (view) Author: Charlie Groves (cgroves) Date: 2007-08-08.17:17:58
That's pretty scary that you got three different md5s from the same location. I just tried superb-west from the 3 locations from where I can currently download things, and I got the correct md5 each time.
History
Date User Action Args
2007-08-07 21:58:48mpetteyscreate