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 222377 - Installation fails with supplied catalog containing updates
Summary: Installation fails with supplied catalog containing updates
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Autoupdate (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-19 11:34 UTC by Tomas Danek
Modified: 2012-11-21 13:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
installer log file (2.57 MB, application/octet-stream)
2012-11-19 12:56 UTC, Tomas Danek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2012-11-19 11:34:08 UTC
Run installer on Win XP:
netbeans-trunk-nightly-2
01211190002-windows.exe -J-Dextra.update.center.url=http://nbinstaller.cz.oracle
.com:8080/view/Other/job/Test_nbms-and-uc_for_patch/lastSuccessfulBuild/artifact
/dist/uc/catalog.xml.gz

Installer installs IDE and checks for updates from supplied catalog. Finds updates and begins to download them. After a while, final panel appears saying installation was successful. However, self-update mechanism failed - seems like download was not complete and headless restart after downloaded updates was not performed, which leaves IDE in inconsistent state (IDE cannot be started).
Comment 1 Tomas Danek 2012-11-19 12:48:21 UTC
FYI: reproduced the same behaviour on Windows 7.
Comment 2 Tomas Danek 2012-11-19 12:56:39 UTC
Created attachment 128056 [details]
installer log file

Installer log file from W7 is showing:

[2012-11-19 13:40:27.573]:     [stdout]: Downloading Common Test Runner API
[2012-11-19 13:40:28.970]:     [stdout]: Downloading Legacy Java Hints SPI
[2012-11-19 13:40:29.571]:     [return]: killed by timeout
[2012-11-19 13:40:29.571]: ... command execution finished
[2012-11-19 13:40:29.571]:     .... exit code: 2147483647
[2012-11-19 13:40:29.571]:     .... done.
Comment 3 Jiri Rechtacek 2012-11-19 13:42:58 UTC
(In reply to comment #2)
> Created attachment 128056 [details]
> installer log file
> 
> Installer log file from W7 is showing:
> 
> [2012-11-19 13:40:27.573]:     [stdout]: Downloading Common Test Runner API
> [2012-11-19 13:40:28.970]:     [stdout]: Downloading Legacy Java Hints SPI
> [2012-11-19 13:40:29.571]:     [return]: killed by timeout
> [2012-11-19 13:40:29.571]: ... command execution finished
> [2012-11-19 13:40:29.571]:     .... exit code: 2147483647
> [2012-11-19 13:40:29.571]:     .... done.

Based on this log I think there are two different cases, the first one on Win XP failed by a unknown reason, the second one on Win 7 failed because the timeout for the whole operation expired - it needs to handle the timeout in a different way. The Win XP case needed more investigation.

Anyway, it's necessary to avoid IDE to launch with inconsistent updates in any case.
Comment 4 Jiri Rechtacek 2012-11-19 17:30:19 UTC
http://hg.netbeans.org/core-main/rev/c29c33d9fbdc
Comment 5 Tomas Danek 2012-11-20 12:30:19 UTC
verified in custom installer; case that on windows forked netbeans got out of installer control.

Product Version: NetBeans IDE Dev (Build 201211200411)
Java: 1.7.0_09; Java HotSpot(TM) Client VM 23.5-b02
Runtime: Java(TM) SE Runtime Environment 1.7.0_09-b05
System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)
User directory: C:\Users\tester\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\tester\AppData\Local\NetBeans\Cache\dev
Comment 6 Quality Engineering 2012-11-21 13:46:46 UTC
Integrated into 'main-golden', will be available in build *201211211016* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c29c33d9fbdc
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #222377: Installation fails with supplied catalog containing updates