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 193501 - java.io.IOException: session is down
Summary: java.io.IOException: session is down
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 15:07 UTC by Alexander Pepin
Modified: 2010-12-29 07:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175075


Attachments
stacktrace (6.22 KB, text/plain)
2010-12-16 15:07 UTC, Alexander Pepin
Details
stacktrace (3.39 KB, text/plain)
2010-12-16 21:29 UTC, Vladimir Voskresensky
Details
stacktrace (3.96 KB, text/plain)
2010-12-16 21:32 UTC, Vladimir Voskresensky
Details
stacktrace (3.01 KB, text/plain)
2010-12-16 21:35 UTC, Vladimir Voskresensky
Details
One more stack (see comment) (3.85 KB, text/plain)
2010-12-20 21:02 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2010-12-16 15:07:07 UTC
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)
Comment 1 Alexander Pepin 2010-12-16 15:07:11 UTC
Created attachment 104159 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2010-12-16 21:29:16 UTC
Created attachment 104170 [details]
stacktrace

disconnected from VPN, switched from localhost to remote host
Comment 3 Vladimir Voskresensky 2010-12-16 21:32:15 UTC
Created attachment 104171 [details]
stacktrace
Comment 4 Vladimir Voskresensky 2010-12-16 21:35:15 UTC
Created attachment 104172 [details]
stacktrace

closed VPN connection
Comment 5 Vladimir Kvashin 2010-12-20 21:02:58 UTC
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?
Comment 6 Quality Engineering 2010-12-23 07:05:05 UTC
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
Comment 7 Vladimir Kvashin 2010-12-23 14:48:52 UTC
http://hg.netbeans.org/cnd-main/rev/022078b13747
Comment 8 Quality Engineering 2010-12-29 07:06:15 UTC
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