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

jar update with downloading extension in background not working.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6u18
    • Fix Version/s: None
    • Component/s: deploy
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      jar update with downloading extension in background not working in 6u18 b07.

      Here is the scenarion and testcase:
      1. Launch Java WebStart Application with extension as background
      2. change the extension jar file to a new one.
      3. Launch the same application - since the extension download is in the background same old jar will be used.
      4. Lauch the same application - now it should take the new jar becs it is updated by step3. Action.

      Here is the TestCase:
      javaws -uninstall.
      Step1: ssh jdeploy01.india.sun.com credentials - dtfadmin/ dtf123
      cd /net/sqindia/export/disk13/jcg/javafx/workspace/webservices/tomcat/webapps/JavawsMustangIntegTest/update/jar
      cp first_ext.jar extension.jar
      Step1: Launch - http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar_extension_background.jnlp
      Title expected is "First Version" - it uses the first_ext.jar

      Step2: Move to server
      cp second_ext.jar extension.jar

      Steps3:Launch the same app again.
      Title expected is "First Version" - it is uses the firt_ext.jar while launchign bug in the background it should download the changed jar file
      Now closed this.


      Step4:Launch the same app again.
      Now title expected is "Second Version" - Since the new extesion jar is downloaded in the background during Step3.

      Here is the console logs for Step3:
      ----------------------------------
      network: JARUpdater: update check for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar
      network: Connecting http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar with proxy=DIRECT
      network: Connecting socket://jdeploy01.india.sun.com:8080 with proxy=DIRECT
      network: ResponseCode for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar : 200
      network: Encoding for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar :
      network: Disconnect connection to http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar
      network: Connecting http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/simple_ext.jnlp with proxy=DIRECT
      network: Connecting socket://jdeploy01.india.sun.com:8080 with proxy=DIRECT
      network: ResponseCode for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/simple_ext.jnlp : 200
      network: Encoding for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/simple_ext.jnlp : null
      network: Disconnect connection to http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/simple_ext.jnlp
      network: JARUpdater: update check for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      network: Connecting http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar with proxy=DIRECT
      network: Connecting socket://jdeploy01.india.sun.com:8080 with proxy=DIRECT
      network: ResponseCode for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar : 200
      network: Encoding for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar :
      network: Disconnect connection to http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      network: Background Update Thread: update cache: http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/simple.jar
      network: Connecting http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar with proxy=DIRECT
      network: Connecting socket://jdeploy01.india.sun.com:8080 with proxy=DIRECT
      network: ResponseCode for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar : 200
      network: Encoding for http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar :
      network: Sever response: (length: 3289, lastModified: Sun Feb 28 21:40:02 PST 2010, downloadVersion: null, mimeType: application/java-archive)
      network: CleanupThread used 16158 us
      network: Downloading resource: http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      Content-Length: 3,289
      Content-Encoding:
      network: Wrote URL http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\35\50a92ea3-66119b1e-temp
      network: Disconnect connection to http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      security: The jar file isnt on a blacklist
      network: CleanupThread used 14 us
      network: Downloaded http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar to file:/C:/Documents%20and%20Settings/Administrator/Application%20Data/Sun/Java/Deployment/cache/6.0/35/50a92ea3-66119b1e
      Cache Entry disabled
      network: Cache: Enable a new CacheEntry: http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      network: Remove cache entry: http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar
      network: Background Update Thread: update cache: http://jdeploy01.india.sun.com:8080/JavawsMustangIntegTest/update/jar/extension.jar

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ngthomas Thomas Ng (Inactive)
              Reporter:
              rnairsunw Raghu Nair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: