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 207826 - IllegalStateException: getInputStream invoked in AWT
Summary: IllegalStateException: getInputStream invoked in AWT
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Properties (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 206311
  Show dependency tree
 
Reported: 2012-01-27 10:58 UTC by Petr Cyhelsky
Modified: 2012-04-18 21:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 184834


Attachments
stacktrace (5.99 KB, text/plain)
2012-01-27 10:58 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-01-27 10:58:30 UTC
This issue was reported manually by cyhelsky.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 20120118-ab16ccd545a5)
VM: OpenJDK 64-Bit Server VM, 20.0-b11, OpenJDK Runtime Environment, 1.6.0_22-b22
OS: Linux

User Comments:
cyhelsky: open file from hg status window




Stacktrace: 
java.lang.IllegalStateException: getInputStream invoked in AWT
   at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:219)
   at org.openide.filesystems.MIMESupport$CachedFileObject.getInputStream(MIMESupport.java:402)
   at org.netbeans.modules.openide.filesystems.declmime.DefaultParser.parse(DefaultParser.java:134)
   at org.netbeans.modules.openide.filesystems.declmime.XMLMIMEComponent$SniffingParser.sniff(XMLMIMEComponent.java:266)
   at org.netbeans.modules.openide.filesystems.declmime.XMLMIMEComponent.acceptFileObject(XMLMIMEComponent.java:83)
   at org.netbeans.modules.openide.filesystems.declmime.MIMEResolverImpl$FileElement.resolve(MIMEResolverImpl.java:690)
Comment 1 Petr Cyhelsky 2012-01-27 10:58:43 UTC
Created attachment 115307 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-01-27 11:08:12 UTC
Mercurial opens a file via an OpenCookie, it does not directly call any I/O operations. I would have no problem with calling OpenCookie.open in a background thread if it were not for bug #206861. In that case on the other hand i had to open a form file in AWT because form editor support requires it. So now what, should we call OpenCookie in AWT or asynchronously? Shouldn't this be rather solved inside PropertiesEditorSupport where the file is actually opened?
Comment 3 Ondrej Vrabec 2012-01-31 09:13:21 UTC
input stream is opened in org.netbeans.modules.properties.PropertiesEditorSupport, probably the support should work asynchronously.
Comment 4 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 5 Jan Peska 2012-04-17 12:21:09 UTC
fix: http://hg.netbeans.org/core-main/rev/9b5da34ddcb5
Comment 6 Quality Engineering 2012-04-18 21:28:34 UTC
Integrated into 'main-golden', will be available in build *201204181547* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9b5da34ddcb5
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #207826 - IllegalStateException: getInputStream invoked in AWT
Removed useless condition. PropertiesDataObject.isMultiLocale returns always false.