-
Bug
-
Resolution: Fixed
-
P3
-
6u5
-
b10
-
x86
-
windows_xp, windows_vista
-
Verified
java.lang.NullPointerException arised when trying to display unsigned applet through browser & the exception arised due to nimbus being sun.swing. The bug can be reproduced both in IE(7) aswell as in mozilla 2.0.07.
I set -Dswing.defaultlaf=sun.swing.plaf.nimbus.NimbusLookAndFeel in java option in java control pane & tried display swingset2.
Step to reproduced:
----------------------
1) Install 6u5_04 or any nimbus supported jdk & jre promotoed build.
2) Set the jre option in java control panel (-Dswing.defaultlaf=sun.swing.plaf.nimbus.NimbusLookAndFeel) & java console.
3) Try launching SwingSet2.html , you will see exception on java console.
Exception
---------
Exception in thread "Thread-5" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-SwingSet2Applet" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-4" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.access$200(Unknown Source)
at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I set -Dswing.defaultlaf=sun.swing.plaf.nimbus.NimbusLookAndFeel in java option in java control pane & tried display swingset2.
Step to reproduced:
----------------------
1) Install 6u5_04 or any nimbus supported jdk & jre promotoed build.
2) Set the jre option in java control panel (-Dswing.defaultlaf=sun.swing.plaf.nimbus.NimbusLookAndFeel) & java console.
3) Try launching SwingSet2.html , you will see exception on java console.
Exception
---------
Exception in thread "Thread-5" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.getGrayBoxPanel(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "thread applet-SwingSet2Applet" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletStatus(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-4" java.lang.NullPointerException
at javax.swing.MultiUIDefaults.getUIError(Unknown Source)
at javax.swing.UIDefaults.getUI(Unknown Source)
at javax.swing.UIManager.getUI(Unknown Source)
at javax.swing.JPanel.updateUI(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at javax.swing.JPanel.<init>(Unknown Source)
at sun.plugin.util.ErrorPanel.<init>(Unknown Source)
at sun.plugin.util.GrayBoxPanel.setError(Unknown Source)
at sun.plugin.util.GrayBoxPainter.paintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.repaintGrayBox(Unknown Source)
at sun.plugin.util.GrayBoxPainter.access$200(Unknown Source)
at sun.plugin.util.GrayBoxPainter$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
- duplicates
-
JDK-6618285 Compiler does not recognize NimbusLookAndFeel() class
- Closed