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.
When I try to open a css-file I get the following error: java.lang.NullPointerException at org.netbeans.modules.css.visual.ui.ColorSelectionField.addPropertyChangeListener(ColorSelectionField.java:138) at javax.swing.plaf.synth.SynthPanelUI.installListeners(SynthPanelUI.java:49) at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:38) at javax.swing.JComponent.setUI(JComponent.java:668) at javax.swing.JPanel.setUI(JPanel.java:136) at javax.swing.JPanel.updateUI(JPanel.java:109) at javax.swing.JPanel.<init>(JPanel.java:69) at javax.swing.JPanel.<init>(JPanel.java:92) at javax.swing.JPanel.<init>(JPanel.java:100) at org.netbeans.modules.css.visual.ui.ColorSelectionField.<init>(ColorSelectionField.java:56) at org.netbeans.modules.css.visual.ui.FontStyleEditor.<init>(FontStyleEditor.java:54) at org.netbeans.modules.css.visual.ui.StyleBuilderPanel.initialize(StyleBuilderPanel.java:63) at org.netbeans.modules.css.visual.ui.StyleBuilderPanel.<init>(StyleBuilderPanel.java:57) at org.netbeans.modules.css.editor.CssCustomEditor.<init>(CssCustomEditor.java:61) at org.netbeans.modules.css.editor.CssEditorKit$1.createEditor(CssEditorKit.java:56) at org.openide.text.CloneableEditor.initialize(CloneableEditor.java:204) at org.openide.text.CloneableEditor.getEditorPane(CloneableEditor.java:630) at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:888) at org.netbeans.modules.css.editor.CssEditorSupport.propertyChange(CssEditorSupport.java:150) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276) at org.openide.text.CloneableEditorSupport.firePropertyChange(CloneableEditorSupport.java:450) at org.openide.text.CloneableEditor.componentOpened(CloneableEditor.java:269) at org.netbeans.modules.css.editor.CssCloneableEditor.componentOpened(CssCloneableEditor.java:65) at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:280) Caused: java.lang.IllegalStateException: [Winsys] TopComponent org.netbeans.modules.css.editor.CssCloneableEditor[style.css,0,0,847x855,invalid,hidden,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=256,maximumSize=,minimumSize=,preferredSize=] throws runtime exception from its componentOpened() method. Repair it! at org.openide.windows.WindowManager.componentOpenNotify(WindowManager.java:282) at org.netbeans.core.windows.WindowManagerImpl.notifyTopComponentOpened(WindowManagerImpl.java:955) at org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:719) at org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:273) at org.netbeans.core.windows.WindowManagerImpl.topComponentOpenAtTabPosition(WindowManagerImpl.java:1060) at org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:1028) at org.openide.windows.TopComponent.open(TopComponent.java:354) at org.openide.text.CloneableEditor.open(CloneableEditor.java:305) at org.openide.windows.TopComponent.open(TopComponent.java:345) at org.openide.windows.CloneableOpenSupport.openCloneableTopComponent(CloneableOpenSupport.java:177) at org.openide.windows.CloneableOpenSupport$1.run(CloneableOpenSupport.java:76) at org.openide.util.Mutex.doEvent(Mutex.java:1181) at org.openide.util.Mutex.writeAccess(Mutex.java:376) at org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:73) at org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:403) at org.openide.actions.OpenAction.performAction(OpenAction.java:59) at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:559) at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:55) at org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:555) at org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1396) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252) at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:252) at java.awt.Component.processMouseEvent(Component.java:6041) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
I normally use it with sun jdk, but I just tested it with jrockit and it worked fine! So it seams to be a problem of the jdk? With jrockit NB uses Metal L&F, with sun jdk it uses what ever. So it's a problem of L&F?
So I just tried the --ui javax.swing.plaf.metal.MetalLookAndFeel switch with sun jdk 6 and NB worked fine! So it's a problem of the GTK L&F!
*** Issue 106017 has been marked as a duplicate of this issue. ***
Comes from web/css module.
already fixed in M10 *** This issue has been marked as a duplicate of 103240 ***