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

Certain jnlp property values cause an IllegalArgumentException

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      With self-signed webstart abplications random property values in the jnlp file can cause an IllegalArgumentException during jnlp parsing, e.g:
             <property name="jnlp.content1Name" value="original.jpg"/>
      works without problems, while
             <property name="jnlp.content1Name" value="Theme - Macguyver.mp3"/>
      causes an Exception.


      REGRESSION. Last worked in version 7u40

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Download an jnlp file with certain values.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      jawaws application starts
      ACTUAL -
      Exception

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      InvalidArgumentException[ Ung??ltige Argumente angegeben: { }]
      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 ----------
      Example Jnlp file that causes this error:
      <jnlp
        spec="1.5+"
        codebase="http://10.1.10.50/px-static/webstart/download">
        <information>
          <title>Media Download</title>
          <vendor>Como GmbH</vendor>
          <description>Download Application</description>
          <description kind="short">Download of multiple files into the selected folder</description>
          <icon width="32" height="32" href="logo_32x32.png"/>
          <icon width="48" height="48" href="logo_48x48.png"/>
          <icon width="64" height="64" href="logo_64x64.png"/>
          <icon width="96" height="96" href="logo_96x96.png"/>
          <icon kind="splash" href="splash.jpg"/>
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
          <property name="jnlp.packEnabled" value="true"/>
          <j2se version="1.6+" java-vm-args="-Xss1M"/>
          <property name="jnlp.sessionId" value="D4634A5C20E9166B14818B6A62415BE5"/>
          <property name="jnlp.JSESSIONIDSSO" value="4655819DE1FD0C2530EA282793FA66BD"/>
          <property name="jnlp.serviceHost" value="10.1.10.50"/>
          <property name="jnlp.webProtocol" value="http://" />
          <property name="jnlp.serverPath" value="/px-core-web/protected/webstart/structuredDownload.action" />
          <property name="jnlp.mode" value="" />
          <property name="jnlp.debugLevel" value="ALL"/>
          <property name="jnlp.userLocale" value="en"/>
          <property name="jnlp.projectId" value="40c3af2102b5f77b57-7ffd"/>
          <property name="jnlp.containerId" value=""/>
          <property name="jnlp.deleteContainer" value=""/>
          
          
             <property name="jnlp.content1Id" value="8a818ab2410cd4d301410d3b85cd0005"/>
             <property name="jnlp.content1Name" value="Theme - Macguyver.mp3"/>
             <property name="jnlp.content1Version" value="1.2"/>
             <property name="jnlp.content1Size" value="496036.0"/>
             <property name="jnlp.content1PreviewSize" value="496036.0"/>
             <property name="jnlp.content1PreviewName" value="Theme - Macguyver.mp3"/>
             <property name="jnlp.content1AccessRights" value="3"/>
             <property name="jnlp.content1Storage" value="INTERNAL"/>
             <property name="jnlp.content1Video" value="false"/>
                
          

          <jar href="MediaDownload.jar" main="true" />
          

        </resources>
        <application-desc main-class="de.como.transfer.download.MediaDownload"/>
      </jnlp>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Someone noticed that reordeing of properties can help (https://forums.oracle.com/thread/2591715) but this is not an option for generated jnlp files.

            vdrozdov Victor Drozdov (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: