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 3DF5071D7 for ; Fri, 25 Nov 2011 04:29:06 +0000 (UTC) Received: (qmail 45874 invoked by uid 500); 25 Nov 2011 04:29:03 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 45731 invoked by uid 500); 25 Nov 2011 04:29:03 -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 45721 invoked by uid 99); 25 Nov 2011 04:29:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2011 04:29:01 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,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; Fri, 25 Nov 2011 04:29:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id ED3479DC88 for ; Fri, 25 Nov 2011 04:28:39 +0000 (UTC) Date: Fri, 25 Nov 2011 04:28:39 +0000 (UTC) From: "Gary D. Gregory (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <284398027.10956.1322195319973.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <390289387.10645.1322170960514.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (VFS-394) java.io.EOFException: Unexpected end of ZLIB input stream 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-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13156981#comment-13156981 ] Gary D. Gregory commented on VFS-394: ------------------------------------- Can you test this with the trunk code or at least 2.0? Can you attach your data file? Thank you. -- Posted from Bugbox for iPhone > java.io.EOFException: Unexpected end of ZLIB input stream > --------------------------------------------------------- > > Key: VFS-394 > URL: https://issues.apache.org/jira/browse/VFS-394 > Project: Commons VFS > Issue Type: Bug > Affects Versions: 1.0 > Environment: windows > Reporter: Saurabh > Labels: vfs > Fix For: 1.0 > > Original Estimate: 2h > Remaining Estimate: 2h > > am trying to read one line at a time using bufferedReader like following > {code} > final FileObject fileObject = new OnCallRefreshFileObject(VFS.getManager().resolveFile("Myfilepath")); > BufferedReader br = new BufferedReader (new InputStreamReader(fileObject.getContent().getInputStream(), "utf-8")); > br.readLine(); > {code} > and I am getting the following stack trace on calling br.readline().I am reading a zipped csv file. > {code} > java.io.EOFException: Unexpected end of ZLIB input stream > at java.util.zip.ZipFile$1.fill(ZipFile.java:240) > at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) > at java.io.BufferedInputStream.read(BufferedInputStream.java:317) > at org.apache.commons.vfs.util.MonitorInputStream.read(MonitorInputStream.java:74) > at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) > at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306) > at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158) > at java.io.InputStreamReader.read(InputStreamReader.java:167) > at java.io.BufferedReader.fill(BufferedReader.java:136) > at java.io.BufferedReader.readLine(BufferedReader.java:299) > at java.io.BufferedReader.readLine(BufferedReader.java:362) > {code} -- 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