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.
Exception is thrown during automated tests: java.lang.IllegalStateException: This must happen in the event thread! Look at attached stack trace. Tested on build 20031125-2031, JDK1.4.1_02-b06, Linux 2.4.5.
Created attachment 12317 [details] stack trace
Moving to core. In the javadoc of IOProvider.getIO() there's nothing about that this should be run in AWT. The problem seems to be at org.netbeans.core.output.* which access the UI.
Well, it seems it should be that it needs to be called in AWT only. Beside the actions there are also calls to winsys which are going to be required to be called in AWT only. On the other hand, this code seems to be older, please use the latest build and provide actual stack trace.
Yarda, what to do with this? Require the calls from AWT, or try to make something in the core/output, but I don't know what yet.
Okay, I've put a simple fix into OutputTabInner - it will now create its popup menu lazily instead of doing it in the constructor. I *think* that will solve the problem, unless there's other stuff it's doing in its constructor that shouldn't be done on the event thread. Reopen if there's still a problem - I'm not quite sure how to reproduce this. Jelly will of course need to invoke the popup (if it does at all) from the event thread, or you'll still see some exceptions.
Verified - exception never appeared again.
moving terminal emulator issues to terminalemulator component. To see the correct version and target milestone of this issue look at Issue Activity table.