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 128136 - installation failed: garbage after end of pack archive
Summary: installation failed: garbage after end of pack archive
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: issues@installer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-22 11:50 UTC by raharsha
Modified: 2008-02-26 10:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
installer log file (476.85 KB, text/plain)
2008-02-22 11:51 UTC, raharsha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description raharsha 2008-02-22 11:50:44 UTC
[2008-02-22 11:44:41.502]: executing command: /usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/unpack200
/home/harsha/software/glassfish-v2ur1/javadb/demo/databases/toursdb.jar.pack.gz
/home/harsha/software/glassfish-v2ur1/javadb/demo/databases/toursdb.jar, in directory: .
[2008-02-22 11:44:41.884]:     [stdout]: garbage after end of pack archive
[2008-02-22 11:44:41.884]:     [return]: 255
[2008-02-22 11:44:41.884]: ... command execution finished
[2008-02-22 11:44:41.885]: org.netbeans.installer.utils.exceptions.InstallationException: Cannot extract installation
data for GlassFish V2 UR1
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.product.components.Product.install(Product.java:285)
[2008-02-22 11:44:41.885]: 	at
org.netbeans.installer.wizard.components.actions.InstallAction.execute(InstallAction.java:151)
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:120)
[2008-02-22 11:44:41.885]: Caused by: java.io.IOException: Unpack200 finished with error
[2008-02-22 11:44:41.885]: Error code: 255
[2008-02-22 11:44:41.885]: Stdout: garbage after end of pack archive
[2008-02-22 11:44:41.885]: 
[2008-02-22 11:44:41.885]: Stderr: 
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.utils.FileUtils.unpack(FileUtils.java:1101)
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.utils.FileUtils.extractByList(FileUtils.java:1621)
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.utils.FileUtils.extractAll(FileUtils.java:1541)
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.utils.FileUtils.unjar(FileUtils.java:936)
[2008-02-22 11:44:41.885]: 	at org.netbeans.installer.product.components.Product.install(Product.java:275)
[2008-02-22 11:44:41.885]: 	... 2 more
[2008-02-22 11:44:41.886]: entering -- org.netbeans.installer.wizard.components.WizardAction$1.run():120
[2008-02-22 11:44:41.886]: ... create service tags action
[2008-02-22 11:44:41.887]: ... finished service tags action
[2008-02-22 11:44:41.887]: exiting -- org.netbeans.installer.wizard.components.WizardAction$1.run():120
[2008-02-22 11:44:45.119]: entering -- org.netbeans.installer.wizard.components.WizardAction$1.run():120
[2008-02-22 11:44:45.119]: ... execute netbeans registration action
[2008-02-22 11:44:45.119]:     ... product ID: 
[2008-02-22 11:44:45.119]: ... finished netbeans registration action
[2008-02-22 11:44:45.119]: exiting -- org.netbeans.installer.wizard.components.WizardAction$1.run():120
[2008-02-22 11:44:45.127]: entering -- org.netbeans.installer.wizard.components.actions.FinalizeRegistryAction.execute():63
[2008-02-22 11:44:45.127]: finalizing product registry
[2008-02-22 11:44:45.127]:     ... removing remaining installation data for all the products
[2008-02-22 11:44:45.127]:     deleting file: /home/harsha/.nbi/tmp/data,1.jar
[2008-02-22 11:44:45.128]:     deleting file: /home/harsha/.nbi/tmp/data,2.jar
Comment 1 raharsha 2008-02-22 11:51:40 UTC
Created attachment 57057 [details]
installer log file
Comment 2 raharsha 2008-02-22 12:01:38 UTC
If I leave out glassfish also I get the error.

2008-02-22 11:57:00.167]: extracting
/home/harsha/software/netbeans-6.0.1/java1/modules/org-netbeans-modules-refactoring-java.jar.pack.gz
[2008-02-22 11:57:00.168]: executing command: /usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/unpack200
/home/harsha/software/netbeans-6.0.1/java1/modules/org-netbeans-modules-refactoring-java.jar.pack.gz
/home/harsha/software/netbeans-6.0.1/java1/modules/org-netbeans-modules-refactoring-java.jar, in directory: .
[2008-02-22 11:57:00.190]:     [stdout]: bad ref
[2008-02-22 11:57:00.190]:     [return]: 255
[2008-02-22 11:57:00.190]: ... command execution finished
[2008-02-22 11:57:00.192]: org.netbeans.installer.utils.exceptions.InstallationException: Cannot extract installation
data for Java SE
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.product.components.Product.install(Product.java:285)
[2008-02-22 11:57:00.192]: 	at
org.netbeans.installer.wizard.components.actions.InstallAction.execute(InstallAction.java:151)
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:120)
[2008-02-22 11:57:00.192]: Caused by: java.io.IOException: Unpack200 finished with error
[2008-02-22 11:57:00.192]: Error code: 255
[2008-02-22 11:57:00.192]: Stdout: bad ref
[2008-02-22 11:57:00.192]: 
[2008-02-22 11:57:00.192]: Stderr: 
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.utils.FileUtils.unpack(FileUtils.java:1101)
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.utils.FileUtils.extractByList(FileUtils.java:1621)
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.utils.FileUtils.extractAll(FileUtils.java:1541)
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.utils.FileUtils.unjar(FileUtils.java:936)
[2008-02-22 11:57:00.192]: 	at org.netbeans.installer.product.components.Product.install(Product.java:275)
[2008-02-22 11:57:00.192]: 	... 2 more
[2008-02-22 11:57:00.438]: copying file: /tmp/nbi-37961.tmp to: /tmp/nbi-37960.tmp
[2008-02-22 11:57:00.448]: deleting file: /tmp/nbi-37959.tmp
[2008-02-22 11:57:00.970]: copying file: /tmp/nbi-37961.tmp to: /tmp/nbi-37960.tmp
[2008-02-22 11:57:00.971]: extracting
/home/harsha/software/netbeans-6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/actionmailer-1.3.5/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml
[2008-02-22 11:57:00.973]: setting permissions 644 on
/home/harsha/software/netbeans-6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/actionmailer-1.3.5/test/fixtures/path.with.dots/funky_path_mailer/multipart_with_template_path_with_dots.rhtml
[2008-02-22 11:57:00.973]: extracting
/home/harsha/software/netbeans-6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/actionpack-1.13.5/test/controller/controller_fixtures/vendor/plugins/bad_plugin/lib/plugin_controller.rb
[2008-02-22 11:57:00.975]: setting permissions 644 on
/home/harsha/software/netbeans-6.0.1/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/actionpack-1.13.
Comment 3 dlipin 2008-02-22 12:38:41 UTC
raharsha,

what is the filename of installer you used, what is its real md5 sum and file size?
Looks like a corrupted installer.

thanks,
dmitry
Comment 4 raharsha 2008-02-25 14:54:52 UTC
-rwxr-xr-x 1 harsha harsha 204607488 Feb 22 11:23 netbeans-6.0.1-ml-linux.sh

md5sum netbeans-6.0.1-ml-linux.sh 
544d4c50816f066358fc830e3e17fb3d  netbeans-6.0.1-ml-linux.sh


This only happens with jdk 6. With jdk 5 I am able to install.
Comment 5 dlipin 2008-02-25 15:58:45 UTC
Hm.. the size and MD5 seems to be fine.

I`ve just installed the same NetBeans on my Linux RHFC3 box with the same JDK (with the only difference: jdk is 
installed using JDK installer not from the packages).

Could be the corrputed JDK package on your system?
It can be also some package-specific issue...
raharsha, could you please download the JDK6U4 from Sun`s site, install it and run NetBeans installer instructing to 
use that JDK with the help of --javahome <path-to-jdk> arguments?
Download url:
http://java.sun.com/javase/downloads/index.jsp


Mikhail,
Could you please test one of you QE systems with java-6-sun-1.6.0.03 package (or similar) installed if the issue is 
reproducible ?


thanks,
Dmitry
Comment 6 Mikhail Kondratyev 2008-02-26 08:47:12 UTC
I have Linux Ubuntu with JDK 1.6.0_03 installed from the package. I could install NB 6.0.1 without any problem
Comment 7 raharsha 2008-02-26 10:55:59 UTC
I dont know what could be the problem. I can close this bug as it is not reproducible and I have a workaround.