Possible Fix for Download Problems

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord
Status
Not open for further replies.

randomer679

New Member
Jul 29, 2019
1
0
0
Hi I hope it's OK to post this here like this, anyway. The launcher works fine for me EXCEPT when downloading mods, maps etc. I've seen that many users have been having problems with downloading apparently. For me the list populates but attempting to launch will not download anything. But running it from command line using...
Code:
java -Djava.net.preferIPv4Stack=true -jar FTB_Launcher.jar
...fixes the downloading. But it breaks launching temporarily. Minecraft will fail to launch with an error appearing in the FML log like so:
Code:
2012-12-12 02:33:10 [INFO] [ForgeModLoader] Forge Mod Loader version 4.2.18.433 for Minecraft 1.4.2 loading
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] Discovering coremods
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] Found a candidate coremod CodeChickenCore 0.6.6.jar
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] Loading coremod CodeChickenCore 0.6.6.jar
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] Loaded coremod CodeChickenCore 0.6.6.jar
2012-12-12 02:33:10 [FINEST] [ForgeModLoader] Found a candidate coremod NotEnoughItems 1.4.1.2.jar
2012-12-12 02:33:11 [FINEST] [ForgeModLoader] Loading coremod NotEnoughItems 1.4.1.2.jar
2012-12-12 02:33:11 [FINEST] [ForgeModLoader] Loaded coremod NotEnoughItems 1.4.1.2.jar
2012-12-12 02:33:11 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir
 
2012-12-12 02:33:11 [FINEST] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-12-12 02:33:11 [INFO] [ForgeModLoader] Downloading file http://files.minecraftforge.net/fmllibs/guava-12.0.1.jar
2012-12-12 02:33:19 [FINEST] [ForgeModLoader] Download complete
2012-12-12 02:33:19 [INFO] [ForgeModLoader] Download complete
2012-12-12 02:33:19 [FINEST] [ForgeModLoader] Library file guava-12.0.1.jar was downloaded and verified successfully
 
2012-12-12 02:33:19 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir
 
2012-12-12 02:33:32 [INFO] [STDERR] java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/google/common/collect/Multimap
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:175)
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:242)
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:212)
2012-12-12 02:33:32 [INFO] [STDERR]    at net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:28)
2012-12-12 02:33:32 [INFO] [STDERR]    at net.minecraft.Launcher.init(Launcher.java:84)
2012-12-12 02:33:32 [INFO] [STDERR]    at net.ftb.mclauncher.MinecraftFrame.start(MinecraftFrame.java:54)
2012-12-12 02:33:32 [INFO] [STDERR]    at net.ftb.mclauncher.MinecraftLauncher.main(MinecraftLauncher.java:207)
2012-12-12 02:33:32 [INFO] [STDERR] Caused by: java.lang.NoClassDefFoundError: com/google/common/collect/Multimap
2012-12-12 02:33:32 [INFO] [STDERR]    at java.lang.Class.getDeclaredConstructors0(Native Method)
2012-12-12 02:33:32 [INFO] [STDERR]    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
2012-12-12 02:33:32 [INFO] [STDERR]    at java.lang.Class.getConstructor0(Unknown Source)
2012-12-12 02:33:32 [INFO] [STDERR]    at java.lang.Class.newInstance0(Unknown Source)
2012-12-12 02:33:32 [INFO] [STDERR]    at java.lang.Class.newInstance(Unknown Source)
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.RelaunchClassLoader.registerTransformer(RelaunchClassLoader.java:64)
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.RelaunchLibraryManager.handleLaunch(RelaunchLibraryManager.java:237)
2012-12-12 02:33:32 [INFO] [STDERR]    at cpw.mods.fml.relauncher.FMLRelauncher.setupHome(FMLRelauncher.java:155)
2012-12-12 02:33:32 [INFO] [STDERR]    ... 6 more
Closing the FTB Launcher then opening it normally then fixes launching, so I assume this is because I'm changing the working directory when I launch it from the command line like that? Either way is there anyway you could add this option into the launcher?
Great work guys btw! :)

Further info:
I found the problem using Wireshark. The download would hang after about 17.7kb on every download in the launcher so I thought that was odd and used Wireshark to check for any weird packets etc. I found that after a very short while I would get a full window packet followed by a zero window packet and then a keep-alive packet. It would then continue to slowly alternate between zero window and keep-alive packets.
I used Google and found this website: https://forums.oracle.com/forums/thread.jspa?threadID=2309363
Scrolling down to an answer by gimbal2 it suggests using that command line option because Java 7 prefers IPv6 over IPv4 and that can cause some network setups to have problems. Mine is one of them :p . But adding that option forces Java to use IPv4 fixing the problem for people like me. So if there is any way to add the option into the launcher (obviously as an optional tick box or something) then it would be extremely helpful! Thanks for reading :) .
 
Status
Not open for further replies.