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 253447

Summary: java.io.IOException: inputstream is closed
Product: cnd Reporter: baca07
Component: executionAssignee: ilia
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 218502
Attachments: stacktrace

Description baca07 2015-07-13 20:35:43 UTC
This bug was originally marked as duplicate of bug 225479, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
baca07: opening remote terminal to ssh host




Stacktrace: 
java.io.IOException: inputstream is closed
   at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2667)
   at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2691)
   at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:257)
   at com.jcraft.jsch.Channel.connect(Channel.java:152)
   at com.jcraft.jsch.Channel.connect(Channel.java:145)
   at org.netbeans.modules.nativeexecution.api.util.HelperUtility.getPath(HelperUtility.java:169)
Comment 1 baca07 2015-07-13 20:35:45 UTC
Created attachment 154598 [details]
stacktrace
Comment 2 ilia 2017-07-04 14:51:34 UTC
Can't reproduce.
This exception may occur if host disconnected during jsch channel initialization.

I removed Exceptions.printStackTrace and rethrow exception in UnixHostInfoProvider.getRemoteUserEnvironment.
It's safe: exception is logged to console, method is private and the only entry point is FetchHostInfoTask.compute.
FetchInfoTask will return null in that case and will let clients decide what to do.
Comment 3 Quality Engineering 2017-07-20 17:51:49 UTC
Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1105288da95e
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed #253447 - java.io.IOException: inputstream is closed