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 247264 - IllegalThreadStateException: Should never be called from AWT thread
Summary: IllegalThreadStateException: Should never be called from AWT thread
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 10:33 UTC by Alexander Simon
Modified: 2014-11-11 12:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212002


Attachments
stacktrace (2.22 KB, text/plain)
2014-09-18 10:33 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-09-18 10:33:32 UTC
Build: Oracle Solaris Studio 12.4 (2014/09/18 0643a9c5489c)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.20-b23, Java(TM) SE Runtime Environment, 1.8.0_20-b26
OS: SunOS

User Comments:
alexvsimon: debug remote core file




Stacktrace: 
java.lang.IllegalThreadStateException: Should never be called from AWT thread
   at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.connectTo(ConnectionManager.java:357)
   at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.connect(ConnectionManager.java:314)
   at org.netbeans.modules.nativeexecution.api.util.ConnectionManager.connect(ConnectionManager.java:345)
   at org.netbeans.modules.cnd.debugger.common2.utils.PsProvider.getDefault(PsProvider.java:521)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeSessionProvider.getSessionName(NativeSessionProvider.java:81)
   at org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:325)
Comment 1 Alexander Simon 2014-09-18 10:33:39 UTC
Created attachment 149340 [details]
stacktrace
Comment 2 Maria Tishkova 2014-10-30 09:36:08 UTC
NativeSessionProvider getSessionName should return the same string
The problem:
when using mixed development and switching between Java and native session the name of Native session displayed in the table is not from NodeFilter but from Session.getName()
Comment 3 Maria Tishkova 2014-11-06 10:22:12 UTC
sorry. incorrect whiteboard, marked it as patch 2 candidate on Monday
Comment 4 Maria Tishkova 2014-11-06 10:44:59 UTC
fixed in 280610:d0d7c134ebb7
(the fix is just revert of changes which introduced this exception)
from the user point of view: in case of Mixed development the name of native session will be displayed in Sessions view as "placeholder-for-NativeSessionProvider.getSessionName()" when it is not active
Comment 5 Quality Engineering 2014-11-07 03:50:56 UTC
Integrated into 'main-silver', will be available in build *201411070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d0d7c134ebb7
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#247264 and bz#248003
rollbacked changes made to display native session name in mixed development as it brakes debugger
Comment 6 Quality Engineering 2014-11-10 23:20:15 UTC
Integrated into 'releases/release801', will be available in build *201411102027* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/e2d4b72d19f3
User: Maria Dalmatova <mromashova@netbeans.org>
Log: fixed bz#247264 and bz#248003
rollbacked changes made to display native session name in mixed development as it brakes debugger
(transplanted from d0d7c134ebb7e07a7fad2eca5a585eb8b9137dd9)