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 205178 - EDT violation when using netbeans.winsys.statusLine.in.menuBar=true
Summary: EDT violation when using netbeans.winsys.statusLine.in.menuBar=true
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal with 3 votes (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 09:01 UTC by mgoe
Modified: 2011-11-19 16:18 UTC (History)
2 users (show)

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 mgoe 2011-11-16 09:01:53 UTC
When the property netbeans.winsys.statusLine.in.menuBar=true is set, an EDT violation occurs. The method StatusLineElementProvider.getStatusLineElement() which is required to return a Component object is called from a non event dispatch thread as shown in the callstack below.

	at org.netbeans.core.windows.view.ui.MainWindow.getStatusLineElements(MainWindow.java:332)
	at org.netbeans.core.windows.view.ui.MainWindow.decoratePanel(MainWindow.java:302)
	at org.netbeans.core.windows.view.ui.MainWindow.createMenuBar(MainWindow.java:469)
	at org.netbeans.core.windows.view.ui.MainWindow.init(MainWindow.java:140)
	at org.netbeans.core.windows.WindowSystemImpl.init(WindowSystemImpl.java:71)
	at org.netbeans.core.GuiRunLevel.initializeMainWindow(GuiRunLevel.java:161)
	at org.netbeans.core.GuiRunLevel.run(GuiRunLevel.java:101)
	at org.netbeans.core.startup.Main.start(Main.java:318)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:662)
Comment 1 Antonin Nebuzelsky 2011-11-16 14:51:49 UTC
I did not encounter the problem with build 201111130600, on Linux with JDK 7u1.

Please, attach the whole exception.
Comment 2 Stanislav Aubrecht 2011-11-18 17:27:36 UTC
core-main 4177b400b401

but i don't think we need this fix in 7.1
Comment 3 limo42 2011-11-18 17:38:08 UTC
Even if you don't want to fix this in 7.1 (which I don't agree with), this
issue is very clearly _neither_ resolved _nor_ fixed - or why would you set 7.2
as target?
Comment 4 Marian Mirilovic 2011-11-18 17:46:59 UTC
(In reply to comment #2)
> but i don't think we need this fix in 7.1

Agreed
Comment 5 Quality Engineering 2011-11-19 16:18:27 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/4177b400b401
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #205178 - create status line elements in EDT