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.
Build used: Netbean: RC1 Plugin: 03/22 AppServer: b57 STEPS TO REPRODUCE: 1. Install AppServer, Netbean and plugin on a same window system 2. Start Netbean IDE > AppServer 3. Create a web module (eg, c:\test) 4. Execute the web module 5. Insert the index.jsp file into the web module (to the location at c:\test) 6. Right-click at the JSP file and select Validate menu BUG: Exception occurred Error message is posted below: ------------------------------------------------- Initial slashes in Utilities.loadImage deprecated (cf. #20072): /org/netbeans/modules/form/resources/inspector.gif Warning - org.netbeans.modules.web.core.jsploader.ValidateAction should override CallableSystemAction.asynchronous() to return false INFORMATIONAL *********** Exception occurred ************ at Mon Mar 22 15:13:53 PST 2004 [catch]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:1000) at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:204) at org.netbeans.core.output.OutputView.findDefault(OutputView.java:190) at org.netbeans.core.output.OutputTabInner$OutTermPane.ensureOpen(OutputTabInner.java:2455) at org.netbeans.core.output.OutputTabInner$OutTermPane.access$3100(OutputTabInner.java:700) at org.netbeans.core.output.OutputTabInner$OutTermPane$TermOutputWriter.println(OutputTabInner.java:1509) at java.io.PrintWriter.println(PrintWriter.java:516) at org.netbeans.core.compiler.CompilerDisplayer.println(CompilerDisplayer.java:372) at org.netbeans.core.compiler.CompilerDisplayer.compilationFinished(CompilerDisplayer.java:250) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.run(CompilationEngineImpl.java:184) INFORMATIONAL *********** Exception occurred ************ at Mon Mar 22 15:13:53 PST 2004 [catch]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:1000) at org.netbeans.core.windows.WindowManagerImpl.topComponentIconChanged(WindowManagerImpl.java:932) at org.openide.windows.TopComponent.setIcon(TopComponent.java:618) at org.netbeans.core.output.OutputView.<init>(OutputView.java:130) at org.netbeans.core.output.OutputView.<init>(OutputView.java:146) at org.netbeans.core.output.OutputView.getDefault(OutputView.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:633) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:548) at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:350) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:462) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:570) at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:206) at org.netbeans.core.output.OutputView.findDefault(OutputView.java:190) at org.netbeans.core.output.OutputTabInner$OutTermPane.ensureOpen(OutputTabInner.java:2455) at org.netbeans.core.output.OutputTabInner$OutTermPane.access$3100(OutputTabInner.java:700) at org.netbeans.core.output.OutputTabInner$OutTermPane$TermOutputWriter.println(OutputTabInner.java:1509) at java.io.PrintWriter.println(PrintWriter.java:516) at org.netbeans.core.compiler.CompilerDisplayer.println(CompilerDisplayer.java:372) at org.netbeans.core.compiler.CompilerDisplayer.compilationFinished(CompilerDisplayer.java:250) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.run(CompilationEngineImpl.java:184) INFORMATIONAL *********** Exception occurred ************ at Mon Mar 22 15:13:53 PST 2004 [catch]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:1000) at org.netbeans.core.windows.WindowManagerImpl.topComponentDisplayNameChanged(WindowManagerImpl.java:914) at org.openide.windows.TopComponent.setName(TopComponent.java:568) at org.netbeans.core.output.OutputView.<init>(OutputView.java:147) at org.netbeans.core.output.OutputView.getDefault(OutputView.java:218) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.createFromMethod(XMLSettingsSupport.java:633) at org.netbeans.modules.settings.convertors.XMLSettingsSupport$SettingsRecognizer.instanceCreate(XMLSettingsSupport.java:548) at org.netbeans.modules.settings.convertors.SerialDataConvertor$SettingsInstance.instanceCreate(SerialDataConvertor.java:350) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentPersistentForID(PersistenceManager.java:462) at org.netbeans.core.windows.persistence.PersistenceManager.getTopComponentForID(PersistenceManager.java:570) at org.netbeans.core.windows.WindowManagerImpl.findTopComponent(WindowManagerImpl.java:206) at org.netbeans.core.output.OutputView.findDefault(OutputView.java:190) at org.netbeans.core.output.OutputTabInner$OutTermPane.ensureOpen(OutputTabInner.java:2455) at org.netbeans.core.output.OutputTabInner$OutTermPane.access$3100(OutputTabInner.java:700) at org.netbeans.core.output.OutputTabInner$OutTermPane$TermOutputWriter.println(OutputTabInner.java:1509) at java.io.PrintWriter.println(PrintWriter.java:516) at org.netbeans.core.compiler.CompilerDisplayer.println(CompilerDisplayer.java:372) at org.netbeans.core.compiler.CompilerDisplayer.compilationFinished(CompilerDisplayer.java:250) at org.netbeans.core.compiler.CompilationEngineImpl$CompilerThread.run(CompilationEngineImpl.java:184)
Seems to be core/compiler issue.
is compiler issue, not calling windows system methods from awt thread, reassigning..
Tim, please look at this asap. Thx
Created attachment 14097 [details] Simple patch for release36 branch to fix the problem
Very similar to, but not the same as, issue 37810 - on printing to the output window, the process ensures that the compiler output window is opened, but does not ensure the winsys call is done on the event dispatch thread. Fix is simply to use Mutex.EVENT.readAccess() to ensure it is run on EQ.
I've submitted the patch to reviewers for possible inclusion in the 3.6 release.
Created attachment 14100 [details] Core output jar with patch
Looks like safe and useful change.
Fixed in release 36 branch Checking in core/output/src/org/netbeans/core/output/OutputTabInner.java; /cvs/core/output/src/org/netbeans/core/output/OutputTabInner.java,v <-- OutputTabInner.java new revision: 1.21.2.1; previous revision: 1.21 done
I tried to reproduce with/without the path - but unsuccessfully. Anyway - seems safe.
Closing issue, the code in question was deleted in the build system merge - it was compiler output processing specific - nothing to fix in the trunk.
*** Issue 41323 has been marked as a duplicate of this issue. ***
davisn, could please verify that this issue is fixed in nb36 - RC2 ? thanks advance.
This is confirmed as fix in RC2 release.
davisn, thanks for verification -> I'm marking as VERIFIED
moving terminal emulator issues to terminalemulator component. To see the correct version and target milestone of this issue look at Issue Activity table.