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

java.lang.SecurityException: Failed to extract baseline.versions error

    Details

    • Subcomponent:
    • Resolved In Build:
      b135
    • CPU:
      x86_64
    • OS:
      windows_7
    • Verification:
      Verified

      Backports

        Description

        FULL PRODUCT VERSION :


        ADDITIONAL OS VERSION INFORMATION :
        Windows 7 (64)

        A DESCRIPTION OF THE PROBLEM :
        Starting from java 8u51 for java JNLP webstart application - the console is showing the following exception:
        Exception in thread "Thread-15" java.lang.SecurityException: Failed to extract baseline.versions
        at com.sun.deploy.util.SecurityBaseline.extractManifest(Unknown Source)
        at com.sun.deploy.util.SecurityBaseline.extractManifests(Unknown Source)
        at com.sun.deploy.util.SecurityBaseline.access$300(Unknown Source)
        at com.sun.deploy.util.SecurityBaseline$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        Caused by: java.io.FileNotFoundException: C:\Users\baums\AppData\LocalLow\Sun\Java\Deployment\security\baseline.versions (Access is denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        at java.io.FileOutputStream.<init>(Unknown Source)
        ... 5 more

        This is caused since under the folder C:\Users\baums\AppData\LocalLow\Sun\Java\Deployment\security\, there's already a folder named baseline.versions - hence, a new file with this name cannot be created there.

        needless to say the folder was not created manually but rather automatically via the same deployment process of an earlier java version.

        deleting the folder manually will resolve the issue and the baseline.versions file will be created successfully with the proper content as written in bug https://bugs.openjdk.java.net/browse/JDK-8077736

        Therefore it is requested that the deployment classes will better handle the situation to avoid the error in creating the file.

        REGRESSION. Last worked in version 8u45


        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        Delete the "baseline.versions" file from the client machine manually to allow the deploy code to create the "baseline.versions" file at the same location.

        not a good workaround as it requires to perform this actions on each client machine.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dtitov Daniil Titov
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: