TrueZIP
  1. TrueZIP
  2. TRUEZIP-329

IllegalArgumentException in IntervalReadOnlyFile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: TrueZIP 7.5.5, TrueZIP 7.7.3
    • Fix Version/s: TrueZIP 7.7.4
    • Component/s: TrueZIP Driver ZIP
    • Labels:
      None

      Description

      Hi,

      Got this exception from a user, it looks like the program tried to open an invalid zip file:

      program.name=DocFetcher
      program.version=1.1.7
      program.build=20130408-2002
      program.portable=true
      java.runtime.name=Java(TM) SE Runtime Environment
      java.runtime.version=1.7.0_25-b17
      java.version=1.7.0_25
      sun.arch.data.model=64
      os.arch=amd64
      os.name=Windows 7
      os.version=6.1
      user.language=cs
      java.lang.IllegalArgumentException
      at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:109)
      at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:81)
      at de.schlichtherle.truezip.zip.RawZipFile$EntryReadOnlyFile.(RawZipFile.java:1122)
      at de.schlichtherle.truezip.zip.RawZipFile.getInputStream(RawZipFile.java:993)
      at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop.access$100(ZipInputShop.java:30)
      at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop$1Input.newInputStream(ZipInputShop.java:135)
      at de.schlichtherle.truezip.socket.DisconnectingInputShop$Input.newInputStream(DisconnectingInputShop.java:168)
      at de.schlichtherle.truezip.socket.LockInputShop$1Input.newInputStream(LockInputShop.java:147)
      at de.schlichtherle.truezip.socket.ClutchInputSocket.newInputStream(ClutchInputSocket.java:75)
      at de.schlichtherle.truezip.fs.archive.FsTargetArchiveController$1Input.newInputStream(FsTargetArchiveController.java:321)
      at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63)
      at de.schlichtherle.truezip.fs.archive.FsContextController$Input.newInputStream(FsContextController.java:304)
      at de.schlichtherle.truezip.fs.FsResourceController$Input.newInputStream(FsResourceController.java:257)
      at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63)
      at de.schlichtherle.truezip.fs.FsSyncController$Input.newInputStream(FsSyncController.java:412)
      at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:494)
      at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:491)
      at de.schlichtherle.truezip.fs.FsLockController.locked(FsLockController.java:364)
      at de.schlichtherle.truezip.fs.FsLockController.writeLocked(FsLockController.java:303)
      at de.schlichtherle.truezip.fs.FsLockController$Input.newInputStream(FsLockController.java:499)
      at de.schlichtherle.truezip.fs.FsFinalizeController$Input.newInputStream(FsFinalizeController.java:176)
      at de.schlichtherle.truezip.fs.FsFalsePositiveController$1Input$NewInputStream.call(FsFalsePositiveController.java:363)
      at de.schlichtherle.truezip.fs.FsFalsePositiveController$1Input$NewInputStream.call(FsFalsePositiveController.java:356)
      at de.schlichtherle.truezip.fs.FsFalsePositiveController$TryChild.call(FsFalsePositiveController.java:536)
      at de.schlichtherle.truezip.fs.FsFalsePositiveController.call(FsFalsePositiveController.java:104)
      at de.schlichtherle.truezip.fs.FsFalsePositiveController$1Input.newInputStream(FsFalsePositiveController.java:353)
      at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:104)
      at de.schlichtherle.truezip.file.TFileInputStream.(TFileInputStream.java:95)
      at net.sourceforge.docfetcher.model.parse.ParseService.doParse(ParseService.java:260)
      at net.sourceforge.docfetcher.model.parse.ParseService.parse(ParseService.java:232)
      at net.sourceforge.docfetcher.model.index.file.FileContext.index(FileContext.java:146)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleFile(FileIndex.java:288)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:123)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.access$200(FileIndex.java:51)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleDir(FileIndex.java:386)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:144)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.switchSolidToArchive(FileIndex.java:806)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitSolidArchive(FileIndex.java:571)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.switchDirZipToSolid(FileIndex.java:491)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.access$000(FileIndex.java:51)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleFile(FileIndex.java:280)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:123)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.access$200(FileIndex.java:51)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleDir(FileIndex.java:386)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:144)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.access$200(FileIndex.java:51)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleDir(FileIndex.java:386)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:144)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
      at net.sourceforge.docfetcher.model.index.file.FileIndex.doUpdate(FileIndex.java:159)
      at net.sourceforge.docfetcher.model.TreeIndex.update(TreeIndex.java:142)
      at net.sourceforge.docfetcher.model.index.Task.update(Task.java:98)
      at net.sourceforge.docfetcher.model.index.IndexingQueue.threadLoop(IndexingQueue.java:161)
      at net.sourceforge.docfetcher.model.index.IndexingQueue.access$100(IndexingQueue.java:44)
      at net.sourceforge.docfetcher.model.index.IndexingQueue$2.run(IndexingQueue.java:116)

      Best regards
      <= Quang

        Activity

        Hide
        Christian Schlichtherle added a comment -

        Please upgrade to the latest version. There have been changes meanwhile which should resolve this issue. If not, please reopen this ticket.

        Show
        Christian Schlichtherle added a comment - Please upgrade to the latest version. There have been changes meanwhile which should resolve this issue. If not, please reopen this ticket.
        Hide
        qforce added a comment -

        Understood, thanks!

        Show
        qforce added a comment - Understood, thanks!
        Hide
        qforce added a comment -

        Unfortunately, the bug is still present with TrueZIP 7.7.3:

        program.name=DocFetcher
        program.version=1.1.8
        program.build=20130821-2316
        program.portable=false
        java.runtime.name=Java(TM) SE Runtime Environment
        java.runtime.version=1.7.0_11-b21
        java.version=1.7.0_11
        sun.arch.data.model=32
        os.arch=x86
        os.name=Windows 7
        os.version=6.1
        user.language=de
        java.lang.IllegalArgumentException
        at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:109)
        at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:81)
        at de.schlichtherle.truezip.zip.RawZipFile$EntryReadOnlyFile.(RawZipFile.java:1124)
        at de.schlichtherle.truezip.zip.RawZipFile.getInputStream(RawZipFile.java:995)
        at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop.access$100(ZipInputShop.java:29)
        at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop$1Input.newInputStream(ZipInputShop.java:134)
        at de.schlichtherle.truezip.socket.DisconnectingInputShop$Input.newInputStream(DisconnectingInputShop.java:165)
        at de.schlichtherle.truezip.socket.LockInputShop$1Input.newInputStream(LockInputShop.java:147)
        at de.schlichtherle.truezip.fs.FsTargetArchiveController$1Input.newInputStream(FsTargetArchiveController.java:299)
        at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63)
        at de.schlichtherle.truezip.fs.FsContextController$Input.newInputStream(FsContextController.java:273)
        at de.schlichtherle.truezip.fs.FsResourceController$Input.newInputStream(FsResourceController.java:249)
        at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63)
        at de.schlichtherle.truezip.fs.FsSyncController$Input.newInputStream(FsSyncController.java:397)
        at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:455)
        at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:452)
        at de.schlichtherle.truezip.fs.FsLockController.locked(FsLockController.java:328)
        at de.schlichtherle.truezip.fs.FsLockController.writeLocked(FsLockController.java:268)
        at de.schlichtherle.truezip.fs.FsLockController$Input.newInputStream(FsLockController.java:459)
        at de.schlichtherle.truezip.fs.FsFinalizeController$Input.newInputStream(FsFinalizeController.java:177)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input$NewInputStream.call(FsFalsePositiveArchiveController.java:333)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input$NewInputStream.call(FsFalsePositiveArchiveController.java:326)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$TryChild.call(FsFalsePositiveArchiveController.java:507)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController.call(FsFalsePositiveArchiveController.java:104)
        at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input.newInputStream(FsFalsePositiveArchiveController.java:323)
        at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:104)
        at de.schlichtherle.truezip.file.TFileInputStream.(TFileInputStream.java:95)
        at net.sourceforge.docfetcher.model.parse.ParseService.doParse(ParseService.java:260)
        at net.sourceforge.docfetcher.model.parse.ParseService.parse(ParseService.java:232)
        at net.sourceforge.docfetcher.model.index.file.FileContext.index(FileContext.java:146)
        at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleHtmlPair(FileIndex.java:324)
        at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:169)
        at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
        at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
        at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275)
        at net.sourceforge.docfetcher.model.index.file.FileIndex.access$200(FileIndex.java:51)
        at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleDir(FileIndex.java:386)
        at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:144)
        at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
        at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57)
        ...

        Show
        qforce added a comment - Unfortunately, the bug is still present with TrueZIP 7.7.3: program.name=DocFetcher program.version=1.1.8 program.build=20130821-2316 program.portable=false java.runtime.name=Java(TM) SE Runtime Environment java.runtime.version=1.7.0_11-b21 java.version=1.7.0_11 sun.arch.data.model=32 os.arch=x86 os.name=Windows 7 os.version=6.1 user.language=de java.lang.IllegalArgumentException at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:109) at de.schlichtherle.truezip.rof.IntervalReadOnlyFile.(IntervalReadOnlyFile.java:81) at de.schlichtherle.truezip.zip.RawZipFile$EntryReadOnlyFile.(RawZipFile.java:1124) at de.schlichtherle.truezip.zip.RawZipFile.getInputStream(RawZipFile.java:995) at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop.access$100(ZipInputShop.java:29) at de.schlichtherle.truezip.fs.archive.zip.ZipInputShop$1Input.newInputStream(ZipInputShop.java:134) at de.schlichtherle.truezip.socket.DisconnectingInputShop$Input.newInputStream(DisconnectingInputShop.java:165) at de.schlichtherle.truezip.socket.LockInputShop$1Input.newInputStream(LockInputShop.java:147) at de.schlichtherle.truezip.fs.FsTargetArchiveController$1Input.newInputStream(FsTargetArchiveController.java:299) at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63) at de.schlichtherle.truezip.fs.FsContextController$Input.newInputStream(FsContextController.java:273) at de.schlichtherle.truezip.fs.FsResourceController$Input.newInputStream(FsResourceController.java:249) at de.schlichtherle.truezip.socket.DelegatingInputSocket.newInputStream(DelegatingInputSocket.java:63) at de.schlichtherle.truezip.fs.FsSyncController$Input.newInputStream(FsSyncController.java:397) at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:455) at de.schlichtherle.truezip.fs.FsLockController$Input$1NewInputStream.call(FsLockController.java:452) at de.schlichtherle.truezip.fs.FsLockController.locked(FsLockController.java:328) at de.schlichtherle.truezip.fs.FsLockController.writeLocked(FsLockController.java:268) at de.schlichtherle.truezip.fs.FsLockController$Input.newInputStream(FsLockController.java:459) at de.schlichtherle.truezip.fs.FsFinalizeController$Input.newInputStream(FsFinalizeController.java:177) at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input$NewInputStream.call(FsFalsePositiveArchiveController.java:333) at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input$NewInputStream.call(FsFalsePositiveArchiveController.java:326) at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$TryChild.call(FsFalsePositiveArchiveController.java:507) at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController.call(FsFalsePositiveArchiveController.java:104) at de.schlichtherle.truezip.fs.FsFalsePositiveArchiveController$1Input.newInputStream(FsFalsePositiveArchiveController.java:323) at de.schlichtherle.truezip.file.TFileInputStream.newInputStream(TFileInputStream.java:104) at de.schlichtherle.truezip.file.TFileInputStream.(TFileInputStream.java:95) at net.sourceforge.docfetcher.model.parse.ParseService.doParse(ParseService.java:260) at net.sourceforge.docfetcher.model.parse.ParseService.parse(ParseService.java:232) at net.sourceforge.docfetcher.model.index.file.FileContext.index(FileContext.java:146) at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleHtmlPair(FileIndex.java:324) at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:169) at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56) at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57) at net.sourceforge.docfetcher.model.index.file.FileIndex.visitDirOrZip(FileIndex.java:275) at net.sourceforge.docfetcher.model.index.file.FileIndex.access$200(FileIndex.java:51) at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleDir(FileIndex.java:386) at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:144) at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56) at net.sourceforge.docfetcher.util.Stoppable.run(Stoppable.java:57) ...
        Hide
        qforce added a comment -

        Hi Christian, still no time to look into this issue?

        Show
        qforce added a comment - Hi Christian, still no time to look into this issue?
        Hide
        Christian Schlichtherle added a comment -

        I'm sorry, but I'm still terribly busy with other things. I'll look into it ASAP.

        Show
        Christian Schlichtherle added a comment - I'm sorry, but I'm still terribly busy with other things. I'll look into it ASAP.
        Hide
        qforce added a comment -

        No need to hurry. It just seemed as if you had forgotten about it, so I bumped it up.

        Show
        qforce added a comment - No need to hurry. It just seemed as if you had forgotten about it, so I bumped it up.

          People

          • Assignee:
            Christian Schlichtherle
            Reporter:
            qforce
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: