Bug 230528 - Threading problems in Nimbus l&f
Threading problems in Nimbus l&f
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
7.4
All All
: P2 with 5 votes (vote)
: 8.0
Assigned To: Stanislav Aubrecht
issues@platform
: UMBRELLA
: 226531 226902 229752 230584 232786 233857 234151 235427 235837 238425 241061 242433 242683 248792 248795 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-30 13:07 UTC by Stanislav Aubrecht
Modified: 2015-05-29 04:43 UTC (History)
15 users (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Aubrecht 2013-05-30 13:07:33 UTC
Because Nimbus look and feel isn't thread safe there are random exceptions when UI components are instantiated outside the EDT thread.
Comment 1 Stanislav Aubrecht 2013-08-21 09:31:24 UTC
*** Bug 234151 has been marked as a duplicate of this bug. ***
Comment 2 Stanislav Aubrecht 2013-08-21 09:31:36 UTC
*** Bug 233857 has been marked as a duplicate of this bug. ***
Comment 3 Stanislav Aubrecht 2013-08-21 09:31:54 UTC
*** Bug 232786 has been marked as a duplicate of this bug. ***
Comment 4 Stanislav Aubrecht 2013-08-21 09:32:01 UTC
*** Bug 230584 has been marked as a duplicate of this bug. ***
Comment 5 Stanislav Aubrecht 2013-08-21 09:32:19 UTC
*** Bug 229752 has been marked as a duplicate of this bug. ***
Comment 6 Stanislav Aubrecht 2013-08-21 09:32:30 UTC
*** Bug 226902 has been marked as a duplicate of this bug. ***
Comment 7 Stanislav Aubrecht 2013-08-21 09:32:44 UTC
*** Bug 226531 has been marked as a duplicate of this bug. ***
Comment 8 Stanislav Aubrecht 2013-09-03 07:25:02 UTC
*** Bug 235427 has been marked as a duplicate of this bug. ***
Comment 9 Stanislav Aubrecht 2013-09-12 07:21:22 UTC
*** Bug 235837 has been marked as a duplicate of this bug. ***
Comment 10 Stanislav Aubrecht 2013-12-02 13:55:40 UTC
*** Bug 238425 has been marked as a duplicate of this bug. ***
Comment 11 Stanislav Aubrecht 2014-01-28 13:30:53 UTC
*** Bug 241061 has been marked as a duplicate of this bug. ***
Comment 12 Stanislav Aubrecht 2014-03-03 14:01:52 UTC
*** Bug 242433 has been marked as a duplicate of this bug. ***
Comment 13 Ondrej Vrabec 2014-03-10 08:11:13 UTC
*** Bug 242683 has been marked as a duplicate of this bug. ***
Comment 14 Stanislav Aubrecht 2014-11-21 12:29:32 UTC
*** Bug 248795 has been marked as a duplicate of this bug. ***
Comment 15 cezariusz 2014-11-21 12:41:46 UTC
This issue has 14 duplicates, so according to http://wiki.netbeans.org/BugPriorityGuidelines it's P2.
Comment 16 cezariusz 2015-03-31 15:36:35 UTC
*** Bug 248792 has been marked as a duplicate of this bug. ***
Comment 17 cezariusz 2015-05-29 04:40:32 UTC
Sample exception which occurs quite often with Nimbus:

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.SynthMenuItemUI.updateStyle(SynthMenuItemUI.java:96)
	at javax.swing.plaf.synth.SynthMenuItemUI.installDefaults(SynthMenuItemUI.java:80)
	at javax.swing.plaf.basic.BasicMenuItemUI.installUI(BasicMenuItemUI.java:107)
	at javax.swing.JComponent.setUI(JComponent.java:663)
	at javax.swing.AbstractButton.setUI(AbstractButton.java:1810)
	at javax.swing.JMenuItem.setUI(JMenuItem.java:241)
	at javax.swing.JMenuItem.updateUI(JMenuItem.java:250)
	at javax.swing.JMenuItem.init(JMenuItem.java:212)
	at javax.swing.JMenuItem.<init>(JMenuItem.java:151)
	at javax.swing.JMenuItem.<init>(JMenuItem.java:110)
	at org.openide.awt.Actions$MenuItem.<init>(Actions.java:1561)
	at org.netbeans.modules.openide.awt.DefaultAWTBridge.createMenuPresenter(DefaultAWTBridge.java:76)
	at org.openide.util.actions.CallableSystemAction.getMenuPresenter(CallableSystemAction.java:92)
	at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:101)
	at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:808)
	at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:888)
	at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:730)
	at org.openide.util.Task.run(Task.java:257)
[catch] at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:79)
	at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:172)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
	at java.awt.EventQueue.access$400(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:697)
	at java.awt.EventQueue$3.run(EventQueue.java:691)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 18 cezariusz 2015-05-29 04:43:31 UTC
Another one:

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.SynthProgressBarUI.updateStyle(SynthProgressBarUI.java:92)
	at javax.swing.plaf.synth.SynthProgressBarUI.installDefaults(SynthProgressBarUI.java:86)
	at javax.swing.plaf.basic.BasicProgressBarUI.installUI(BasicProgressBarUI.java:137)
	at javax.swing.JComponent.setUI(JComponent.java:666)
	at javax.swing.JProgressBar.setUI(JProgressBar.java:609)
	at javax.swing.JProgressBar.updateUI(JProgressBar.java:619)
	at javax.swing.JProgressBar.<init>(JProgressBar.java:334)
	at javax.swing.JProgressBar.<init>(JProgressBar.java:274)
	at javax.swing.JProgressBar.<init>(JProgressBar.java:251)
	at org.netbeans.modules.progress.ui.NbProgressBar.<init>(NbProgressBar.java:74)
	at org.netbeans.modules.progress.ui.StatusLineComponent.createBar(StatusLineComponent.java:185)
	at org.netbeans.modules.progress.ui.StatusLineComponent.<init>(StatusLineComponent.java:132)
	at org.netbeans.modules.progress.ui.ProviderImpl.getDefaultWorker(ProviderImpl.java:63)
	at org.netbeans.modules.progress.spi.Controller.getProgressUIWorker(Controller.java:125)
	at org.netbeans.modules.progress.spi.Controller.getVisualComponent(Controller.java:108)
	at org.netbeans.progress.module.ProgressVisualizerProvider.getStatusLineElement(ProgressVisualizerProvider.java:60)
	at org.netbeans.core.windows.view.ui.MainWindow$7.run(MainWindow.java:405)
	at org.netbeans.core.windows.view.ui.MainWindow.getStatusLineElements(MainWindow.java:417)
	at org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:371)
	at org.netbeans.core.windows.view.ui.MainWindow.access$100(MainWindow.java:81)
	at org.netbeans.core.windows.view.ui.MainWindow$2.run(MainWindow.java:269)
[catch] at org.netbeans.core.windows.WindowManagerImpl$Exclusive$1.run(WindowManagerImpl.java:1563)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:749)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:702)
	at java.awt.EventQueue$3.run(EventQueue.java:696)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:719)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo