JDK-8213096 : java.lang.NoSuchMethodError when Deployment Rule Set uses the version attribute
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u191
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_10
  • CPU: x86_64
  • Submitted: 2018-10-24
  • Updated: 2018-10-30
  • Resolved: 2018-10-30
Related Reports
Duplicate :  
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
Windows 10 1803 build 17134.285 with the following JRE installed: 7u79 and 8u191.

A DESCRIPTION OF THE PROBLEM :
When a Rich Internet Application (RIA) is configured to use a specific JRE in the Deployment Rule Set, launching the RIA fails.


REGRESSION : Last worked in version 8u181

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Install both JRE 7u79 and 8u191.
2. Copy a Deployment Rule Set that contains a run action with a version attribute in C:\Windows\Sun\Java\Deployment.
3. Try to start the RIA that requires JRE 7.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The RIA launches using JRE 7u79.
Worked in 8u181 and earlier.
ACTUAL -
The RIA fails to start with this error:
java.lang.NoSuchMethodError
sun.misc.JavaUtilJarAccess.ensureInitialization(Ljava/util/jar/JarFile;)V

---------- BEGIN SOURCE ----------
Example of a rule in the Deployment Rule Set that now fails:
  <rule> <!-- SANSWITCH5: "white space not allowed" error with Java 1.8  -->
    <id location="IP adress here" />
    <action permission="run" version="1.7*" />
  </rule>
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
None.

FREQUENCY : always



Comments
java.lang.NoSuchMethodError when Deployment Rule Set uses the version attribute Env: Windows 10 b1803 JRE: 7u79 and 8u191 Issue: With JRE 7u79 and 8u191 installed in Windows 10 and Deployment Rule Set containing a run action with a version attribute the RIA fails to start with: java.lang.NoSuchMethodError sun.misc.JavaUtilJarAccess.ensureInitialization(Ljava/util/jar/JarFile;) Checked this with provided information and could confirm the issue as reported. Ruleset used: <ruleset version="1.1+"> <rule> <!--Swing Demo JNLP URL mapping --> <id location="https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/AccessibleScrollDemoProject/AccessibleScrollDemo.jnlp" /> <action permission="run" version="1.7*" force="true"/> </rule> </ruleset> Run with Java 7u79 and 8u191 installed: java.lang.NoSuchMethodError: sun.misc.JavaUtilJarAccess.ensureInitialization(Ljava/util/jar/JarFile;)V at com.sun.deploy.security.DeployURLClassPath$JarLoader$2.getManifest(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) This is a regression in 8u191 as it works fine in combination with JRE 8u181. Closing this as duplicate of JDK-8213011.
30-10-2018