FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Java.io.IOException: Truncated Zip file

    Scheduled Pinned Locked Moved I need help
    9 Posts 3 Posters 447 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      DasArchitect
      last edited by

      Trying to download a mod for FAF and this error constantly pops up for it exclusively:

      java.util.concurrent.CompletionException: java.io.IOException: Truncated ZIP file
      at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
      at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
      at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:777)
      at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
      at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2152)
      at com.faforever.client.task.CompletableTask.lambda$new$1(CompletableTask.java:18)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:234)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.concurrent.EventHelper.fireEvent(EventHelper.java:219)
      at javafx.concurrent.Task.fireEvent(Task.java:1358)
      at javafx.concurrent.Task.setState(Task.java:709)
      at javafx.concurrent.Task$TaskCallable.lambda$call$2(Task.java:1455)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
      at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
      at com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: java.io.IOException: Truncated ZIP file
      at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.readDeflated(ZipArchiveInputStream.java:590)
      at org.apache.commons.compress.archivers.zip.ZipArchiveInputStream.read(ZipArchiveInputStream.java:488)
      at java.base/java.io.InputStream.read(InputStream.java:218)
      at com.faforever.commons.io.ByteCopier.copy(ByteCopier.java:65)
      at com.faforever.commons.io.Unzipper.unzip(Unzipper.java:67)
      at com.faforever.client.mod.InstallModTask.extractMod(InstallModTask.java:100)
      at com.faforever.client.mod.InstallModTask.call(InstallModTask.java:72)
      at com.faforever.client.mod.InstallModTask.call(InstallModTask.java:30)
      at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      ... 1 more

      Can someone translate this into something that can be a solution to the problem or direct me to a thread that has had this same problem and found a solution?

      1 Reply Last reply Reply Quote 0
      • S Offline
        Sheikah
        last edited by

        Looks like the mod got corrupted. Which mod is it?

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DasArchitect @Sheikah
          last edited by

          @sheikah Extremewars by Team: Asdrubaelvect (version 14 uploaded 1/18/2021).

          I've already uninstalled/reinstalled the mod multiple times and it replicates this error without fail.

          Any other suggestions?

          1 Reply Last reply Reply Quote 0
          • D Offline
            DasArchitect
            last edited by

            so it seems that the mods are downloading to my Onedrive folder and i do not know how to stop that. Thoughts?

            1 Reply Last reply Reply Quote 0
            • S Offline
              Sheikah
              last edited by

              You have to turn on the vault fallback location in the client settings

              D 1 Reply Last reply Reply Quote 0
              • S Offline
                Sheikah
                last edited by

                Yes the mod looks fine on the server so I suspect anti virus or something is stopping the download on your machine

                1 Reply Last reply Reply Quote 0
                • D Offline
                  DasArchitect @Sheikah
                  last edited by

                  @sheikah Client settings in FAF or in Onedrive? If FAF, how do I do that?

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Sheikah
                    last edited by

                    In the client. Click on the three bars at the top right and there will be a vault fallback option

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      roscopeco2000
                      last edited by

                      i have the same problem any help appreciated

                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post