question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[LINUX]Exception when downloading a map for live replay ends in a 404

See original GitHub issue

A 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:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
1-alex98commented, Feb 29, 2020

new server new luck

1reaction
Wesmaniacommented, May 13, 2019

IIRC many maps freely mix case between zips, directory names and filenames. Copious use of lowercasing should fix this.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found