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 197963 - Can not open IDE Options
Summary: Can not open IDE Options
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Options&Settings (show other bugs)
Version: 7.0
Hardware: PC Windows 7 x64
: P2 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
: 198914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-21 18:29 UTC by velodiver
Modified: 2011-05-27 09:44 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log as requested (700.73 KB, application/octet-stream)
2011-04-28 17:48 UTC, velodiver
Details
messages.log file after clicking Options (552.35 KB, application/octet-stream)
2011-05-02 14:30 UTC, velodiver
Details
nbi install log - successful (3.17 MB, application/octet-stream)
2011-05-04 14:05 UTC, velodiver
Details
Files for debugging NB70 import of NB69 settings (204.27 KB, application/zip)
2011-05-07 17:40 UTC, velodiver
Details

Note You need to log in before you can comment on or make changes to this bug.
Description velodiver 2011-04-21 18:29:01 UTC
Select Tools > Options.  Nothing happens. 

Plugins works as expected.
Comment 1 Yulia Novozhilova 2011-04-28 11:35:50 UTC
Could you please attach .netbeans/7.0/var/log/messages.log file here. Have it ever worked on your machine (may be with NetBeans 6.9 or 7.0 rc builds)?
Comment 2 velodiver 2011-04-28 17:48:26 UTC
Created attachment 108006 [details]
messages.log as requested

Thanks for looking into this.  Options has always work on previous version. I did not try Options in 7rc 1 or 2.
Comment 3 velodiver 2011-04-28 18:28:57 UTC
Took a while for this to appear in the message file, but this looks like the culprit.

WARNING [org.netbeans.api.options.OptionsDisplayer]: Options Dialog is opened
SEVERE [org.netbeans.modules.java.source.save.ElementOverlay]: No element and no QualIdent
Comment 4 Yulia Novozhilova 2011-05-02 13:11:49 UTC
Thank you. From the output It looks like the dialog is already exist when you are trying to access it. Could you please run NetBeans with the following options[1], try to open Options dialog, close the NetBeans and attach the messages.log file here. Thanks in advance.

[1] netbeans.exe -J-Dorg.netbeans.api.options.level=100 -J-Dorg.netbeans.modules.options.level=100
Comment 5 velodiver 2011-05-02 14:30:45 UTC
Created attachment 108056 [details]
messages.log file after clicking Options

w/ flags:

netbeans_default_options="-J-client -J-Xss2m -J-Xms256m -J-Xmx988m -J-XX:PermSize=48m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled   -J-Dorg.netbeans.api.options.level=100 -J-Dorg.netbeans.modules.options.level=100"
Comment 6 Yulia Novozhilova 2011-05-03 10:57:23 UTC
Thank you for the log. I don't see anything that could cause the problem there. So I added some debugging info to dev build.
http://hg.netbeans.org/core-main/rev/b173ceef06e1

Could you please install dev build (I'll let you know as soon as it is ready) and run NetBeans Dev with the same options: -J-Dorg.netbeans.api.options.level=100 -J-Dorg.netbeans.modules.options.level=100. Thanks in advance.

Could you please also check the file 
${userdir}/Preferences/org/netbeans/modules/options/api.properties 
Look for the lines OptionsX and OptionsY and set their values to 100.
This ensures the options pane is on screen. OptionsWidth and OptionsHeight should be roughly 700 and 500 respectively. Just to exclude this possible error.
Comment 7 Yulia Novozhilova 2011-05-03 11:17:22 UTC
Marian, do you have any Windows 7 x64 machine for testing?
Comment 8 Yulia Novozhilova 2011-05-03 11:36:04 UTC
I've just checked standard NetBeans 7.0 installation on windows 7 x64, jdk 1.6.0_25 and Options Dialog works as expected there. So it looks like this problem is a rare case caused by configuration or corrupted installation. Downgrading to P2.
Comment 9 velodiver 2011-05-03 14:51:54 UTC
I uninstalled/reinstalled NB 7.0

I downloaded a new copy of the netbeans 7.0 (all)
Installed Java 6.0_25x64
Installed NB 7.0 

Yes to import settings from 6.9.
Did not install C++/Micro/PHP
Added installation of Tomcat 7.0.11.


Now start NB 7.0:

1. The Start Page does not display.  I must click Reset Windows before the Start Page appears.

2. Tomcat 7 does not appear in the list of servers.

3. Tools Options does nothing.
Comment 10 Yulia Novozhilova 2011-05-03 15:16:12 UTC
Well, that is not cool.
Do you experience the same problems with a clean userdir? (Remove netbeans userdir for 7.0 and say "No" to import settings from 6.9)
If so the problem is in settings/import and we will work on it.

About Tomcat integration, could you please attach $USERDIR/.nbi/log/*.log file for the last installation of NetBeans?
Thank you.
Comment 11 velodiver 2011-05-04 14:05:06 UTC
Created attachment 108104 [details]
nbi install log - successful

The nbi log is attached. The install worked this time.

The issues do appear to be in the import settings process.



I un-installed (including user dir) and re-installed.
Did not import settings from 6.9.

Options is available.
Tomcat 7 does appears as a server. 

Start Page appears the IDE opens.

One oddity, about the initial start:  (I did not have a project open) In the Options panel, the Miscellaneous section had only about 4 sub tabs. And, there was not a main Editor main tab - or at least there were no sub tabs where you could set the code formatting options. 

Once I opened a Java project, all tabs and sub-tabs in Options appeared.

Let me know if you need additional logs.

Thanks, Dave


======


One final issue that is a separate bug (I will file bug on this):  The IDE is locking files. I build, deploy, start/stop the weblogic server/app from ant target in a separate command window.  With NB 7.0, these actions fail about 50% of the time wit an (Access is denied ) For instance:


BUILD FAILED
C:\IQN\1042.0\frontoffice\build.xml:2275: Failed to copy C:\IQN\1042.0\frontoffice\src\java\com\iqnavigator\integration\user\user-message-bus.xml to C:\IQN\
1042.0\frontoffice\package\FO-Shared\APP-INF\classes\com\iqnavigator\integration\user\user-message-bus.xml due to java.io.FileNotFoundException C:\IQN\1042.
0\frontoffice\package\FO-Shared\APP-INF\classes\com\iqnavigator\integration\user\user-message-bus.xml (Access is denied)
Comment 12 Yulia Novozhilova 2011-05-06 12:01:55 UTC
Could you please zip your .netbeans/6.9/config folder + .netbeans/6.9/build.properties file + $(NetBeans installation dir)/etc/netbeans.import file. And attach the zip here. Without this info It is not easy to understand what exactly went wrong.
Thanks in advance.
Comment 13 velodiver 2011-05-07 17:40:44 UTC
Created attachment 108162 [details]
Files for debugging NB70 import of NB69 settings


Yulia,
Let me know if you need anything else.
Thanks, Dave
Comment 14 Yulia Novozhilova 2011-05-19 10:16:45 UTC
Dave, thank you for the files, I managed to reproduce your problem. As I expected, you have strange configuration for 6.9, so after import it doesn't work as expected. To fix "Options" window, you can correct ${userdir}/Preferences/org/netbeans/modules/options/api.properties file. Look for the lines OptionsX and OptionsY and set their values to 100. This ensures the options pane is on screen. OptionsWidth and OptionsHeight should be roughly 700 and 500 respectively. 
But it is better to start with clean user dir and then import all needed settings manually via Tools -> Options -> Import.

Closing the bug as invalid since Import functionality works well.
Comment 15 Marian Mirilovic 2011-05-27 09:44:44 UTC
*** Bug 198914 has been marked as a duplicate of this bug. ***