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

error in jnlp causes java plugin to crash and breaks cache control

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: 9
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      1.7.0_05-b06
      1.7.0_06-b24

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 - Version 6.1.7601
      Windows Xp - Version 5.1.2600

      A DESCRIPTION OF THE PROBLEM :
      Our jnlp file had a typo and was missing an end ". This caused some bad effects in java. It would cause java to crash inside of chrome and then chrome would crash. (first you get a wait cursor in chrome for a very long time, if you wait long enough chrome will lock up.) If I opened java control panel and view files in cache and tried to delete the application then nothing happens. If I goto cache settings in java control panel and click Delete Files. In 1.7.0_06 it just says "Unable to uninstall applications". In 1.7.0_05-b06, I get the same message but also a 2nd message that says "Error encountered while invoking Java Web Start (execv) <full path to javaw.exe>" In both cases the file remains in the cache and can only be removed by deleting in from windows explorer.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      In the jnlp file, have a missing end quote in the version attribute of the of the j2se element

      <?xml version="1.0" encoding="UTF-8"?>
      <jnlp spec="1.0+" codebase="" href="">
           <information>
              <title>MyApp</title>
              <vendor>MyCompany</vendor>
          </information>
      <security>
      <all-permissions/>
      </security>
          <resources>
              <!-- Application Resources -->
              <j2se version="1.7+
                    href="http://java.sun.com/products/autodl/j2se" />
              <jar href="myapp.jar" main="true" />
      </resources>
          <applet-desc
               name="My Applet"
               main-class="MyApplet"
               width="1"
              height="1">
           </applet-desc>
           <update check="background"/>
      </jnlp>

      And then an applet tag inside of a webpage loaded into chrome pointing to the jnlp

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An intelligent error message inside chrome or at least just silently ignoring the applet.
      Being able to delete the offending application from cache using the java control panel
      ACTUAL -
      It would cause java to crash inside of chrome and then chrome would crash. (first you get a wait cursor in chrome for a very long time, if you wait long enough chrome will lock up.) If I opened java control panel and view files in cache and tried to delete the application then nothing happens. If I goto cache settings in java control panel and click Delete Files. In 1.7.0_06 it just says "Unable to uninstall applications". In 1.7.0_05-b06, I get the same message but also a 2nd message that says "Error encountered while invoking Java Web Start (execv) <full path to javaw.exe>" In both cases the file remains in the cache and can only be removed by deleting in from windows explorer.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      I see no log files created in the log directory.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      <?xml version="1.0" encoding="UTF-8"?>
      <jnlp spec="1.0+" codebase="" href="">
           <information>
              <title>MyApp</title>
              <vendor>MyCompany</vendor>
          </information>
      <security>
      <all-permissions/>
      </security>
          <resources>
              <!-- Application Resources -->
              <j2se version="1.7+
                    href="http://java.sun.com/products/autodl/j2se" />
              <jar href="myapp.jar" main="true" />
      </resources>
          <applet-desc
               name="My Applet"
               main-class="MyApplet"
               width="1"
              height="1">
           </applet-desc>
           <update check="background"/>
      </jnlp>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Don't have typos in your jnlp. :)

        Attachments

          Activity

            People

            • Assignee:
              vsaiprasad Vikas Saiprasad
              Reporter:
              pardesha Pardeep Sharma
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: