java.io.IOException

Corrupt GZIP trailer

Samebug tips1

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.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web257

  • Corrupt GZIP trailer
  • via Oracle Community by 843841, 1 year ago
    Corrupt GZIP trailer
  • Corrupt GZIP trailer
  • Stack trace

    • java.io.IOException: Corrupt GZIP trailer at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:182) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:94) 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) at org.hsqldb.scriptio.ScriptReaderText.readLoggedStatement(ScriptReaderText.java:186) at org.hsqldb.scriptio.ScriptReaderDecode.readLoggedStatement(ScriptReaderDecode.java:91) at org.hsqldb.scriptio.ScriptReaderText.readExistingData(ScriptReaderText.java:146) at org.hsqldb.scriptio.ScriptReaderBase.readAll(ScriptReaderBase.java:66) at org.hsqldb.persist.Log.processScript(Log.java:786) at org.hsqldb.persist.Log.open(Log.java:223) at org.hsqldb.persist.Logger.openPersistence(Logger.java:233) at org.hsqldb.Database.reopen(Database.java:265) at org.hsqldb.Database.open(Database.java:237) at org.hsqldb.DatabaseManager.getDatabase(DatabaseManager.java:225) at org.hsqldb.DatabaseManager.getDatabase(DatabaseManager.java:177) at org.hsqldb.server.Server.openDatabases(Server.java:1798) at org.hsqldb.server.Server.run(Server.java:2131) at org.hsqldb.server.Server.access$000(Server.java:243) at org.hsqldb.server.Server$ServerThread.run(Server.java:313)

    Write tip

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

    Users with the same issue

    Once, 2 weeks ago
    Once, 1 month ago
    Once, 2 months ago
    22 times, 5 months ago
    Once, 6 months ago
    16 more bugmates