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: 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: refactor| undo eextract superclass Stacktrace: java.lang.IllegalStateException: getInputStream invoked in AWT at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.getInputStream(FileObj.java:219) at org.openide.text.DataEditorSupport$Env.inputStream(DataEditorSupport.java:883) at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:2117) at org.openide.text.CloneableEditorSupport.access$2800(CloneableEditorSupport.java:129) at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:2927) at org.openide.text.CloneableEditorSupport$6$1Query.call(CloneableEditorSupport.java:1776)
Created attachment 115046 [details] stacktrace
Created attachment 115228 [details] stacktrace
Increasing priority to P2 - after discussion with performance team and based on the goal for NB 7.2 (performance improvements) especially for remote filesystems.
The reload occurs in CloneableEditorSupport.reloadDocument() during getListener().run(); in the CES.Query.call(). There are additional actions to be performed after actual reload (setting caret etc.) I may attempt to move the code from reloadDocument() into prepareDocument() where I'll check for DOCUMENT_RELOADING status. Given the CES code and threading complexity I would rather do it at a begining of 7.3 cycle but I'll try and we can possibly rollback it for 7.2.
After discussion with performance team making it P3 again.
*** Bug 186084 has been marked as a duplicate of this bug. ***
*** Bug 229719 has been marked as a duplicate of this bug. ***
The document contents replacement should be done in AWT. I remember we tried it a long ago in RP but there were deadlocks. What we should attempt is to pre-load the contents of the file being reloaded outside of AWT into a String and then insert it in AWT. I've already implemented a similar approach in saveDocument() for file's saving in the past.
Issue #228991 now reposts document loading during the reload into Document Processing RP thread. *** This bug has been marked as a duplicate of bug 228991 ***