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

URISyntaxException: Illegal character in path at index 11: /public/lib\xxxx.jar

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      We are using JavaFX Ant Tasks to build web start package.
      The ant file will generate a jnlp file.
      We pub all the library in "lib" folder.
      The generated jnlp works fine, since it used correct file separator like:

      <jar href="lib/adapter-1.0.0.jar" size="2759674" download="null" />
      ---------backward slash

      However, recently we upgraded to jdk8u60, web start complains URISyntaxException: Illegal character in path at index 11: /public/lib\xxxx.jar.
      And in jnlp file, it is using

      <jar href="lib\adapter-1.0.0.jar" size="2759674" download="null" />
      ----------forward slash.




      REGRESSION. Last worked in version 8u40

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_31"

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      simply use JavaFX Ant Tasks to build web start package

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the jar path in jnlp using backward slash
      <jar href="lib/adapter-1.0.0.jar" size="2759674" download="null" />
      ACTUAL -
      the jar path in jnlp using forward slash
      <jar href="lib\adapter-1.0.0.jar" size="2759674" download="null" />

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      URISyntaxException: Illegal character in path at index 11: /public/lib\xxxx.jar.

      REPRODUCIBILITY :
      This bug can be reproduced always.

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

              Created:
              Updated:
              Resolved: