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 37738 - Call window API from AWT thread only
Summary: Call window API from AWT thread only
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: THREAD
: 37784 (view as bug list)
Depends on:
Blocks: 37529
  Show dependency tree
 
Reported: 2003-12-04 12:55 UTC by Peter Zavadsky
Modified: 2007-11-05 13:44 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 Peter Zavadsky 2003-12-04 12:55:54 UTC
There are a lot of messages at startup, please fix it.

INFORMATIONAL *********** Exception occurred
************ at Thu Dec 04 13:44:16 CET 2003
[catch]java.lang.IllegalStateException: Assertion
failed. WindowsAPI is required to be called from
AWT thread only, see
http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/threading.html
        at
org.netbeans.core.windows.WindowManagerImpl.assertEventDispatchThreadWeak(WindowManagerImpl.java:875)
        at
org.netbeans.core.windows.WindowManagerImpl.getMainWindow(WindowManagerImpl.java:108)
        at
org.netbeans.modules.editor.EditorModule$RepositListener.fileSystemAdded(EditorModule.java:554)
        at
org.openide.filesystems.Repository.fireFileSystem(Repository.java:481)
        at
org.openide.filesystems.Repository.addFileSystem(Repository.java:184)
        at
org.netbeans.core.AutomountSupport.cycleFileSystems(AutomountSupport.java:621)
        at
org.netbeans.core.AutomountSupport.updateFileSystems(AutomountSupport.java:524)
        at
org.netbeans.core.AutomountSupport.taskFinished(AutomountSupport.java:168)
        at
org.openide.util.Task.notifyFinished(Task.java:121)
        at
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:719)
        at
org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
        at
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:591)
        at org.openide.util.Task.run(Task.java:136)
        at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:678)
Comment 1 Dusan Balek 2003-12-05 10:37:12 UTC
Already fixed in [maintrunk].

/cvs/editor/src/org/netbeans/modules/editor/EditorModule.java,v
revision 1.102
date: 2003/12/04 19:09:21;  author: jglick;  state: Exp;  lines: +19 -33
Threading fix - assertions were being printed for every FS mounted
during startup, yecch.
Comment 2 Dusan Balek 2003-12-05 13:27:58 UTC
*** Issue 37784 has been marked as a duplicate of this issue. ***
Comment 3 Max Sauer 2005-07-14 09:20:07 UTC
Closing. 3.6. issue, no such messages appear in current build. (200507191800).