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 220959 - netbeans not running on vista
Summary: netbeans not running on vista
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.2.1
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 17:29 UTC by 351fastback
Modified: 2012-11-01 02:40 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Erroe Message Log (8.08 KB, text/plain)
2012-10-27 17:29 UTC, 351fastback
Details
netbeans.conf (2.88 KB, text/plain)
2012-10-30 01:55 UTC, 351fastback
Details
I manually uninstalled, and then reinstalled to the dir C:\Netbeans\. The first run made it a little further and showed a dialog box titled "Netbeans IDE Warning". I copied the contents and pasted t (14.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-10-30 14:36 UTC, 351fastback
Details
trace.log (30.32 KB, application/octet-stream)
2012-10-30 16:01 UTC, 351fastback
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 351fastback 2012-10-27 17:29:31 UTC
Created attachment 126666 [details]
Erroe Message Log

Netbeans does not start on Vista after a successful install.  It fails during turning on modules.  All netbeans processes seem to be killed.  Please see log attachments.
Comment 1 Jaroslav Tulach 2012-10-29 07:58:09 UTC
There is a 
WARNING [org.openide.modules.Places]: could not create C:\Program Files\NetBeans 7.2.1\netigso
in the log. That signals the cache directory is incorrect:
C:\Program Files\NetBeans 7.2.1
as cache directory is provided by launcher, passing in there...
Comment 2 Libor Fischmeistr 2012-10-29 09:26:23 UTC
Could you please attach here your netbeans.conf? You can find it in <NetBeans installation folder>\etc\

Also the launcher log would be helpful for us - just run netbeans with --trace switch:

netbeans.exe --trace <your home folder>/trace.log

Thanks
Comment 3 351fastback 2012-10-30 01:55:28 UTC
Created attachment 126760 [details]
netbeans.conf

I cannot seem to generate a trace.log file.  It doesn't show up anywhere.
 
Please find attached .conf
Comment 4 Libor Fischmeistr 2012-10-30 08:10:05 UTC
Maybe you tried to store the log to some folder you don't have permission to write. The best practice is to write the log into Documents in user home directory.
Comment 5 Jiri Rechtacek 2012-10-30 13:36:23 UTC
(In reply to comment #4)
> Maybe you tried to store the log to some folder you don't have permission to
> write. The best practice is to write the log into Documents in user home
> directory.

Well, we really need the output of netbeans.org --trace <your home folder>/trace.log to complete our investigation of possible root of problem. Thank in advance
Comment 6 351fastback 2012-10-30 14:34:27 UTC
There is no log file.  I tried using different paths; C:\ and C:\users\<username>\.  This did not help.  Does it not like the use of a space in the path;  ex. c:\Program Files\Netbeans 7.2.1\ ?  I cannot use the uninstaller either as it reports that an instance is locked and needs to be closed.

I manually uninstalled, and then reinstalled to the dir C:\Netbeans\.  The first run made it a little further and showed a dialog box titled "Netbeans IDE Warning".  I copied the contents and pasted to a word document.  PLEASE FIND IT ATTACHED.  

There is something about installing on Microsoft Windows Vista Home Premium SP2 that is a problem.  The same install file works on XP SP3.
Comment 7 351fastback 2012-10-30 14:36:07 UTC
Created attachment 126779 [details]
I manually uninstalled, and then reinstalled to the dir C:\Netbeans\.  The first run made it a little further and showed a dialog box titled "Netbeans IDE Warning".  I copied the contents and pasted t

I manually uninstalled, and then reinstalled to the dir C:\Netbeans\.  The first run made it a little further and showed a dialog box titled "Netbeans IDE Warning".  I copied the contents and pasted to a word document.  PLEASE FIND IT ATTACHED.
Comment 8 Libor Fischmeistr 2012-10-30 15:13:25 UTC
(In reply to comment #6)
> There is no log file.  I tried using different paths; C:\ and
> C:\users\<username>\.  This did not help.  Does it not like the use of a space
> in the path;  ex. c:\Program Files\Netbeans 7.2.1\ ?  I cannot use the
> uninstaller either as it reports that an instance is locked and needs to be
> closed.

It's important to pass path to the launcher in double quotes when you have a space in it.

Ex: C:\Program Files\Netbeans 7.2.1\bin>netbeans.exe --trace "C:\Users\Bart Simpson\Documents\trace.log"

You can use workaround:

run netbeans with switch --cachedir

Ex: C:\Program Files\Netbeans 7.2.1\bin>netbeans.exe --cachedir "C:\Users\<username>\NetBeansCache"
Comment 9 351fastback 2012-10-30 16:01:13 UTC
Created attachment 126789 [details]
trace.log

Finally acheived the log file using C:\Program Files\Netbeans 7.2.1\bin\netbeans.exe --trace C:\users\351fastback\trace.log

Please find attached trace.log
Comment 10 Jiri Rechtacek 2012-10-30 19:39:57 UTC
(In reply to comment #9)
> Created attachment 126789 [details]
> trace.log

Thanks a lot. The suspicious place is:
===========
getStringFromRegistry()
	keyName: Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
	valueName: Local AppData
RegQueryValueEx() failed. Cannot create a file when that file already exists. (183)
Cache dir:
Option found: netbeans_default_options=-J-client -J-Xss2m etc.
===========
It's leading to running IDE with non-existing/non-writable cachedir which causes serious problems. We'll make sure the launcher NetBeans 7.3 will use some reasonable fallback for such unexpected values.
Comment 11 351fastback 2012-10-30 19:48:41 UTC
is there any fix possible in 7.2.1 for me?
Comment 12 Jiri Rechtacek 2012-10-30 21:32:36 UTC
(In reply to comment #11)
> is there any fix possible in 7.2.1 for me?

Yes. I guess, one of possible workarounds you can replace in the netbeans.conf:
The sentence 
netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.2.1"
replace with
netbeans_default_cachedir="${DEFAULT_USERDIR_ROOT}/7.2.1/var/cache"

Let me know it works for you. Thanks
Comment 13 351fastback 2012-10-31 04:16:46 UTC
Did not work.  The splash screen doesn't even come up.

When will 7.3 be out and how will I know?
Comment 14 Libor Fischmeistr 2012-10-31 09:39:15 UTC
Possible workaround - in netbeans.conf edit the property "netbeans_default_options" - add the option:
--cachedir C:\users\351fastback\AppData\Local\NetBeans\7.2.1

So the the property should look like this:

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true --cachedir C:\users\351fastback\AppData\Local\NetBeans\7.2.1"


And comment netbeans_default_cachedir:

#netbeans_default_cachedir="${DEFAULT_CACHEDIR_ROOT}/7.2.1"


This bug shouldn't appear since NB 7.3 Beta 2, where is a little bit different way how to get ShellFolders...

The second fix in http://hg.netbeans.org/core-main/rev/79104fb0c996
Comment 15 351fastback 2012-10-31 18:03:33 UTC
7.3 beta does not work either.
Comment 16 Jiri Rechtacek 2012-10-31 18:19:31 UTC
(In reply to comment #15)
> 7.3 beta does not work either.

lfischmeistr wrote about NB 7.3 Beta 2 which hasn't been released yet, stay tuned.
Comment 17 Quality Engineering 2012-11-01 02:40:54 UTC
Integrated into 'main-golden', will be available in build *201211010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/79104fb0c996
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #220959: netbeans not running on vista