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 89702 - Webpack css editor throws exception under Java 6 RC with Gtk look and feel
Summary: Webpack css editor throws exception under Java 6 RC with Gtk look and feel
Status: RESOLVED DUPLICATE of bug 103240
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
: 89703 89704 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-20 21:13 UTC by frankyfoobar
Modified: 2008-04-28 13:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description frankyfoobar 2006-11-20 21:13:17 UTC
Hello,
according to ramons blog entry under 
http://jroller.com/page/ramlog?entry=netbeans_and_linux_screenshot_of
I installed jdk6 rc and run netbeans with the Gtk look and feel. When I try to 
open an css file the edit window doesn't show the file, only a blank edit 
window. I have installed the visual web pack. Disabling the css edit module 
from the visual web pack solves the problem. With enabled css editor from the 
webpack it produces following Null pointer exception message in the log:

java.lang.NullPointerException
        at 
com.sun.rave.css.stylebuilder.ColorSelectionField.addPropertyChangeListener(ColorSelectionField.java:128)
        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:652)
        at javax.swing.JPanel.setUI(JPanel.java:131)
        at javax.swing.JPanel.updateUI(JPanel.java:104)
        at javax.swing.JPanel.<init>(JPanel.java:64)
        at javax.swing.JPanel.<init>(JPanel.java:87)
        at javax.swing.JPanel.<init>(JPanel.java:95)
        at 
com.sun.rave.css.stylebuilder.ColorSelectionField.<init>(ColorSelectionField.java:44)
        at 
com.sun.rave.css.stylebuilder.FontStyleEditor.<init>(FontStyleEditor.java:40)
        at 
com.sun.rave.css.stylebuilder.StyleBuilderPanel.initialize(StyleBuilderPanel.java:51)
        at 
com.sun.rave.css.stylebuilder.StyleBuilderPanel.<init>(StyleBuilderPanel.java:45)
        at 
com.sun.rave.css.editor.CssCustomEditor.<init>(CssCustomEditor.java:58)
        at 
com.sun.rave.css.editor.CssEditorKit$1.createEditor(CssEditorKit.java:77)
        at 
org.openide.text.CloneableEditor.initialize(CloneableEditor.java:221)
        at 
org.openide.text.CloneableEditor.componentShowing(CloneableEditor.java:166)
        at 
com.sun.rave.css.editor.CssCloneableEditor.componentShowing(CssCloneableEditor.java:54)
[catch] at 
org.openide.windows.WindowManager.componentShowing(WindowManager.java:313)
        at 
org.netbeans.core.windows.WindowManagerImpl.componentShowing(WindowManagerImpl.java:950)
        at 
org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:150)
        at 
org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:244)
        at 
org.netbeans.core.windows.ViewRequestor.processRequest(ViewRequestor.java:220)
        at 
org.netbeans.core.windows.ViewRequestor.postRequest(ViewRequestor.java:158)
        at 
org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:97)
        at 
org.netbeans.core.windows.Central.addModeOpenedTopComponent(Central.java:584)
        at 
org.netbeans.core.windows.ModeImpl.addOpenedTopComponent(ModeImpl.java:255)
        at 
org.netbeans.core.windows.WindowManagerImpl.topComponentOpen(WindowManagerImpl.java:998)
        at org.openide.windows.TopComponent.open(TopComponent.java:338)
        at org.openide.text.CloneableEditor.open(CloneableEditor.java:323)
        at org.openide.windows.TopComponent.open(TopComponent.java:330)
        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:1158)
        at org.openide.util.Mutex.writeAccess(Mutex.java:375)
        at 
org.openide.windows.CloneableOpenSupport.open(CloneableOpenSupport.java:73)
        at 
org.openide.text.CloneableEditorSupport.open(CloneableEditorSupport.java:396)
        at org.openide.actions.OpenAction.performAction(OpenAction.java:59)
        at 
org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:537)
        at 
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:53)
        at 
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:533)
        at 
org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1389)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
        at 
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
        at java.awt.Component.processMouseEvent(Component.java:5491)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
        at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1774)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Winston Prakash 2006-11-21 01:51:39 UTC
*** Issue 89703 has been marked as a duplicate of this issue. ***
Comment 2 Winston Prakash 2006-11-21 01:57:23 UTC
Accepted. Happens only with GTK look and feel. This looks like a problem with
the overloaded property change listener (not intended that way) in the
com.sun.rave.css.stylebuilder.ColorSelectionField

Actually the look feel tries to add property change listener to the container
(JPanel), but end up adding to 
com.sun.rave.css.stylebuilder.ColorSelectionField which is not fully
initialized, thus causing NPE.

Comment 3 Winston Prakash 2007-06-23 00:13:37 UTC
*** Issue 89704 has been marked as a duplicate of this issue. ***
Comment 4 Marek Fukala 2007-10-10 10:18:45 UTC
Is it still happening on 6.0???
Comment 5 Marek Fukala 2007-10-12 18:32:03 UTC
already fixed in 6.0

*** This issue has been marked as a duplicate of 103240 ***