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 96990 - com.sun.webui.theme.ThemeConfigurationException right clicking component
Summary: com.sun.webui.theme.ThemeConfigurationException right clicking component
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Gregory Murphy
URL:
Keywords:
: 103533 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-01 19:50 UTC by Lark Fitzgerald
Modified: 2007-06-18 23:06 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 Lark Fitzgerald 2007-03-01 19:50:30 UTC
5.5.1 build 0228_10
EE5 project

1. drag basic > hiddenfield onto designer
2. right click

Exception dialog appears with: com.sun.webui.theme.ThemeConfigurationException 


java.lang.ExceptionInInitializerError
	at com.sun.webui.jsf.design.AbstractDesignInfo.getContextItems
(AbstractDesignInfo.java:380)
	at com.sun.rave.insync.action.DesignBeanContextAction.getDisplayActions
(DesignBeanContextAction.java:40)
	at com.sun.rave.insync.action.AbstractDisplayActionAction.isEnabled
(AbstractDisplayActionAction.java:83)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction$DelegateA
ction.resultChanged(AbstractDesignBeanAction.java:201)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction$DelegateA
ction.<init>(AbstractDesignBeanAction.java:148)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction.createCon
textAwareInstance(AbstractDesignBeanAction.java:71)
	at org.openide.util.Utilities.actionsToPopup(Utilities.java:2609)
	at org.openide.util.Utilities.actionsToPopup(Utilities.java:2696)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:875)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup
(TreeView.java:1323)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup
(MouseUtils.java:158)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased
(MouseUtils.java:153)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	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:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1778)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] 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)
Caused by: com.sun.webui.theme.ThemeConfigurationException: WARNING: the Sun 
Web Components could not load any themes.
	at com.sun.webui.theme.JarThemeFactory.createThemeManager
(JarThemeFactory.java:411)
	at com.sun.webui.theme.JarThemeFactory.getTheme
(JarThemeFactory.java:375)
	at com.sun.webui.jsf.util.ThemeUtilities.getTheme
(ThemeUtilities.java:112)
	at com.sun.webui.jsf.util.JavaScriptUtilities.getTheme
(JavaScriptUtilities.java:300)
	at com.sun.webui.jsf.util.JavaScriptUtilities.getModuleName
(JavaScriptUtilities.java:251)
	at 
com.sun.webui.jsf.component.customizers.AutoSubmitOnChangeAction.<clinit>
(AutoSubmitOnChangeAction.java:53)
	... 34 more
==>
com.sun.webui.theme.ThemeConfigurationException: WARNING: the Sun Web 
Components could not load any themes.
	at com.sun.webui.theme.JarThemeFactory.createThemeManager
(JarThemeFactory.java:411)
	at com.sun.webui.theme.JarThemeFactory.getTheme
(JarThemeFactory.java:375)
	at com.sun.webui.jsf.util.ThemeUtilities.getTheme
(ThemeUtilities.java:112)
	at com.sun.webui.jsf.util.JavaScriptUtilities.getTheme
(JavaScriptUtilities.java:300)
	at com.sun.webui.jsf.util.JavaScriptUtilities.getModuleName
(JavaScriptUtilities.java:251)
	at 
com.sun.webui.jsf.component.customizers.AutoSubmitOnChangeAction.<clinit>
(AutoSubmitOnChangeAction.java:53)
	at com.sun.webui.jsf.design.AbstractDesignInfo.getContextItems
(AbstractDesignInfo.java:380)
	at com.sun.rave.insync.action.DesignBeanContextAction.getDisplayActions
(DesignBeanContextAction.java:40)
	at com.sun.rave.insync.action.AbstractDisplayActionAction.isEnabled
(AbstractDisplayActionAction.java:83)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction$DelegateA
ction.resultChanged(AbstractDesignBeanAction.java:201)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction$DelegateA
ction.<init>(AbstractDesignBeanAction.java:148)
	at 
com.sun.rave.spi.designtime.idebridge.action.AbstractDesignBeanAction.createCon
textAwareInstance(AbstractDesignBeanAction.java:71)
	at org.openide.util.Utilities.actionsToPopup(Utilities.java:2609)
	at org.openide.util.Utilities.actionsToPopup(Utilities.java:2696)
	at org.openide.explorer.view.TreeView.createPopup(TreeView.java:875)
	at org.openide.explorer.view.TreeView$PopupAdapter.showPopup
(TreeView.java:1323)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.maybePopup
(MouseUtils.java:158)
	at org.openide.awt.MouseUtils$PopupMouseAdapter.mouseReleased
(MouseUtils.java:153)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:232)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:231)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	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:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1778)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] 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 Jayashri Visvanathan 2007-03-02 01:03:03 UTC
Is this a regression ?
Comment 2 Lark Fitzgerald 2007-03-02 03:15:52 UTC
Yes it is a regression.
Comment 3 Gregory Murphy 2007-03-02 22:46:43 UTC
I am able to reproduce this in the shortfin trunk. Nasty. I'm investigating.
Comment 4 Gregory Murphy 2007-03-03 00:24:16 UTC
The problem appears to be due to faulty class loading. When the
AutoSubmitOnChangeAction is initialized, the class definition is created. There
is a static variable that invokes
com.sun.webui.jsf.util.JavaScriptUtilities.getModuleName(), and the class cannot
be loaded.

It seems to work if I move the code into a getter method, so that it the static
variable is initialized lazily.

I need to understand why this is.
Comment 5 Gregory Murphy 2007-03-05 18:56:25 UTC
I have moved the code into a static getter method so that classes are
initialized lazily. This is basically a work-around.

The root problem is that, as part of initialization, an call is  made to
JavaScriptUtilities.getTheme(), which eventually pulls in a theme from the
external request map in the Rave context. But there is no guarantee that this
context will be there.
Comment 6 Lark Fitzgerald 2007-04-27 22:45:28 UTC
verified using 04270000
Comment 7 Jayashri Visvanathan 2007-06-18 23:06:56 UTC
*** Issue 103533 has been marked as a duplicate of this issue. ***