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 91132 - Add Managed Bean under GTK LookAndField produces an exception.
Summary: Add Managed Bean under GTK LookAndField produces an exception.
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords: GTK
Depends on:
Blocks:
 
Reported: 2006-12-15 15:42 UTC by babysnakes
Modified: 2008-07-11 17:29 UTC (History)
1 user (show)

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 babysnakes 2006-12-15 15:42:41 UTC
Hi

I have netbeans 5.5 working on linux with java 6 and GTK LookAndFeel. when
editing faces-config.xml and trying to add managed bean wizard (right-click =>
JavaServer Faces => Add Managed Bean..) and get the folowing exception:

java.lang.NullPointerException
	at
org.netbeans.modules.web.jsf.dialogs.AddManagedBeanDialog.getName(AddManagedBeanDialog.java:234)
	at com.sun.java.swing.plaf.gtk.GTKStyle.getInsets(GTKStyle.java:263)
	at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:876)
	at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:252)
	at javax.swing.plaf.synth.SynthPanelUI.updateStyle(SynthPanelUI.java:70)
	at javax.swing.plaf.synth.SynthPanelUI.installDefaults(SynthPanelUI.java:57)
	at javax.swing.plaf.basic.BasicPanelUI.installUI(BasicPanelUI.java:39)
	at javax.swing.plaf.synth.SynthPanelUI.installUI(SynthPanelUI.java:37)
	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.web.jsf.dialogs.AddManagedBeanDialog.<init>(AddManagedBeanDialog.java:39)
	at
org.netbeans.modules.web.jsf.editor.JSFPopupAction$AddManagedBeanAction.actionPerformed(JSFPopupAction.java:107)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:256)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
	at java.awt.Component.processMouseEvent(Component.java:6038)
	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:3986)
	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)

Thanks in advance
--
Haim
Comment 1 _ rkubacki 2006-12-16 18:00:09 UTC
What JDK/OS/theme do you have? There are many variants and many fixes available
in latest versions only. Marek can know details.
Comment 2 babysnakes 2006-12-16 22:43:18 UTC
The JDK is the new 6 release (final), the linux is Ubuntu Dapper, and the theme
is com.sun.java.swing.plaf.gtk.GTKLookAndFeel.

Comment 3 mslama 2006-12-18 09:37:59 UTC
It is not JDK problem. GTK L&F code can call something differently from other
L&Fs when component UI is set ie. from component constructor. NB code must
handle it correctly.
Comment 4 Petr Pisl 2007-01-11 13:03:22 UTC
It should be fixed in NetBeans 6
Comment 6 josin 2008-07-11 17:29:39 UTC
Works fine, changing status to verified.

Product Version: NetBeans IDE Dev (Build 200807101204)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb)
Userdir: /home/josin/.netbeans/dev