java.io.IOException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

When you iterate over the lines of a scala.io.Source with source.getLines, make sure you do not close the source until you processed the iterator.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • java.io.IOException: Corrupt GZIP trailer
    via by Romeo Ranjan,
  • GZIPInputStream - Corrupt GZIP Trailer
    via Stack Overflow by Paul Richter
    ,
  • GitHub comment 32#16642837
    via GitHub by shenfeng
    ,
  • Processing 1.0 _ALPHA_ - corrupt gzip trailer
    via by Unknown author,
    • java.io.IOException: Corrupt GZIP trailer at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:175) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:89) at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:411) at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:453) at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:183) 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) at nci.cgf.annotator.process.FileCompresser.generateFiles(FileCompresser.java:33) at nci.cgf.annotator.process.FileCompresser.main(FileCompresser.java:109)

    Users with the same issue

    rp
    1 times, last one,
    zbalint
    1 times, last one,
    gamebusterz
    22 times, last one,
    harshg
    1 times, last one,
    Unknown visitor1 times, last one,
    15 more bugmates