when processing large (~4gb) input files in gzip format via java.util.zip.GZIPInputStream, late in processing "java.io.IOException: Corrupt GZIP trailer" is thrown --------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JIBX-463 URL: https://jira.codehaus.org/browse/JIBX-463 Project: JiBX Issue Type: Bug Affects Versions: JiBX 1.2.3 Environment: AIX Reporter: Maxim Volgin Priority: Blocker when processing large (~4gb) input files in gzip format fed to JiBX via java.util.zip.GZIPInputStream, almost at the very end of processing "java.io.IOException: Corrupt GZIP trailer" is thrown code: java.util.zip.GZIPInputStream inputStream; unmarshallingContext.unmarshalDocument(inputStream, null); error: org.jibx.runtime.JiBXException: Error accessing document at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.nextToken(XMLPullReaderFactory.java:279) at org.jibx.runtime.impl.UnmarshallingContext.advance(UnmarshallingContext.java:260) at org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(UnmarshallingContext.java:726) ... at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2757) at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2900) ... 2 more Caused by: java.io.IOException: Corrupt GZIP trailer at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:199) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:113) at org.jibx.runtime.impl.InByteBuffer.fillBuffer(InByteBuffer.java:112) at org.jibx.runtime.impl.InByteBuffer.require(InByteBuffer.java:206) at org.jibx.runtime.impl.InputStreamWrapper.fillBuffer(InputStreamWrapper.java:114) at org.jibx.runtime.impl.InputStreamWrapper.access$700(InputStreamWrapper.java:45) at org.jibx.runtime.impl.InputStreamWrapper$WrappedStreamUTF8Reader.read(InputStreamWrapper.java:451) at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2972) at org.xmlpull.mxp1.MXParser.more(MXParser.java:3026) at org.xmlpull.mxp1.MXParser.parseStartTag(MXParser.java:1738) at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1259) at org.xmlpull.mxp1.MXParser.nextToken(MXParser.java:1100) at org.jibx.runtime.impl.XMLPullReaderFactory$XMLPullReader.nextToken(XMLPullReaderFactory.java:277) ... 16 more N.B. 1) it does not occur in JiBX 1.2.2 (or earlier versions), tested with exactly the same file on exactly the same environment 2) it occurs only with large enough input files (~4gb in gzip format) it looks like it is caused by migration from "stax-api-1.0.1.jar" & "wstx-asl-3.2.1.jar" in JiBX 1.2.2 to "joda-time-1.6.2.jar" & "xpp3-1.1.3.4.O.jar" in JiBX 1.2.3 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs