This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 116421 - [unpack200] Error on install: toplink-essentials.jar cannot be extracted
Summary: [unpack200] Error on install: toplink-essentials.jar cannot be extracted
Status: RESOLVED WORKSFORME
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-23 04:01 UTC by raistmajere
Modified: 2007-09-26 20:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Installation complete log file with the error near line 2800 (351.52 KB, text/plain)
2007-09-23 04:03 UTC, raistmajere
Details
The file with supposed error (754.37 KB, application/octet-stream)
2007-09-24 22:29 UTC, raistmajere
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raistmajere 2007-09-23 04:01:26 UTC
At the end of the installation of Netbeans 6.0 beta 1 I got a message saying there were errors. Looking the log I 
found this:
[2007-09-23 03:39:36.437]: extracting D:\NetBeans-6_0\java1\modules\ext\toplink\toplink-essentials.jar.pack.gz
[2007-09-23 03:39:36.453]: executing command: C:\Archivos de programa\Java\jre1.6.0_02\bin\unpack200.exe D:\NetBeans-
6_0\java1\modules\ext\toplink\toplink-essentials.jar.pack.gz D:\NetBeans-6_0\java1\modules\ext\toplink\toplink-
essentials.jar, in directory: .
[2007-09-23 03:39:37.031]:     [stdout]: null ref
[2007-09-23 03:39:37.046]:     [return]: -1
[2007-09-23 03:39:37.046]: ... command execution finished
[2007-09-23 03:39:37.046]: org.netbeans.installer.utils.exceptions.InstallationException: Cannot extract installation 
data
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.product.components.Product.install(Product.java:243)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.wizard.components.actions.InstallAction.execute
(InstallAction.java:128)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:104)
[2007-09-23 03:39:37.046]: Caused by: java.io.IOException: Unpack200 finished with error
[2007-09-23 03:39:37.046]: Error code: -1
[2007-09-23 03:39:37.046]: Stdout: null ref
[2007-09-23 03:39:37.046]: Stderr: 
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.utils.FileUtils.unpack(FileUtils.java:1009)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.utils.FileUtils.extractByList(FileUtils.java:1528)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.utils.FileUtils.extractAll(FileUtils.java:1448)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.utils.FileUtils.unjar(FileUtils.java:911)
[2007-09-23 03:39:37.046]: 	at org.netbeans.installer.product.components.Product.install(Product.java:232)
[2007-09-23 03:39:37.046]: 	... 2 more
I'll not use that module, but other would like to.
I executed the command from the cmd and get the same result. Using Java 1.5.0_12 I got the same error. Using verbose 
with the command, I got this:
C:\>"C:\Archivos de programa\Java\jre1.6.0_02\bin\unpack200.exe" -v D:\NetBeans-6_0\java1\modules\ext\toplink\toplink-
essentials.jar.pack.gz D:\NetBeans-6_0\java1\modules\ext\toplink\toplink-essentials.jar
Unpacking from D:\NetBeans-6_0\java1\modules\ext\toplink\toplink-essentials.jar.pack.gz to D:\NetBeans-6_0\java1
\modules\ext\toplink\toplink-essentials.jar
com.sun.java.util.jar.pack.unpack.log.file=-unpack.deflate.hint=(not set)
com.sun.java.util.jar.pack.unpack.remove.packfile=false
com.sun.java.util.jar.pack.verbose=1
com.sun.java.util.jar.pack.unpack.modification.time=(not set)
null ref
Hope it helps
Comment 1 raistmajere 2007-09-23 04:03:52 UTC
Created attachment 49308 [details]
Installation complete log file with the error near line 2800
Comment 2 dlipin 2007-09-24 16:07:11 UTC
raistmajere,

what is the md5 of toplink-essentials.jar.pack.gz file?
could you please also attach it to this issue?
what is the name of the installer executable and its md5?

Thanks,
Dmitry
Comment 3 raistmajere 2007-09-24 22:29:51 UTC
Created attachment 49390 [details]
The file with supposed error
Comment 4 raistmajere 2007-09-24 22:34:05 UTC
The Netbeans installer filename is netbeans-6.0beta1-windows.exe, it was the "All" pack. I don't know of a Windows 
program to calculate MD5, so if you could please tell of any opensource, I'll execute on the installer and the packed 
jar and tell them here.
Comment 5 dlipin 2007-09-25 07:49:08 UTC
It seems that this file has different md5 from that goes in beta1 distribution.
Most probably the downloaded file (netbeans-6.0beta1-windows.exe) is corrupted.

Please check the md5 using e.g. the following utility : 
http://bulk.whitsoftdev.com/files/md5w.zip

What is the md5 of your netbeans-6.0beta1-windows.exe?
Comment 6 raistmajere 2007-09-25 23:11:09 UTC
I've got following MD5 for the installer:
d2710bd4f28613c567134def82091318
And this one for the packed jar:
a088322d177fbf5eddca8cba71393785

If it's a corrupt download, I'm sorry for making you loose your time... What's rare for me is that a corrupt file 
can "complete" the installation and "look like" a non-corrupt file, but as I know, just one bit different can make 
things behave unexpected. Maybe the installer could have a self-md5 check to prevent things like this.
Comment 7 dlipin 2007-09-26 07:34:29 UTC
raistmajere,

thats a little bit strange...
I have the same value for the whole .exe file but different for that particular packed jar.
It says this file was corrupted when extracting from the .exe or writing to the disk.

raistmajere,
could you please try install NetBeans Beta1 once again?
please remove the Netbeans/GlassFish/Tomcat installation directories before installation and %USERPROFILE%/.nbi 
directory as well.

BTW, did you have any antivirus software running when you installed NetBeans first time?
If yes than it can be the issue.. please turn it off before giving another try of installation.

Please let me know the results.

Thanks a lot for you help,
Dmitry
Comment 8 raistmajere 2007-09-26 20:07:19 UTC
Hi again, Dmitry.

I've done what you suggested. I've unistalled netbeans and tomcat, erased the %USERPROFILE%/.nbi and cleaned all the 
temp files in my hard disk and reinstalled using all the same options as last time (I tried without switching off the 
antivirus) and that time everything was correct. So it might have been a disk error, or something related to temp 
files. Should I close this issue or will you do it?
Thanks for everything.

Juan Horta
Comment 9 dlipin 2007-09-26 20:51:01 UTC
raistmajere,

thanks for the update.
I`ll close the issue as not reproducible (WORKSFORME).

Thanks,
dmitry