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 207839

Summary: IllegalStateException: getInputStream invoked in AWT
Product: editor Reporter: Petr Cyhelsky <cyhelsky>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal CC: tzezula
Priority: P2 Keywords: PERFORMANCE
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 184841
Bug Depends on:    
Bug Blocks: 206311    
Attachments: stacktrace

Description Petr Cyhelsky 2012-01-27 14:46:51 UTC
Build: NetBeans IDE Dev (Build 20120125-2ee091eab541)
VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

Stacktrace: 
java.lang.IllegalStateException: getInputStream invoked in AWT
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:226)
   at org.netbeans.modules.parsing.api.Source.createSnapshot(Source.java:313)
   at org.netbeans.modules.java.source.parsing.SourceFileObject.getContent(SourceFileObject.java:407)
   at org.netbeans.modules.java.source.parsing.SourceFileObject.getCharContent(SourceFileObject.java:167)
   at org.netbeans.modules.java.source.parsing.SourceFileObject.getCharContent(SourceFileObject.java:88)
   at com.sun.tools.javac.main.JavaCompiler.complete(JavaCompiler.java:756)
Comment 1 Petr Cyhelsky 2012-01-27 14:47:06 UTC
Created attachment 115318 [details]
stacktrace
Comment 2 Marian Mirilovic 2012-04-16 13:04:15 UTC
Increasing priority to P2 - after discussion with performance team and based on the goal for NB 7.2 (performance improvements) especially for remote filesystems.
Comment 3 Tomas Zezula 2012-04-20 09:02:57 UTC
The editor.codetemplates calls javac from EDT.
Comment 4 Dusan Balek 2012-04-20 18:12:29 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/ea7e20796c91
Comment 5 Quality Engineering 2012-04-23 09:58:25 UTC
Integrated into 'main-golden', will be available in build *201204230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ea7e20796c91
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #207839: IllegalStateException: getInputStream invoked in AWT - fixed.