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 218125 - Windows unexpectedly restarted after JDK installation
Summary: Windows unexpectedly restarted after JDK installation
Status: VERIFIED FIXED
Alias: None
Product: installer
Classification: Unclassified
Component: JDK bundle (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 11:36 UTC by Jiri Skrivanek
Modified: 2012-09-18 10:03 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logs. (14.50 KB, application/octet-stream)
2012-09-11 11:36 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-09-11 11:36:24 UTC
Created attachment 124156 [details]
Logs.

I started jdk-7u7-nb-7_2-windows-i586-ml.exe installer on Windows7-64bit. I confirmed all defaults and installation started. Suddenly windows went down after JDK was installed. I am not able to reproduce it now but I saw the same behavior in the past several times.
Comment 1 Libor Fischmeistr 2012-09-11 13:16:03 UTC
Reproduced:

1, Install JDK 7u6 (or previous 7)
2, Install NetBeans 7.1.2 PHP (or other Java app which will be running on JRE 7u6 installed before)
     - when installing don't choose JDK but JRE!
3, Run NetBeans
4, Launch jdk-7u7-nb-7_2-windows-i586-ml.exe installer.
5, The Windows will shutdown.

The problem is probably in JDK - when installing new Java 7 version, previous JRE is overwritten. But when there is some application running on previous JRE the system is restarted.
Comment 2 Libor Fischmeistr 2012-09-11 13:37:57 UTC
Tested again - running just jdk-7u7-windows-i586.exe installer (no NetBeans bundle) by command:

jdk-7u7-windows-i586.exe /s /v/log "C:\Users\netbeans\.nbi\log\20120911150358_jdk_install.log" /qn /norestart INSTALLDIR="C:\PROGRA~2\Java\JDK17~2.0_0"

the same command as NetBeans installer is executing when installing JDK.

The system was restarted too. It proves that the source of this problem is JDK installer.
Comment 3 Marian Mirilovic 2012-09-12 07:46:46 UTC
(In reply to comment #2)
> The system was restarted too. It proves that the source of this problem is JDK
> installer.

Ok, in that case we can close this one as WONTFIX and report P1 against JDK team. Libor/Tonda could you please do that ? Thanks in advance.
Comment 4 Libor Fischmeistr 2012-09-12 12:23:48 UTC
(In reply to comment #3)
> Ok, in that case we can close this one as WONTFIX and report P1 against JDK
> team. Libor/Tonda could you please do that ? Thanks in advance.

Done. JDK bug 7100937 reopened.
Comment 5 jqz 2012-09-12 13:37:44 UTC
Please use the "REBOOT=ReallySuppress" to suppress the restart. Thanks,
Comment 6 Libor Fischmeistr 2012-09-13 08:34:35 UTC
(In reply to comment #5)
> Please use the "REBOOT=ReallySuppress" to suppress the restart. Thanks,

It worked, thanks. But it worked only for standalone JDK installer. The NetBeans bundle is still restarting system. Unfortunately it seems now that it is problem of NetBeans installer - REOPENED
Comment 7 Jiri Rechtacek 2012-09-13 09:41:12 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Please use the "REBOOT=ReallySuppress" to suppress the restart. Thanks,
> 
> It worked, thanks. But it worked only for standalone JDK installer. The
> NetBeans bundle is still restarting system. Unfortunately it seems now that it
> is problem of NetBeans installer - REOPENED

It's weird. IDE installer has not capability to force restart of Windows. We need deeper investigation....
Comment 8 Libor Fischmeistr 2012-09-17 11:24:55 UTC
Fixed in changeset core-main/rev/f57344132928

Arguments for ProcessBuilder were badly used and REBOOT=ReallySuppress was ignored.
Comment 9 Quality Engineering 2012-09-18 02:10:39 UTC
Integrated into 'main-golden', will be available in build *201209180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f57344132928
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #218125: Windows unexpectedly restarted after JDK installation