Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213096

java.lang.NoSuchMethodError when Deployment Rule Set uses the version attribute

XMLWordPrintable

    • x86_64
    • windows_10

      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


            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: