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 163469

Summary: [67cat] IllegalStateException: Problem in some module which uses Window System: Window System API is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/
Product: contrib Reporter: dynamite <dynamite>
Component: CodeAssignee: _ sandipchitale <sandipchitale>
Status: RESOLVED FIXED    
Severity: blocker CC: jtulach, saubrecht, stanley_tweedle
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=149995
Issue Type: DEFECT Exception Reporter: 149995
Attachments: stacktrace
stacktrace

Description dynamite 2009-04-23 11:27:16 UTC
Build: NetBeans IDE Dev (Build 200904210201)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: Windows XP, 5.1, x86

User Comments:
dynamite: I have tried to install the "Desktop Sampler" module.  It appears to have succeeded, but I still got the exception anyway.



Stacktrace: 
java.lang.IllegalStateException: Problem in some module which uses Window System: Window System API is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/
        at org.netbeans.core.windows.WindowManagerImpl.warnIfNotInEDT(WindowManagerImpl.java:1552)
        at org.netbeans.core.windows.WindowManagerImpl.getMainWindow(WindowManagerImpl.java:157)
        at org.netbeans.modules.desktopsampler.ui.DesktopSampler.<init>(DesktopSampler.java:110)
        at org.netbeans.modules.desktopsampler.ui.DesktopSamplerAction.<init>(DesktopSamplerAction.java:31)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
Comment 1 dynamite 2009-04-23 11:27:25 UTC
Created attachment 80751 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2009-04-23 12:14:03 UTC
seems to be caused by actions not being instantiated in EDT thread
Comment 3 Jaroslav Tulach 2009-04-23 16:54:51 UTC
The module is in contrib/desktopsampler, owner is probably Sandip. Hello Sandip, are you still observing us?
Comment 4 Jaroslav Tulach 2009-04-23 17:02:57 UTC
http://hg.netbeans.org/main/contrib/rev/ec41a8ee33ff

Sandip, if you want then tell me and next time I give you bigger chance to fix bugs.
Comment 5 _ sandipchitale 2009-04-23 18:17:56 UTC
thanks for fixing this Yarda. Sorry I did not get around to fixing it.
Comment 6 Jaroslav Tulach 2009-05-12 21:12:37 UTC
*** Issue 164753 has been marked as a duplicate of this issue. ***
Comment 7 stanley_tweedle 2009-10-13 01:11:06 UTC
Build: NetBeans IDE Dev (Build 200908022240)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.IllegalStateException: Problem in some module which uses Window System: Window System API is required to be called from AWT thread only, see http://core.netbeans.org/proposals/threading/
        at org.netbeans.core.windows.WindowManagerImpl.warnIfNotInEDT(WindowManagerImpl.java:1552)
        at org.netbeans.core.windows.WindowManagerImpl.getMainWindow(WindowManagerImpl.java:157)
        at org.netbeans.modules.desktopsampler.ui.DesktopSampler.<init>(DesktopSampler.java:110)
        at org.netbeans.modules.desktopsampler.ui.DesktopSamplerAction.<init>(DesktopSamplerAction.java:31)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
Comment 8 stanley_tweedle 2009-10-13 01:11:10 UTC
Created attachment 89341 [details]
stacktrace
Comment 9 Stanislav Aubrecht 2009-10-16 12:54:21 UTC
*** Issue 174405 has been marked as a duplicate of this issue. ***