Unable to Download Mapmaking Tutorial Map


  • Donators

    I receive the following error.

    triplea.engine.version.bin:1.9
    Unexpected response code: 302
    Unexpected response code: 302
    Failed to download: http://downloads.sourceforge.net/project/tripleamaps/developer resources/map makers/Map_Making_Tutorial_Map.zip

    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    	at sun.security.ssl.Alerts.getSSLException(Unknown Source)
    	at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
    	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
    	at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
    	at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
    	at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
    	at sun.security.ssl.Handshaker.processLoop(Unknown Source)
    	at sun.security.ssl.Handshaker.process_record(Unknown Source)
    	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    	at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    	at java.net.URL.openStream(Unknown Source)
    	at games.strategy.engine.framework.map.download.DownloadUtils.downloadFile(DownloadUtils.java:68)
    	at games.strategy.engine.framework.map.download.DownloadFile.lambda$createDownloadThread$127(DownloadFile.java:71)
    	at java.lang.Thread.run(Unknown Source)
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    	at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
    	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
    	at sun.security.validator.Validator.validate(Unknown Source)
    	at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
    	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
    	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
    	... 17 more
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    	at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
    	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
    	at java.security.cert.CertPathBuilder.build(Unknown Source)
    	... 23 more
    Failed to move downloaded file (C:\Users\Judy\AppData\Local\Temp\triplea7387704689902491175tmp) to: C:\Users\Judy\triplea\downloadedMaps\map_making_tutorial_map.zip
    java.io.IOException: Unable to delete C:\Users\Judy\AppData\Local\Temp\triplea7387704689902491175tmp
    	at com.google.common.io.Files.move(Files.java:505)
    	at games.strategy.engine.framework.map.download.DownloadFile.lambda$createDownloadThread$127(DownloadFile.java:80)
    	at java.lang.Thread.run(Unknown Source)
    

    The regular scenarios download without error,


  • Donators Moderators Admin

    Interesting. I had np. Are u using latest stable?



  • This is in the map making tutorial. If you avoid downloading it you will be okay.


  • Admin

    I recently observed this problem, as well (see the Testing section of issue triplea-game/triplea#1718). It seems to happen intermittently only with maps hosted on SourceForge (of which there are currently two: the items on the Tools tab). My theory as to why it doesn't happen all the time is because SourceForge redirects the download to one of several mirror sites, and one of those mirrors has an invalid SSL/TLS certificate.

    Note also that the Map Making Tutorial Map hosted on SourceForge is out of date and contains errors that prevent it from being loaded into the current engine (see issue triplea-maps/Project#77). A corrected map exists on GitHub, but it is not currently downloadable from within TripleA (this is currently a proposal under consideration in issue #77). However, you can download that repo from GitHub and copy the map_making_tutorial folder into your C:\Users\Judy\triplea\downloadedMaps folder, and it should work.


  • Admin

    @RogerCooper The Map Making Tutorial has been moved to GitHub. You should now be able to download and play it (or use it however you wish for map making purposes). Please create an issue on GitHub if you're still having problems.


  • Donators

    The Map Tutorial download now works. However, Map Creator still fails.


  • Admin

    @RogerCooper I'm assuming you're talking about the Map Creator listed in the Download Maps window. If so, it's probably the same root cause because that file is hosted on SourceForge, as well.

    I wonder if the reason you are seeing this problem consistently is because, at some time in the past, you selected a preferred mirror when downloading a file from SourceForge, and that mirror is the one with the bad SSL/TLS certificate. Deleting any SourceForge cookies from your browser may fix that problem for you. As I said in a previous comment, I only see this problem intermittently.

    There are alternate locations from which you can download the standalone Map Creator (albeit from outside the game). On GitHub, the latest snapshots of Map Creator are available at

    You can also download any previously released version of Map Creator from the Google Code archive:

    Note that we've been discussing what the benefits of these standalone tools are compared to the in-game map creation tools (available from Engine Preferences > Run the Map Creator and Engine Preferences > [Beta] Run the Map Creator). Please feel free to contribute to the discussion so we can make a better decision on the future of the map creation tools.