JDK-6711145 : Nimbus L&F: Missing UIDefaults causing NPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-06-05
  • Updated: 2011-02-16
  • Resolved: 2008-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b26Fixed
Related Reports
Relates :  
Description
Getting a new NPE, after the fix 6691718.

To reproduce, use the steps from the related CR 6691718.

Here is the console dump,

PluginMain: processing StartAppletMessage
PluginMain: starting applet ID 1 in parent window 0x80168 with parameters:
    Document base = http://public.fotki.com/rogyeu/toronto/?cmd=uploadapplet3&w=1152&h=921
    staging=false
    folderid=4294967294
    uploadhost=##api_upload_hostname##
    width=901
    hostname=public.fotki.com
    code=com/fotki/applet/FotkiUploader4.class
    type=application/x-java-applet;version=1.5
    sessionid=PVVLYQUL3M3IOT8D30G2ALBVL2I0O2MJ
    java_version=1.6.0_10
    height=500
    scriptable=false
    serverpath=/rogyeu/toronto/
    nextpage=http://public.fotki.com/rogyeu/toronto/
    archive=http://images.fotki.com/java/FotkiUploader3012.jar
    albumid=4290756613
    codebase=http://images.fotki.com/java
Applet2ClassLoaderCache created new entry for http://images.fotki.com/java/,http://images.fotki.com/java/FotkiUploader3012.jar
Applet2Manager executing createAll() for entry http://images.fotki.com/java/,http://images.fotki.com/java/FotkiUploader3012.jar
Applet2Manager.getClassLoaderCacheEntry() for applet ID 1: ClassLoader=sun.plugin2.applet.Applet2ClassLoader@~0x64883c, ThreadGroup=sun.plugin2.applet.Applet2ThreadGroup@~0x145c859, AppContext=sun.awt.AppContext@~0x2c1e6b
java.lang.Exception: PluginMain.registerApplet: 1 -> sun.plugin2.applet.Applet2Manager@811c88, previous manager: null
	at sun.plugin2.main.client.PluginMain.registerApplet(Unknown Source)
	at sun.plugin2.main.client.PluginMain.handleMessageStartApplet(Unknown Source)
	at sun.plugin2.main.client.PluginMain.mainLoop(Unknown Source)
	at sun.plugin2.main.client.PluginMain.run(Unknown Source)
	at sun.plugin2.main.client.PluginMain.main(Unknown Source)
PluginMain: processing HeartbeatMessage
PluginMain: setting size of applet 1 to (901, 500)
Made EmbeddedFrame for applet 1 visible
JVM heartbeat.suspend-counter incr: 1, ts: 90519272862
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Admin----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Applet2ClassLoader: Policy.getPolicy() took 0 ms
modalityPushed for applet ID 1 with dialog javax.swing.JDialog[dialog0,1469,208,516x328,layout=java.awt.BorderLayout,TOOLKIT_MODAL,title=Warning - Security,defaultCloseOperation=HIDE_ON_CLOSE,rootPane=javax.swing.JRootPane[,3,29,510x296,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@1e5cf0,flags=16777609,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
modalityPopped for applet ID 1
FotkiUploader v3.0.11 Wed Jun 04 17:22:03 PDT 2008
OS Windows XP
Java 1.6.0_05 en
PluginMain.StartAppletListener: appletLoaded (1)
PluginMain: processing SynthesizeWindowActivationMessage
PluginMain: processing SynthesizeWindowActivationMessage
PluginMain: processing SynthesizeWindowActivationMessage
Calling synthesizeWindowActivation(true) for applet 1
  Called PluginEmbeddedFrame.requestFocus()
Calling synthesizeWindowActivation(true) for applet 1
  Called PluginEmbeddedFrame.requestFocus()
Calling synthesizeWindowActivation(true) for applet 1
  Called PluginEmbeddedFrame.requestFocus()
JVM heartbeat .. suspended, ts: 90527526015
PluginMain: processing HeartbeatMessage
Not release version
NetworkSettings.getFolder(): root
Connecting to: http://api.fotki.com/get_account_info?session_id=PVVLYQUL3M3IOT8D30G2ALBVL2I0O2MJ
Exception in thread "AWT-EventQueue-2" java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(BasicTabbedPaneUI.java:2124)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(BasicTabbedPaneUI.java:1783)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(BasicTabbedPaneUI.java:2264)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(BasicTabbedPaneUI.java:2253)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.preferredLayoutSize(BasicSplitPaneUI.java:1471)
	at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferredSize(BasicSplitPaneUI.java:1067)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
	at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1092)
	at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:893)
	at java.awt.GridBagLayout.preferredLayoutSize(GridBagLayout.java:713)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(BasicSplitPaneUI.java:1615)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(BasicSplitPaneUI.java:1848)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(BasicSplitPaneUI.java:1885)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(BasicSplitPaneUI.java:1314)
	at java.awt.Container.layout(Container.java:1398)
	at java.awt.Container.doLayout(Container.java:1387)
	at java.awt.Container.validateTree(Container.java:1485)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validate(Container.java:1457)
	at sun.plugin.util.GrayBoxPainter$2.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.reflect.InvocationTargetException
	at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(BasicTabbedPaneUI.java:2124)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(BasicTabbedPaneUI.java:1783)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(BasicTabbedPaneUI.java:2264)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(BasicTabbedPaneUI.java:2253)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.preferredLayoutSize(BasicSplitPaneUI.java:1471)
	at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferredSize(BasicSplitPaneUI.java:1067)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
	at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1092)
	at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:893)
	at java.awt.GridBagLayout.preferredLayoutSize(GridBagLayout.java:713)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(BasicSplitPaneUI.java:1615)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(BasicSplitPaneUI.java:1848)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(BasicSplitPaneUI.java:1885)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(BasicSplitPaneUI.java:1314)
	at java.awt.Container.layout(Container.java:1398)
	at java.awt.Container.doLayout(Container.java:1387)
	at java.awt.Container.validateTree(Container.java:1485)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validate(Container.java:1457)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable$3.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception: java.lang.reflect.InvocationTargetException
PluginMain.StartAppletListener: appletReady (1)
JVM heartbeat.suspend-counter decr: 0, ts: 90532485274
JVM heartbeat .. resumed, ts: 90532486838
java.lang.reflect.InvocationTargetException
	at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.runOnEDT(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
	at javax.swing.plaf.basic.BasicTabbedPaneUI.rotateInsets(BasicTabbedPaneUI.java:2124)
	at javax.swing.plaf.basic.BasicTabbedPaneUI.getTabAreaInsets(BasicTabbedPaneUI.java:1783)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSize(BasicTabbedPaneUI.java:2264)
	at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.preferredLayoutSize(BasicTabbedPaneUI.java:2253)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.preferredLayoutSize(BasicSplitPaneUI.java:1471)
	at javax.swing.plaf.basic.BasicSplitPaneUI.getPreferredSize(BasicSplitPaneUI.java:1067)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1632)
	at java.awt.GridBagLayout.GetLayoutInfo(GridBagLayout.java:1092)
	at java.awt.GridBagLayout.getLayoutInfo(GridBagLayout.java:893)
	at java.awt.GridBagLayout.preferredLayoutSize(GridBagLayout.java:713)
	at java.awt.Container.preferredSize(Container.java:1581)
	at java.awt.Container.getPreferredSize(Container.java:1566)
	at javax.swing.JComponent.getPreferredSize(JComponent.java:1634)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizeOfComponent(BasicSplitPaneUI.java:1615)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.getPreferredSizes(BasicSplitPaneUI.java:1848)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.resetToPreferredSizes(BasicSplitPaneUI.java:1885)
	at javax.swing.plaf.basic.BasicSplitPaneUI$BasicHorizontalLayoutManager.layoutContainer(BasicSplitPaneUI.java:1314)
	at java.awt.Container.layout(Container.java:1398)
	at java.awt.Container.doLayout(Container.java:1387)
	at java.awt.Container.validateTree(Container.java:1485)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validateTree(Container.java:1491)
	at java.awt.Container.validate(Container.java:1457)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable$5.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception: java.lang.reflect.InvocationTargetException
Using proxy: , :
Opening last folder
builder null
PluginMain: processing SynthesizeWindowActivationMessage
Calling synthesizeWindowActivation(false) for applet 1
PluginMain: processing HeartbeatMessage
PluginMain: processing HeartbeatMessage

Comments
EVALUATION Another UIDefaults key needed by BasicUI UIDelegates that I missed.
05-06-2008