Login  Register

FailedDownloadException on Mojave

Posted by camac on Mar 06, 2020; 4:20pm
URL: https://forum.jogamp.org/FailedDownloadException-on-Mojave-tp4040416.html

Recently I have learned of an issue affecting a jogl-based Webstart application that I authored (and tested) nearly a year ago. Now every attempt to run the application reports a FailedDownLoadException when trying to load the resource " http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp". The failure stems from an illegal URL redirect (see below).

Launch File tab:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://people.uncw.edu/moyerc/QMTools/webstart" href="QMTools.jnlp">
  <application-desc main-class="edu.uncwphys.qmtoolsexe.QMToolsMain"/>
  <information>
    <title>QMTools Applet Editor</title>
    <vendor>Curt A. Moyer</vendor>
    <homepage href="http://people.uncw.edu/moyerc/QMTools"/>
    <icon href="qmtools_icon.gif"/>
    <description>An open source editor for QMTools applets</description>
    <offline-allowed/>
  </information>
  <update check="background" policy="always"/>

  <security>
      <all-permissions/>
  </security>

  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <property name="sun.java2d.noddraw" value="true"/>
    <jar href="qmtools.jar" main="true"/>
    <extension name="jogl-all-awt" href="http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp"/>
  </resources>
</jnlp>
Exception tab:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://jogamp.org/deployment/jogamp-current/jogl-all-awt.jnlp
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getJreResource(Unknown Source)
        at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:748)
Wrapped Exception tab:
java.lang.SecurityException: illegal URL redirect
        at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
        at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
        at com.sun.deploy.cache.ResourceProviderImpl.getJreResource(Unknown Source)
        at com.sun.javaws.LaunchDownload._downloadExtensionsHelper(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadExtensionsHelper(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadExtensions(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareAllResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:748)

I have confirmed this on an iMac as well as a MacBook Pro, both running under Mojave 10.14.6. The former uses the latest Java version (JRE 8 Update 241) while the latter uses the older JRE 8 Update 221, but the behavior is the identical on both. Even more troubling, I see the same issue when trying to run the Gears Webstart application on jogamp.org, as well as the (simpler?) versioning application on that site. Thus, the problem does not appear to lie with my application. For reference, I can confirm that everything worked as intended as recently as last October. What is the problem and, more importantly, how can it be fixed?