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.
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)
Created attachment 115307 [details] stacktrace
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?
input stream is opened in org.netbeans.modules.properties.PropertiesEditorSupport, probably the support should work asynchronously.
Increasing priority to P2 - after discussion with performance team and based on the goal for NB 7.2 (performance improvements) especially for remote filesystems.
fix: http://hg.netbeans.org/core-main/rev/9b5da34ddcb5
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.