Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CEC21C9C8 for ; Mon, 14 May 2012 18:32:18 +0000 (UTC) Received: (qmail 82010 invoked by uid 500); 14 May 2012 18:32:18 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 81886 invoked by uid 500); 14 May 2012 18:32:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 81869 invoked by uid 99); 14 May 2012 18:32:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 18:32:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2012 18:32:15 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 09A97130F6 for ; Mon, 14 May 2012 18:31:54 +0000 (UTC) Date: Mon, 14 May 2012 18:31:54 +0000 (UTC) From: "Gary D. Gregory (JIRA)" To: issues@commons.apache.org Message-ID: <609542213.1264.1337020314055.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (VFS-200) sftp fails when files are very large MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13274829#comment-13274829 ] Gary D. Gregory commented on VFS-200: ------------------------------------- Yes, this was addressed by [VFS-410][SFTP]: SftpFileObject getInputStream(long) reads the whole file into memory. It is in SVN as of revision 1328346. > sftp fails when files are very large > ------------------------------------ > > Key: VFS-200 > URL: https://issues.apache.org/jira/browse/VFS-200 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 1.0 > Environment: Java EE 5 > Reporter: Michael Manion > Priority: Blocker > Fix For: 2.1 > > > We only get this error with very large files. We are using the latest release of JSch (0.1.37). > org.apache.commons.vfs.FileSystemException: Could not read file "sftp://[useridRemoved]@[ipAddrRemoved]/returned/ccp_allusers.20080219010439.01.noe.clean_C_.txt". > at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1052) > at org.apache.commons.vfs.provider.DefaultFileContent.getInputStream(DefaultFileContent.java:312) > at com.ibm.account.batch.jobs.gecs.SecureFTPHelper.retrieveGECSResultsFiles(SecureFTPHelper.java:155) > Caused by: 4: > at com.jcraft.jsch.ChannelSftp._get(ChannelSftp.java(Compiled Code)) > at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:855) > at com.jcraft.jsch.ChannelSftp.get(ChannelSftp.java:834) > at org.apache.commons.vfs.provider.sftp.SftpFileObject.doGetInputStream(SftpFileObject.java:362) > at org.apache.commons.vfs.provider.AbstractFileObject.getInputStream(AbstractFileObject.java:1048) > ... 14 more > Caused by: java.io.IOException: inputstream is closed > at com.jcraft.jsch.ChannelSftp.fill(ChannelSftp.java(Inlined Compiled Code)) > at com.jcraft.jsch.ChannelSftp.header(ChannelSftp.java(Compiled Code)) > ... 19 more -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira