Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-358

Offset is larger than block size in IWA dialect of FramedSnappyCompressorInputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.12
    • 1.14
    • Compressors
    • None

    Description

      I finally was able to run the FramedSnappyCompressorInputStreamon a larger number of .iwa files. I got the following on two files:

      java.io.IOException: Offset is larger than block size
      	at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.expandCopy(SnappyCompressorInputStream.java:341)
      	at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.fill(SnappyCompressorInputStream.java:212)
      	at org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream.read(SnappyCompressorInputStream.java:134)
      	at org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream.readOnce(FramedSnappyCompressorInputStream.java:166)
      	at org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream.read(FramedSnappyCompressorInputStream.java:122)
      	at java.io.InputStream.read(InputStream.java:101)
      	at java.nio.file.Files.copy(Files.java:2908)
      	at java.nio.file.Files.copy(Files.java:3027)
      

      No good deed goes unpunished... Thank you, again!

      Attachments

        1. DocumentStyleSheet_commons_unsnapped.iwa
          39 kB
          Tim Allison
        2. DocumentStyleSheet_fromZipStream.iwa
          35 kB
          Tim Allison
        3. DocumentStylesheet_iwana_unsnapped.iwa
          214 kB
          Tim Allison
        4. DocumentStylesheet_uncompressed.iwa
          195 kB
          Tim Allison
        5. DocumentStylesheet.iwa
          32 kB
          Tim Allison
        6. testNumbersNew.numbers
          175 kB
          Tim Allison

        Activity

          People

            Unassigned Unassigned
            tallison Tim Allison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: