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 77200 - Assertion failed. WindowsAPI is required to be called from AWT thread only
Summary: Assertion failed. WindowsAPI is required to be called from AWT thread only
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: AVK (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ bhavanishankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-01 04:12 UTC by ea118769
Modified: 2006-11-02 17: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 ea118769 2006-06-01 04:12:07 UTC
I installed NetBeans nightly builds 05/30 and 05/31 with AS 9.0 PE b48 on
Solaris and Linux  machines. Then I installed AVK from the Update Center.
For both installations when I tried to run Dynamic  Verification I saw many such
error messages in the NB messages.log file or at the terminal windows where NB was
started:

INFORMATIONAL *********** Exception occurred ************ at 12:02 PM on
May 31, 2006
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:1136)
at
org.netbeans.core.windows.WindowManagerImpl.topComponentIsOpened(WindowManagerImpl.java:1066)
at org.openide.windows.TopComponent.isOpened(TopComponent.java:326)
at org.openide.windows.TopComponent.isOpened(TopComponent.java:318)
at
org.netbeans.modules.j2ee.sun.ide.avk.report.view.ReportAction.isUIClosed(ReportAction.java:35)
at
org.netbeans.modules.j2ee.sun.ide.avk.actions.StartInstrumentation$2.run(StartInstrumentation.java:264)
Comment 1 mgoe 2006-07-11 09:18:48 UTC
Netbeans 5.0 seems to have the same problem. In a netbeans rich client 
application written in our company we get the following call stack during the 
start of the program: 
 
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:1136) 
        at 
org.netbeans.core.windows.WindowManagerImpl.getMainWindow(WindowManagerImpl.java:125) 
        at org.netbeans.core.NonGui$3.run(NonGui.java:206) 
        at java.awt.event.InvocationEvent.dispatch(Unknown Source) 
        at java.awt.EventQueue.dispatchEvent(Unknown Source) 
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
        at java.awt.EventDispatchThread.run(Unknown Source)  
Comment 2 _ ludo 2006-09-08 16:49:47 UTC
AVK plugin...