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.
Created attachment 138812 [details] State of the options dialog after step 5 Reproduction steps: 1. Start IDE 2. Open any Java SE maven project 3. Develop a desire to change your editor formatting settings 4. Navigate to Tools | Options | Editor 5. Click the Formatting tab Both the Languages and Category combo boxes contain only the elements "Item 1", "Item 2", "Item 3", "Item 4". Trying to select them just causes the dropdown menu to close after a couple clicks. I've attached a screenshot of what this looks like. If we continue, things continue to behave strangely: 6. Click the "Hints" tab. It is completely empty, save for the word "Hints" on the left side of the tab's contents. Same thing for the "Highlighting" tab. 7. Click OK to close. 8. Navigate back to Tools | Options | Editor -> Formatting tab 8a. You won't be able to- clicking Tools | Options no longer brings up the options dialog. Not one to give up in the face of bugs, I tried further weird things: 9. Close and restart IDE. 10. Open Tools | Options | Editor -> Formatting tab. It's still bugged. 11. Instead of hitting OK here, switch to the "Java" section (next to "Keymap") 12. Click OK. 13. Open Tools | Options | Editor -> Formatting tab. Nothing happens when you click Editor, though it appears to become selected. Click back to the Java section, then back to Editor. This time it shows the Editor tabs. 14. Click the Formatting tab. Now the language combobox is empty, instead of holding the generic "Item N" values. "Category" still has the same values as after step 5. I'm using Arch Linux's netbeans package out of the default community repo (community/netbeans 7.3.1-3). Neither deleting ~/.netbeans nor deleting ~/.cache/netbeans fixes this. I tried using a nightly build of netbeans from the Arch User Repository, and did NOT experience this issue there. I can reproduce my bug on both my laptop and desktop (both are Arch using the netbeans package I mentioned above). Is there anything I can do to work around this bug in the meantime, or should I just use nightly builds until it's fixed in the default package?
I tested your steps with netbeans 7.3.1 downloaded from netbeans.org. I created maven SE project, however editor options still works for me. I tried empty userdir and cache since I expected problem with activating modules. I don't have same environment, I use ubuntu and sun jdk. You can send me your log file, maybe there is some hint where is the problem. If there is no problem in night build, you can try 7.4 beta. Netbeans 7.4 should be released in couple of weeks. It is first report about this issue, I don't know how can this happens. I don't know if netbeans package is modified from original netbeans installer.
Created attachment 140194 [details] Log file with NullPointerException
Reproduced on environment Product Version: NetBeans IDE 7.3.1 (Build 201306052037) Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b56 Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b43 System: Linux version 3.10.11-200.fc19.x86_64 running on amd64; UTF-8; en_US (nb) After downgrading Java 1.7.0_40 to Java 1.7.0_25 formatting dialog works fine. After reinstalling 1.7.0_40 the bug is here again. Attached log file.
Hello, I had exactly the same issue on netbeans 7.3/7.3.1 which I've flagged as a bug, issue didn't exist on 7.2.1. As I needed to use Java EE 7, I switched to 7.4 beta which is working fine and doesn't exhibit the same issue. Not a fix I know but a means to an end.
*** Bug 236322 has been marked as a duplicate of this bug. ***
Can reproduce on NetBeans 7.3.1 with JDK 1.7.0_40. Cannot reproduce on NetBeans 7.3.1 with JDK 1.7.0_25.
Can also reproduce this on: Product Version = NetBeans IDE 7.3.1 (Build 201306052037) (#f255eab72f59) Operating System = Linux version 3.11.4-1-ARCH running on i386 Java; VM; Vendor = 1.7.0_40; Java HotSpot(TM) Client VM 24.0-b56; Oracle Corporation Steps to reproduce: a) Install NetBeans from Arch repository b) Start NetBeans and create a new Java Project: New Project > Java > Java Application c) Open Options: Tools > Options and hit the Editor category d) Pressing the Formatting tab leads to a NPE
Created attachment 141032 [details] Log file with NPE
I've had the same problem on Windows and upgrading the JDK to 1.7.0_45 seems to resolve the issue