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 41213 - Exception occurs when validate a JSP file
Summary: Exception occurs when validate a JSP file
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
: 41323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-23 01:46 UTC by davisn
Modified: 2008-12-23 08:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Simple patch for release36 branch to fix the problem (1.91 KB, patch)
2004-03-23 13:09 UTC, _ tboudreau
Details | Diff
Core output jar with patch (313.81 KB, application/octet-stream)
2004-03-23 14:59 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description davisn 2004-03-23 01:46:21 UTC
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)
Comment 1 Nam Nguyen 2004-03-23 02:09:11 UTC
Seems to be core/compiler issue.
Comment 2 Milos Kleint 2004-03-23 07:19:46 UTC
is compiler issue, not calling windows system methods from awt thread,
reassigning..
Comment 3 _ ttran 2004-03-23 08:29:00 UTC
Tim, please look at this asap.  Thx
Comment 4 _ tboudreau 2004-03-23 13:09:38 UTC
Created attachment 14097 [details]
Simple patch for release36 branch to fix the problem
Comment 5 _ tboudreau 2004-03-23 13:12:51 UTC
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.
Comment 6 _ tboudreau 2004-03-23 13:16:41 UTC
I've submitted the patch to reviewers for possible inclusion in the 3.6 release.
Comment 7 _ tboudreau 2004-03-23 14:59:20 UTC
Created attachment 14100 [details]
Core output jar with patch
Comment 8 Jaroslav Tulach 2004-03-24 13:52:09 UTC
Looks like safe and useful change.
Comment 9 _ tboudreau 2004-03-24 14:12:52 UTC
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
Comment 10 Lukas Hasik 2004-03-24 14:30:25 UTC
I tried to reproduce with/without the path - but unsuccessfully. 
Anyway - seems safe. 
Comment 11 _ tboudreau 2004-03-24 15:04:50 UTC
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.
Comment 12 Marian Mirilovic 2004-03-25 22:28:23 UTC
*** Issue 41323 has been marked as a duplicate of this issue. ***
Comment 13 Lukas Hasik 2004-04-02 15:39:51 UTC
davisn, could please verify that this issue is fixed in nb36 - RC2 ?
thanks advance.
Comment 14 davisn 2004-04-02 19:06:43 UTC
This is confirmed as fix in RC2 release.
Comment 15 Lukas Hasik 2004-04-05 15:08:09 UTC
davisn, thanks for verification -> I'm marking as VERIFIED
Comment 16 Quality Engineering 2008-12-23 08:07:24 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.