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

Having a query string to a jnlp file negates the SingleInstanceService

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 5.0
    • deploy
    • 5.0
    • b38
    • x86
    • windows_xp

        J2SE Version (please include all output from java -version flag):

          java version "1.5.0_03"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
          Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

        Does this problem occur on J2SE 1.3, 1.4.x or 1.5? Yes / No (pick one)
          1.5

        Operating System Configuration Information (be specific):
          Windows XP

        Bug Description:
          Having a query string to a jnlp file negates the SingleInstanceService.
          This is a total show stopper for us. We wanted to use a new link with
          a query string to modify the current state of our running program.
          If this does not work, we don't really have a solution to the problem
          we are trying to solve.

        Steps to Reproduce (be specific):
          * Create a webstart enabled application that implements the SingleInstanceListener
            and registers itself appropriately
          * Create a servlet to process JNLP files
        Servlet will detect a query string on the jnlp request
        If a query string is detected, it will modifiy the JNLP file
        The "href" attribute of the "jnlp" tag altered to show the query string
        For example,
        <jnlp
        spec="1.0+"
        codebase="http://k9.dev.donnell.com:8084/"
        href="[original href]?[query string]">
          * Run the webstart program with a link that does not contain a query string.
          * While that program is still running, click on the same link again.
          * RESULT: theActivation(String[] args) method will be called in the original
            instance...SUCCESS

          * Run the webstart program again, this time from a link that does contain a
            query string.
          * While that program is still running, click on the same link again.
          * RESULT: SingleInstanceService will be ignored and a new instance will
            start...FAILURE

          No matter what we do, having a query string nullifies the SingleInstance
          functionality
        ###@###.### 2005-05-05 02:30:18 GMT

              ngthomas Thomas Ng (Inactive)
              tyao Ting-Yun Ingrid Yao (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: