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 230905 - [dark] NullPointerException at javax.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:298)
Summary: [dark] NullPointerException at javax.swing.plaf.nimbus.NimbusStyle.validate(N...
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Logger (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-07 09:45 UTC by Marian Mirilovic
Modified: 2013-06-14 02:01 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 Marian Mirilovic 2013-06-07 09:45:54 UTC
Product Version: NetBeans IDE Dev (Build 201306062301)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b13
System: Linux version 3.5.0-32-generic running on amd64; UTF-8; en_US (nb)

Steps to reproduce :
- start the IDE
- switch to Dark Metal -> restart (through opened Notifications window)
- switch to Dark Nimbus -> restart (through opened Notifications window)
-> exception on start :

java.lang.NullPointerException
	at javax.swing.plaf.nimbus.NimbusStyle.validate(NimbusStyle.java:298)
	at javax.swing.plaf.nimbus.NimbusStyle.getValues(NimbusStyle.java:806)
	at javax.swing.plaf.nimbus.NimbusStyle.getInsets(NimbusStyle.java:485)
	at javax.swing.plaf.synth.SynthStyle.installDefaults(SynthStyle.java:913)
	at javax.swing.plaf.synth.SynthLookAndFeel.updateStyle(SynthLookAndFeel.java:265)
	at javax.swing.plaf.synth.SynthButtonUI.updateStyle(SynthButtonUI.java:79)
	at javax.swing.plaf.synth.SynthButtonUI.installDefaults(SynthButtonUI.java:62)
	at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:88)
	at javax.swing.JComponent.setUI(JComponent.java:664)
	at javax.swing.AbstractButton.setUI(AbstractButton.java:1807)
	at javax.swing.JButton.updateUI(JButton.java:146)
	at javax.swing.AbstractButton.init(AbstractButton.java:2172)
	at javax.swing.JButton.<init>(JButton.java:136)
	at javax.swing.JButton.<init>(JButton.java:90)
	at org.netbeans.modules.uihandler.Installer.<init>(Installer.java:157)
Caused: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:658)
	at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:1018)
	at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:1010)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:532)
Caused: java.lang.IllegalArgumentException
	at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:535)
	at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:468)
[catch] at org.netbeans.core.startup.NbInstaller.loadImpl(NbInstaller.java:394)
	at org.netbeans.core.startup.NbInstaller.access$000(NbInstaller.java:105)
	at org.netbeans.core.startup.NbInstaller$1.run(NbInstaller.java:346)
	at org.openide.filesystems.FileUtil$2.run(FileUtil.java:431)
	at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)
	at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:609)
	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:415)
	at org.openide.filesystems.FileUtil.runAtomicAction(FileUtil.java:435)
	at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:343)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1188)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1011)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:301)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:181)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:150)
	at org.netbeans.core.startup.Main.start(Main.java:307)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:724)
Comment 1 Stanislav Aubrecht 2013-06-12 08:58:36 UTC
org.netbeans.modules.uihandler.Installer creates some Swing components in its c'tor. This is being done outside the EDT so when Nimbus l&f it may clash with some other code that is running in EDT.
Comment 2 Martin Entlicher 2013-06-12 12:06:37 UTC
Fixed by changeset:   256273:71bbe1817f44
http://hg.netbeans.org/core-main/rev/71bbe1817f44
Comment 3 Quality Engineering 2013-06-14 02:01:31 UTC
Integrated into 'main-golden', will be available in build *201306132301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/71bbe1817f44
User: mentlicher@netbeans.org
Log: #230905: Do not create GUI components outside of AWT.