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.
Summary: | [Vista] Installer does not start | ||
---|---|---|---|
Product: | installer | Reporter: | Max Sauer <msauer> |
Component: | Code | Assignee: | mslama <mslama> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | anebuzelsky, blaha, jchalupa, lhasik |
Priority: | P2 | Keywords: | RELNOTE |
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | installer log file |
Description
Max Sauer
2006-09-20 16:58:07 UTC
Created attachment 34445 [details]
installer log file
I've attached log file from: netbeans-5_5-daily-bin-200609250000-windows-25_Sep_2006_0000.exe -is:l og installer.log -is:javahome "C:\Program Files\Java\jdk1.6.0" There is an exception stack trace inside: (Sep 25, 2006 9:45:53 AM), Install, com.installshield.wizard.StandardWizardListener, dbg, java.lang.ArrayIndexOutOfBoundsException: 3136 java.lang.ArrayIndexOutOfBoundsException: 3136 at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:800) at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:274) at sun.awt.shell.ShellFolder.get(ShellFolder.java:218) ... (whole stack trace attached) --- JDK: java version "1.6.0-rc" Java(TM) SE Runtime Environment (build 1.6.0-rc-b99) Java HotSpot(TM) Client VM (build 1.6.0-rc-b99, mixed mode, sharing) Confirmed. I filed issue #6474738 against Swing. Workaround is to use command line option -is:extract to extract setup.jar from installer. Then run "java -jar setup.jar". Unfortunately there is problem with running external process from installer due to strict security policy in Windows Vista RC1 => installer fails anyway. I am investigating it now and will file new issue. *** Issue 85102 has been marked as a duplicate of this issue. *** If User Account Control is turned on installer fails. I filed separate issue #85739 to handle this behavior somehow. this applies to all installers (e.g. Mobility Pack ...) should I file separate issue or will you fix all the installers? I downgrading priority to P2 since Vista isn't supported platform yet. Will send a waiver request. This should be IMO mentioned in Release Notes together with issue 85739. Info for release notes (the same as in issue #85739): Installer must be run on JDK 6.0 build 96 and newer. Also Compatibility mode must be disabled. (Vista sets compatibility mode for installer exe automaticaly. It must be switched off manually in File Properties -> Compatibility tab.) Then installer exe runs fine even if UAC is enabled. I review current status of our understanding of all issues here: First it is for Vista RC1 build 5600. There are 2 problems with JDK on Vista: 1. #6449933 Problem with JFileChooser. It is fixed in JDK 6.0 b96. 2. #6474738 It is similar to problem 1 (so it took some time we found it is not the same) and is caused by running installer exe in compatibility mode for Win XP. (For some reason Vista decides to run installer exe in this compatibility mode.) It causes incorrect OS version returned by native method GetVersion() and as JDK code does not handle case that program running on Vista can return incorrect OS version it causes crash. Workaround is to switch off compatibility mode manualy for installer exe. Conclusion: We need to run installer in JDK 6.0 b96 and newer due to problem [1]. We need to switch off compatibility mode manually for installer exe to workaround problem [2]. If we follow this installer exe runs fine even if UAC is enabled. (In issue #85739 we found that UAC prevents running some installer background task when installer is run using "java -jar setup.jar".) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6449933 -- Fixed in Build96 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6474738 -- ArrayIndexOutOfBoundsException The installer runs correctly on Windows Vista RC2, with UAC turned on. --- Vista RC2 b5744 Netbeans 5.5RC1 JDK 1.6.0 b100 This seems to be becouse of compatability mode is OFF by default in RC2. Installer continues to fail. Followed suggestions under the release notes (turned compatibility off, even tried it with it on). Silient installation works but when ever I try to click open project it get: java.lang.ArrayIndexOutOfBoundsException: 3184 at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Win32ShellFolder2.java:800) at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.java:274) Which has been noted to be fixed in b96, but is still causing issues Microst Windows Vista Ultimate, 6.0.5600 Build 5600 java version "1.6.0-rc" Java(TM) SE Runtime Environment (build 1.6.0-rc-b102) Java HotSpot(TM) Client VM (build 1.6.0-rc-b102, mixed mode, sharing) Was able to resovle the file chooser issue. After spending much time trying to figure out why netbeans "appeared" to be running in "compatibility" mode even though the short cut properties were disabled, the exe properties where disabled and java*.exe were disabled I checked the "show settings for users" which appeared to be set to Windows XP. Appologies Also checked the installer, same conclusion. The top level properties were disablled, but the "Show settings for all users" were still enabled When trying to install Netbeans 6 (28.11.06) on Vista, the installer exits when it's about to copy files. C:\program files\netbeans 6.0 dev has been created but contains 0 files. When looking at catalog properties for "c:\program files\netbeans 6.0" it appears to be writeprotected. Removed the writeonly flag and tried again - with success When trying to install Netbeans 6 (28.11.06) on Vista, the installer exits when it's about to copy files. C:\program files\netbeans 6.0 dev has been created but contains 0 files. When looking at catalog properties for "c:\program files\netbeans 6.0" it appears to be writeprotected. Removed the writeonly flag and tried again - with success Please file separate issue for copy problem. Installer creates target directory if it does not exist yet. If new directory is created access right should be correct. At least we did not enocunter any such problem. If directory already exists it might have incorrect access rights. Also add which Vista build you use and what JDK version/build is used to run installer. *** Issue 90601 has been marked as a duplicate of this issue. *** *** Issue 88291 has been marked as a duplicate of this issue. *** *** Issue 95886 has been marked as a duplicate of this issue. *** No more reports. 1. JDK already fixes firts problem. 2. Vista FCS does not set compatibility mode for installer automaticly. |