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.
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)
Is this a regression ?
Yes it is a regression.
I am able to reproduce this in the shortfin trunk. Nasty. I'm investigating.
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.
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.
verified using 04270000
*** Issue 103533 has been marked as a duplicate of this issue. ***