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

JNLP Specified splash screen is not being shown

XMLWordPrintable

    • x86_64
    • windows_7
    • Verified

      FULL PRODUCT VERSION :
      JDK 8u40

      ADDITIONAL OS VERSION INFORMATION :
      Windows 8.1 Enterprise

      A DESCRIPTION OF THE PROBLEM :
      Java webstart does not use the splash screen provided in the JNLP.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The downloaded splash screen is shown on subsequent runs
      ACTUAL -
      The default java splash is shown every time.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      I set the java to Trace log level and you can see it downloads the image

      network: Connecting https://our.website.net/images/webstart/jrccSplash.png with cookie "ncentral_version=1425381043000; __utma=1.863367853.1425476623.1425476623.1425476623.1; __utmz=1.1425476623.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ncentraluitoken=0.3042118463078403"
      network: Connecting https://our.website.net/webstart/N-central/ with cookie "ncentral_version=1425381043000; __utma=1.863367853.1425476623.1425476623.1425476623.1; __utmz=1.1425476623.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ncentraluitoken=0.3042118463078403"
      network: Server https://our.website.net/images/webstart/jrccSplash.png requesting to set-cookie with "JSESSIONID=5ix6xi3mhz5h1xps6idnrovlu;Path=/"
      network: Server https://our.website.net/webstart/ requesting to set-cookie with "JSESSIONID=m68p4jslnzmf1j2qmndiubbiq;Path=/"
      network: ResponseCode for https://our.website.net/images/webstart/jrccSplash.png : 304
      network: Encoding for https://our.website.net/images/webstart/jrccSplash.png : null
      network: Disconnect connection to https://our.website.net/images/webstart/jrccSplash.png

      Then I went to the Java cache log:

      cache\<#>\splash and open the splash.xml file

      And found this: https\:/our.website.net/webstart/N-central/jrcc-1.6.jarjnlp=C\:\\Users\\<username>\\AppData\\LocalLow\\Sun\\Java\\Deployment\\cache\\<#>\\48\\782a1130-53d17b8b

      Look the path after the = and browse to it in Windows Explorer. Open the file that matches the number at the end of the path with an image viewer and saw the correct splash.

      So the image download works fine.

      Then I went and run it again and saw this in the logs

      cache: Resource https://our.website.net/images/webstart/jrccSplash.png has expired.
      security: blacklist: hasBeenModifiedSince 1425480803934 (we have 1425477491411)
      security: blacklist: hasBeenModifiedSince 1425480804181 (we have 1425477491411)
      security: Certificate revocation enabled. Disable security validation optimizations.

      At this point I am not sure why Java thinks the cache is expired because this exact JNLP used to work in Java 6.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      We have a custom application that runs through webstart.

      <jnlp spec="1.5+" codebase="https://our.website.net/webstart/">
        <information>
          <title>Java Remote Control Connector</title>
          <vendor>Our Company</vendor>
          <homepage href="http://www.company.com"/>
          <description>Remote control over SSH</description>
          <description kind="short">JRCC</description>
          <icon href="https://our.website.net//images/webstart/jrccSplash.png" kind="splash"/>
        </information>
        <security>
          <all-permissions/>
        </security>
      .....


      Every time the application run the default Java splash screen is shown.
      ---------- END SOURCE ----------

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

              Created:
              Updated:
              Resolved: