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 201012150001) VM: Java HotSpot(TM) 64-Bit Server VM, 17.0-b17, Java(TM) SE Runtime Environment, 1.6.0_21-b07 OS: Windows 7 User Comments: apepin: Steps to reproduce: - create "remote" project using smart secure copy - open any source file to edit - imitate network disconnection (move laptop to sleep mode then wake it up) - continue editing Result: Exception appears. It apears on and on even after re-connection to remote host Stacktrace: java.io.IOException: session is down at org.netbeans.modules.remote.impl.fs.DirectoryReader.readDirectory(DirectoryReader.java:233) at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorageImpl(RemoteDirectory.java:321) at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getDirectoryStorage(RemoteDirectory.java:223) at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:151) at org.netbeans.modules.remote.impl.fs.RemoteFileSystem.findResource(RemoteFileSystem.java:225) at org.netbeans.modules.remote.impl.fs.RemoteDirectory.getFileObject(RemoteDirectory.java:142)
Created attachment 104159 [details] stacktrace
Created attachment 104170 [details] stacktrace disconnected from VPN, switched from localhost to remote host
Created attachment 104171 [details] stacktrace
Created attachment 104172 [details] stacktrace closed VPN connection
Created attachment 104326 [details] One more stack (see comment) Fixing this I faced the following problem. When connect is broken during execution, ConnectionManager.isConnected() still returns true; and I have no way to get the reason of failure. I get just IOException. Here is the stack attached. I guess the key point is in JschSupport.java:161 (method ChannelStreams start()). It gets JschException "channel is not opened", but rethrows just IOException. Probably worth throwing ConnectException in this case?
Integrated into 'main-golden', will be available in build *201012230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/6235e6671870 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: partial fix for #193501 - java.io.IOException: session is down
http://hg.netbeans.org/cnd-main/rev/022078b13747
Integrated into 'main-golden', will be available in build *201012290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/022078b13747 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: the 2-nd part of the fix for #193501 - java.io.IOException: session is down