You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Akhil Surapuram (Jira)" <ji...@apache.org> on 2020/06/15 08:08:00 UTC

[jira] [Commented] (VFS-575) org.apache.commons.vfs2.FileSystemException: Could not close the output stream

    [ https://issues.apache.org/jira/browse/VFS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17135573#comment-17135573 ] 

Akhil Surapuram commented on VFS-575:
-------------------------------------

Hi [~b.eckenfels] , I am facing this issue in version 2.4 .
for this issue fix version is mentioned as None. is this fixed or still open??

> org.apache.commons.vfs2.FileSystemException: Could not close the output stream
> ------------------------------------------------------------------------------
>
>                 Key: VFS-575
>                 URL: https://issues.apache.org/jira/browse/VFS-575
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Linux, Weblogic
>            Reporter: Arajit
>            Priority: Major
>
> Hi Team,
> I am using VFS 2.0 for implementing SFTP for my application. I have a single Thread which actually picks up the file and do SFTP. 98% of the time it works. But I have observed there are few cases where SFTP is getting failed with below exception..
> Caused by: org.apache.commons.vfs2.FileSystemException: Could not close the output stream for file "sftp://*******************/Test.csv".
> 	[null,null]at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:694)
> 	[null,null]at org.apache.commons.vfs2.FileUtil.copyContent(FileUtil.java:118)
> 	[null,null]at org.apache.commons.vfs2.provider.AbstractFileObject.copyFrom(AbstractFileObject.java:1053)
> 	[null,null]... 3 more
> Caused by: java.io.IOException: inputstream is closed
> 	[null,null]at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java:2884)
> 	[null,null]at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java:2908)
> 	[null,null]at com.jcraft.jsch.ChannelSftp.checkStatus(ChannelSftp.java:2446)
> 	[null,null]at com.jcraft.jsch.ChannelSftp._sendCLOSE(ChannelSftp.java:2465)
> 	[null,null]at com.jcraft.jsch.ChannelSftp.access$400(ChannelSftp.java:36)
> 	[null,null]at com.jcraft.jsch.ChannelSftp$1.close(ChannelSftp.java:854)
> 	[null,null]at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
> 	[null,null]at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:56)
> 	[null,null]at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
> 	[null,null]at org.apache.commons.vfs2.util.MonitorOutputStream.close(MonitorOutputStream.java:56)
> 	[null,null]at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close(DefaultFileContent.java:690)
> 	[null,null]... 5 more



--
This message was sent by Atlassian Jira
(v8.3.4#803005)