title: Liveconnect Applet problems
body: <p>Cannot call applet methods from javascript. A error appears on the log</p>
  
  <p>-> liveconnect: Security Exception: JavaScript from http:url:port/application attempted to access a resource it has no rights to.</p>
  
  <pre><code>Manifest-Version: 1.0
  Application-Name: application
  Created-By: Apache Maven 3.0.4
  Caller-Allowable-Codebase: *
  Application-Library-Allowable-Codebase: *
  Build-Jdk: 1.7.0_72
  Permissions: all-permissions
  Codebase: *
  </code></pre>
  
  <p>The java security setting is set to meddium </p>
  
  <p>JRE Version 1.8.0_25-b17</p>
  
  <p>Applet Signed by a trusted source, and the applet jar is downloaded from the same domain as the calling page.</p>
  
  <p>If I try to call the applet method from firebug javascript console another error shows up: Error: Liveconnect call for Applet ID 4 is not allowed in this JVM instance</p>
  
  <p>The applet TAG:</p>
  
  <pre><code>  &lt;applet id="applet" code="applet.core.AppletBootstrap" codebase="/applet" archive="applet.jar" width="650" height="500" mayscript="mayscript"&gt;
  &lt;param name="cache_archive" value="applet.jar"/&gt;
  &lt;param name="cache_version" value="2.4.17.2,2.4.17.2,2.4.17.2,2.4.17.2,2.4.17.2"/&gt;
  &lt;param name="conversationId" value="e00ed781a56a4378a285d7839a9925bf"/&gt;
  &lt;param name="userAgent" value="Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36" /&gt;
  &lt;param name="java_status_events" value="true"/&gt;
  &lt;param name="separate_jvm" value="true"/&gt;
  &lt;param name="classloader_cache" value="false"/&gt;
  &lt;param name="java_arguments" value="-Xmx128m -Djnlp.packEnabled=true "/&gt;
  &lt;/applet&gt;
  </code></pre>
  
  <p>EDIT:
  @Seba JDK-8058697 is a OpenJDK bug related to this issue, unfortunately it is not accessible to me - You can see a duplicate of it: <a href="https://bugs.openjdk.java.net/browse/JDK-8065741" rel="nofollow">here</a></p>
  
  <p>EDIT 2:
  Java 8 update 40 is working again</p>