[LINUX]Exception when downloading a map for live replay ends in a 404
See original GitHub issueA stack trace caught when trying to watch a live replay:
java.util.concurrent.CompletionException: java.lang.NullPointerException
<snip>
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.NullPointerException
at java.base/java.nio.file.Files.provider(Files.java:99)
at java.base/java.nio.file.Files.isDirectory(Files.java:2220)
at com.faforever.client.map.MapService.readMap(MapService.java:223)
at com.faforever.client.map.MapService.addSkirmishMap(MapService.java:210)
at com.faforever.client.map.MapService.lambda$downloadAndInstallMap$15(MapService.java:439)
at com.github.nocatch.NoCatch.noCatch(NoCatch.java:49)
at com.github.nocatch.NoCatch.noCatch(NoCatch.java:34)
at com.faforever.client.map.MapService.lambda$downloadAndInstallMap$16(MapService.java:439)
at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:714)
... 22 more
From what I can tell, getPathForMap
can return null, but it isn’t handled anywhere, so it eventually gets passed to isDirectory.
Looking deeper, I suppose that DownloadMapTask does not download the map correctly, and yet it throws no exception:
Downloading map dualgap_fix_adaptive.v0007 from http://content.test.faforever.com/faf/vault/maps/dualgap_fix_adaptive.v0007.zip
This address returns 404. I think that the DownloadMapTask should throw an IOException in that case, but I’m a bit lost in the task / future callback soup so I’m not sure. Either way, the null from getPathFromMap should be handled, and that I suppose is a separate issue.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Status code 404 cannot download metadata repomd.xml ...
I found an article stating this happens when the release version is incorrect, I checked and its set correctly. Another article stated to...
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
... Bug:511 - "media-video/avifile-0.53.5-r1 has dead download link" ... "wrong URL in linux-sources ebuild" status:RESOLVED resolution:FIXED severity:major ...
Read more >How to fix java.lang. ClassNotFoundException: org. ...
How to fix java.lang. ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet Exception – Spring MVC, Tomcat and 404 Error.
Read more >APM Connection Errors
... dd.span_id=0] - - DATADOG TRACER DIAGNOSTIC - Agent not reachable at http://localhost:8126. Exception raised: [Errno 99] Cannot assign requested address ...
Read more >Spring Boot File Upload / Download Rest API Example
We'll first build the REST APIs for uploading and downloading files, and then test those APIs using Postman. We'll also write front-end code ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
new server new luck
IIRC many maps freely mix case between zips, directory names and filenames. Copious use of lowercasing should fix this.