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 267533

Summary: IllegalThreadStateException: Should never be called from AWT thread
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: DebuggerAssignee: Maria Tishkova <mromashova>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225714
Attachments: stacktrace

Description Exceptions Reporter 2016-08-11 06:16:54 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
GUEST: Was trying to initiate a remote debug using the GDB server plugin.




Stacktrace: 
java.lang.IllegalThreadStateException: Should never be called from AWT thread
   at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.connectTo(ConnectionManager.java:398)
   at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:285)
   at org.netbeans.modules.nativeexecution.api.util.HostInfoUtils.getHostInfo(HostInfoUtils.java:255)
   at org.netbeans.modules.cnd.api.utils.PlatformInfo.<init>(PlatformInfo.java:84)
   at org.netbeans.modules.cnd.api.utils.PlatformInfo.getDefault(PlatformInfo.java:393)
   at org.netbeans.modules.cnd.debugger.common2.debugger.remote.ExecHost.<init>(ExecHost.java:67)
Comment 1 Exceptions Reporter 2016-08-11 06:16:56 UTC
Created attachment 161628 [details]
stacktrace
Comment 2 Vladimir Kvashin 2016-08-23 15:49:24 UTC
Isn't it a debugger bug? It starts debugging right in the UI thread.
Well, to put it more precise, its a gdbserver bug; and gdbserver is a plugin in contrib. But I guess gdbserver will be soon included into cnd back again, so we'd better leave this bug on debugger.
Comment 3 Maria Tishkova 2016-12-08 13:00:54 UTC
fixed in contrib

changeset:   18395:fa89675554e4
branch:      release82
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Thu Dec 08 15:54:27 2016 +0300
summary:     fixed bz#267533  -  NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbHandlerExpert.appendCommandStart

changeset:   18396:23c0ac76825f
branch:      release82
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Thu Dec 08 15:56:35 2016 +0300
summary:     added fiz bz#267533 spec version of gdbserver is incremented
Comment 4 Maria Tishkova 2016-12-08 14:07:51 UTC
transplanted in contrib/default
changeset:   18398:995611fef0d5
tag:         tip
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Thu Dec 08 15:54:27 2016 +0300
summary:     fixed bz#267533  -  NullPointerException at org.netbeans.modules.cnd.debugger.gdb2.GdbHandlerExpert.appendCommandStart

changeset:   18397:0f6ff4e8e09f
parent:      18392:6ccd27d3f884
user:        Maria Dalmatova <mromashova@netbeans.org>
date:        Sun Dec 04 19:42:56 2016 +0300
summary:     added fix to  bug#24810679 - changes in gdb.common