JDK-6612359 : Nimbus L&F: NetBeans 6.0 Beta 1 causes exceptions with 1.6.0_05-ea-b04
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u5
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_xp
  • CPU: x86
  • Submitted: 2007-10-03
  • Updated: 2011-02-16
  • Resolved: 2007-12-17
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 b09Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
I tried NetBeans with Nimbus of 1.6.0_05-ea-b04, but some exceptions happen and editor can not be opened. Is this known issue? I attached the full log file of NetBeans.

NetBeans 6.0 Beta1 (200709141330)
1.6.0_05-ea-b04
Windows XP version 5.1 running on x86 (Japanese)

java.lang.NullPointerException^M
        at org.netbeans.modules.editor.settings.storage.CompositeFCS.<clinit>(CompositeFCS.java:52)^M
Caused: java.lang.ExceptionInInitializerError^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:351)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:343)^M
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:192)^M

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.editor.settings.storage.CompositeFCS^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookupItem(AbstractLookup.java:351)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:343)^M
        at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:192)^M
        at org.netbeans.modules.editor.impl.KitsTracker.reload(KitsTracker.java:201)^M

java.lang.NoClassDefFoundError: Could not initialize class org.netbeans.modules.editor.settings.storage.CompositeFCS^M
        at org.netbeans.modules.editor.settings.storage.SettingsProvider$MyLookup.initialize(SettingsProvider.java:164)^M
        at org.openide.util.lookup.AbstractLookup.enterStorage(AbstractLookup.java:138)^M
        at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:406)^M
        at org.openide.util.lookup.ProxyLookup$R.initResults(ProxyLookup.java:305)^M
        at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:554)^M
        at org.openide.util.lookup.ProxyLookup$R.computeResult(ProxyLookup.java:427)^M
        at org.openide.util.lookup.ProxyLookup$R.allInstances(ProxyLookup.java:400)^M

Comments
EVALUATION Looking in NB source files, it looks like they are expecting TextField.font to be an entry in UIDefaults. There have been many issues of missing UiDefaults keys, although these keys are not required by any spec they are supported by Metal, Windows and many other common LAFs. I have added a comprehensive set to cover as many of these backwards compatibility issues. They are based on the reference page http://java.sun.com/products/jfc/tsc/articles/lookandfeel_reference/index.html These include: XXX.background XXX.foreground XXX.font XXX.disabledText XXX.disabled properties for all basic components and this set of standard colors: desktop: Color of the desktop background activeCaption: Color for captions (title bars) when they are active. activeCaptionText: Text color for text in captions (title bars). activeCaptionBorder: Border color for caption (title bar) window borders. inactiveCaption: Color for captions (title bars) when not active. inactiveCaptionText: Text color for text in inactive captions (title bars). inactiveCaptionBorder: Border color for inactive caption (title bar) window borders. window: Default color for the interior of windows windowBorder: Color of the window's border windowText: Color of the window's title text menu: Background color for menus menuText: Text color for menus text: Text background color textText: Text foreground color textHighlight: Text background color when selected textHighlightText: Text color when selected textInactiveText: Text color when disabled control: Default color for controls (buttons, sliders, etc) controlText: Default color for text in controls controlHighlight: Specular highlight (opposite of the shadow) controlLtHighlight: Highlight color for controls controlShadow: Shadow color for controls controlDkShadow: Dark shadow color for controls scrollbar: Scrollbar background (usually the "track") info: information color (sometimes used for tooltips) infoText: information text color (sometimes used for tooltips)
07-12-2007