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

javaws.exe failed to launch UTF-8 encoded JNLP file

XMLWordPrintable

    • b01
    • x86_64
    • windows_7

        FULL PRODUCT VERSION :
        java version "1.8.0_172-ea"
        Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
        Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 6.1.7601]


        A DESCRIPTION OF THE PROBLEM :
        JNLP file having UTF-8 letters failed to launch from command line javaws.exe.


        REGRESSION. Last worked in version 8u151

        ADDITIONAL REGRESSION INFORMATION:
        jre1.8.0_144


        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Failed:
        C:\Program Files\Java\jre1.8.0_172\bin\javaws.exe utf8.jnlp
        C:\Program Files\Java\jre1.8.0_161\bin\javaws.exe utf8.jnlp

        Succeeded to launch:
        C:\Program Files\Java\jre1.8.0_144\bin\javaws.exe utf8.jnlp


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        Success to launch the application.
        ACTUAL -
        "Application Error" dialogue is shown.

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        "Application Error" dialogue is shown. stack trace is as follows.


        Exception: (the message says that failed to analyze, error in line 0)
        -----
        JNLParseException[ 起動ファイルを解析できませんでした。0行目にエラーがあります。]
        at com.sun.javaws.jnl.XMLFormat.decode(Unknown Source)
        at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        Caused by: java.io.EOFException: encoding.error.not.xml
        at com.sun.deploy.xml.XMLEncoding.decodeXML(Unknown Source)
        ... 9 more



        Wrapped Exception:
        -----
        java.io.EOFException: encoding.error.not.xml
        at com.sun.deploy.xml.XMLEncoding.decodeXML(Unknown Source)
        at com.sun.javaws.jnl.XMLFormat.decode(Unknown Source)
        at com.sun.javaws.jnl.XMLFormat.parse(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main.access$000(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        Failed:
        C:\Program Files\Java\jre1.8.0_172\bin\javaws.exe utf8.jnlp

        Reproducing test case, utf8.jnlp is as follows.
        The jnlp file contains UTF-8 encoded japanese letters in the <argument> attribute.
        <argument>--downloadFiles[0]=DownloadManagerSetup ........................ .exe</argument>

        ---------utf8.jnlp begin---------
        <?xml version="1.0" encoding="UTF-8"?>
        <jnlp spec="1.7+"
        codebase="http://127.0.0.1:9000/">
        <information>
        <title>SilverBulletDownloadClient</title>
        <vendor>Skeed Co. Ltd.</vendor>
        <homepage href="http://www.skeed.co.jp" />
        <description kind="one-line">SkeedSilverBullet Client</description>
        <description kind="short">SkeedSilverBullet Client</description>
        <description kind="tooltip">SkeedSilverBullet Client</description>
        <icon kind="default" href="http://127.0.0.1:9000/public/images/ssb_transparent.gif" />
        <icon kind="splash" href="http://127.0.0.1:9000/public/images/ssb_splash.jpg" />
        <offline-allowed/>
        </information>
        <security>
        <all-permissions />
        </security>
        <resources>
        <java version="1.7+" initial-heap-size="8M" max-heap-size="64M"/>
        <jar href="http://127.0.0.1:9000/public/jars/ssb_guic.jar"/>
        <property name="jnlp.packEnabled" value="true" />
        </resources>
        <application-desc main-class="com.skeedtech.skeed_silver_bullet.simple_gui_client.SimpleDownloaderMain">

        <argument>--downloadFiles[0]=DownloadManagerSetup - コピー - コピー (2) - コピー.exe</argument>

        </application-desc>
        </jnlp>
        ---------utf8.jnlp end ---------


        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        Using ASCII letters by changing application behavior and/or limiting application functionality.
        Or using older version of java.


              dmarkov Dmitry Markov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: