title: Launch Java Web Start Application from HTTPS urls
body: <p>My web application is developed in 
  <strong>PHP</strong> that launch a java web start application. My jar is signed by the trusted certificate authority. It was working fine with <strong>No SSL</strong> web application. But now site has been configured with trusted SSL certificate.So now I am not able to launch my plugin.</p>
  
  <p>I am getting this exception while launching the application.</p>
  
  <blockquote>
    <p><strong>Exception thrown :</strong></p>
  </blockquote>
  
  <pre><code>java.lang.NullPointerException
   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(Unknown Source)
  </code></pre>
  
  <p>My JNLP file is as below :</p>
  
  <blockquote>
    <p><strong>JNLP File :</strong></p>
  </blockquote>
  
  <pre><code>&lt;jnlp spec="1.0+" codebase="https://&lt;&lt;server_domain&gt;&gt;/MyPlugin/"&gt;
    &lt;information&gt;
      &lt;title&gt;Test Plugin&lt;/title&gt;
      &lt;vendor&gt;Test&lt;/vendor&gt;
      &lt;description&gt;Test Plugin&lt;/description&gt;
      &lt;description kind="short"&gt;Test Plugin&lt;/description&gt;
      &lt;offline-allowed/&gt;
    &lt;/information&gt;
    &lt;security&gt;
      &lt;all-permissions/&gt;
    &lt;/security&gt;
    &lt;update check="timeout" policy="always"/&gt;
    &lt;resources&gt;
      &lt;java version="1.7+"/&gt;
      &lt;jar href="MyPluginJar.jar" download="eager" main="false"/&gt;
    &lt;/resources&gt;
    &lt;application-desc&gt;
      &lt;argument&gt;test&lt;/argument&gt;
      &lt;argument&gt;test&lt;/argument&gt;
    &lt;/application-desc&gt;
  &lt;/jnlp&gt;
  </code></pre>
  
  <blockquote>
    <p><strong>Few Questions :</strong></p>
  </blockquote>
  
  <ol>
  <li><p>Is it possible to launch java web start from <strong>HTTPS</strong> site ? </p></li>
  <li><p>I have gone through the demos provided by the Oracle ("<a href="https://docs.oracle.com/javase/tutorial/uiswing/examples/components/" rel="nofollow">tutorial site</a>"). Tutorial site is HTTPS site but the <strong>codebase in JNLP file contains HTTP urls</strong>. Does it matter of concern ?</p></li>
  <li><p>Is there anything wrong in my JNLP ?</p></li>
  <li><p>Is there a way to allow this particular request in SSL configuration to serve ? (Server using for PHP site : <strong>apache web server</strong>)</p></li>
  <li><p>Any other work around for the achieving this ?</p></li>
  </ol>
  
  <p>Please help on this.</p>
  
  <p><strong>UPDATE :</strong></p>
  
  <p>I got the solution.</p>
  
  <p><strong>Solution :</strong></p>
  
  <p>The 2nd question ( <strong>I have gone through the demos provided by the Oracle ("<a href="https://docs.oracle.com/javase/tutorial/uiswing/examples/components/" rel="nofollow">tutorial site</a>"). Tutorial site is HTTPS site but the **codebase in JNLP file contains HTTP urls</strong>. Does it matter of concern ?<strong>) I have asked was the **Really matter of concern</strong>.</p>
  
  <p>I have deployed another application in the server with <strong>no SSL configuration</strong>. And I call that in the code-base to launch the java plugin.</p>
  
  <p><strong>Still, I didn't get the cause. But yes this is perfect work around for the exception.</strong></p>