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 208407 - Uninstall-Error: java.lang.IllegalArgumentException: The specified percentage - 200 is invalid. The total percentage of the progress cannot be less than 0 and greater than 100.
Summary: Uninstall-Error: java.lang.IllegalArgumentException: The specified percentage...
Status: RESOLVED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 207863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-14 16:45 UTC by stefan79
Modified: 2012-02-23 07:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logfile (346.78 KB, application/octet-stream)
2012-02-14 16:45 UTC, stefan79
Details
Screenshot (60.64 KB, image/png)
2012-02-14 16:45 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2012-02-14 16:45:05 UTC
Created attachment 115716 [details]
Logfile

At uninstall the following exception occurs:

[2012-02-14 17:20:55.222]:         java.lang.IllegalArgumentException: The specified percentage - 200 is invalid. The total percentage of the 
[2012-02-14 17:20:55.222]:         progress cannot be less than 0 and greater than 100.
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.progress.Progress.setPercentage(Progress.java:236)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.progress.Progress.setPercentage(Progress.java:261)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.FileUtils.deleteFile(FileUtils.java:1499)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.FileUtils.deleteFile(FileUtils.java:1479)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.FileUtils.deleteFile(FileUtils.java:844)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.utils.FileUtils.deleteFile(FileUtils.java:830)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.products.nb.base.ConfigurationLogic.uninstall(ConfigurationLogic.java:717)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.product.components.Product.uninstall(Product.java:540)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.wizard.components.actions.UninstallAction.execute(UninstallAction.java:120)
[2012-02-14 17:20:55.222]:         	at org.netbeans.installer.wizard.components.WizardAction$1.run(WizardAction.java:123)
Comment 1 stefan79 2012-02-14 16:45:26 UTC
Created attachment 115717 [details]
Screenshot
Comment 2 Libor Fischmeistr 2012-02-16 10:59:56 UTC
core-main/rev/7704c5433086

I couldn't reproduce this exception, but uninstaller shouldn't fail if bad information tries to set in progress bar. So only message is written to log, but uninstallation continues.
Comment 3 Quality Engineering 2012-02-17 11:01:21 UTC
Integrated into 'main-golden', will be available in build *201202170400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7704c5433086
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #208407: Uninstall-Error: java.lang.IllegalArgumentException: The specified percentage - 200 is invalid. The total percentage of the progress cannot be less than 0 and greater than 100.
Comment 4 Jiri Rechtacek 2012-02-23 07:53:08 UTC
*** Bug 207863 has been marked as a duplicate of this bug. ***