4 Replies Latest reply: Jan 6, 2014 12:24 PM by e760f16f-fb6c-4014-ae17-e70c9c40cd73 RSS

    jnlp issue

    e760f16f-fb6c-4014-ae17-e70c9c40cd73

      Hi all

       

      I have a problem since upgrading to java 7.

      I have a jnlp file that works perfectly with java 6, however because of some internal policy I had to upgrade to java 7.

      Now my application does not launch anymore.

       

      If I access the page through a web browser, I get the following error

       

      InvalidArgumentException[ Invalid arguments supplied : { }]

          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)

       

      If I double click on the jnlp file, java web start opens, and closes after a few seconds without any error or warning.

       

      Now, the fun part:

       

      if I move some properties around, then the application loads...

       

      Any idea why? why does something that used to work doesn't?

      I don't think it's related to the number of properties in the file as I have much "bigger" jnlp files that launch correctly.

       

      Thanks

       

      ps: since moving properties kinda solves my problem, this is not really an issue anymore but more intellectual curiosity...

        • 1. Re: jnlp issue
          TerDale

          Hi,

           

          I'm facing a very similar issue, after investigating for a while it turns out that this is due to this Java bug,  along ith the fact we have quite a few properties in our JNLP, and (on Windows clients) a long path to temp folder.

          You can confirm if your issue is the same, just by removing 1 or 2 properties from your JNLP, and see if it works after that.

          • 2. Re: jnlp issue
            TerDale

            HI again....

             

            Just wondering what do you mean by "moving properties kinda solves my problem", could you elaborate please?

            Indeed, if we face the same issue, it is due to the resulting length of the command line built by JWS to launch java(w). So, removing or shortening some props can fix the issue, but I can't understand why/how moving them around could fix this issue... (unless this is not the same problem)

            TIA

            • 3. Re: jnlp issue
              e760f16f-fb6c-4014-ae17-e70c9c40cd73

              Hi

               

              Sorry it's been a while...

              I was able to launch my jnlp file by changing the order of some properties in the file.

              But I am still facing the issue ...

               

              The following works fine with java 6 but gives the same exception with java 7 (please note jar files are digitally signed)

              (I have hidden jar file names but have kept the same number of letters for consistency)

               

              <jnlp spec="1.0+" codebase="http://my_host/app">

               

                <information>

               

                  <title>My App</title>

               

                  <vendor>BM</vendor>

               

                  <homepage href="http://www.support.xxxxxxxxx.com"/>

               

                  <description kind="one-line">My App</description>

               

                  <description kind="tooltip">My App</description>

               

                  <description kind="short">My App</description>

               

                  <icon href="logo.gif"/>

               

                  <offline-allowed/>

               

                </information>

               

                <resources>

               

                  <j2se version="1.6+" initial-heap-size="64m" max-heap-size="256m" href="http://java.sun.com/products/autodl/j2se"/>

               

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

               

                  <jar href="jjjjjjj.jar"/>

               

                  <jar href="mydir/jjjjjjjjj_jjjjj.jar"/>

               

                  <jar href="mydir/jjjjj_jjj.jar"/>

               

                  <jar href="jasperreports-1.2.7.jar"/>

               

                  <jar href="concurrent1.3.0.jar"/>

               

                  <jar href="jdom.jar"/>

               

                  <jar href="jj_jjjjjj.jar"/>

               

                  <jar href="commons-httpclient-3.0.1.jar"/>

               

                  <jar href="commons-logging.jar"/>

               

                  <jar href="commons-codec-1.3.jar"/>

               

                  <jar href="looks-2.1.4.jar"/>

               

                  <jar href="liquidlnf.jar"/>

               

                  <jar href="itext-1.3.1.jar"/>

               

                  <jar href="tagsysRFID.jar"/>

               

                  <jar href="log4j-1.2.15.jar"/>

               

                  <jar href="comm.jar"/>

               

                  <jar href="activation.jar"/>

               

                  <property name="jnlp.NONE" value="NONE" default="NONE"/>

               

                 <property name="jnlp.ddddddddddd.date.pattern" value="dd/MM/yyyy"/>

               

                  <property name="jnlp.key_lang" value="fr"/>

               

                  <property name="jnlp.TRACE_LEVEL" value="3"/>

               

                  <property name="jnlp.CONSOLE_OUT" value="1"/>

               

                  <property name="jnlp.Z3950_URL" value="http://my_host:nnnn/z3950wsc/ws"/>

               

                  <property name="jnlp.dynamicjnlp_url" value="http://my_host:nnnn/dddddddjnlp"/>

               

                  <property name="jnlp.LOGO_NAME_fr" value="logo_fr.gif"/>

               

                  <property name="jnlp.LOGO_NAME_en" value="logo_en.gif"/>

               

                  <property name="jnlp.INNNBBBB_LNNK_TTTTT" value="rsn"/>

               

                  <property name="jnlp.DRIVER" value="com.bbbbbbb.sql.bbbbbbb.bbbbsqlDriver"/>

               

                  <property name="jnlp.LaFManager.lafClassName" value="com.bbbbbbbbbbb.client.lookandfeel.MyLiquidLookAndFeel"/>

               

                  <property name="jnlp.LaFManager.themeClassName" value="com.jgoodies.looks.plastic.theme.ExperienceRoyale"/>

               

                  <property name="jnlp.LaFFont.name" value="Arial"/>

               

                  <property name="jnlp.LaFFont.size" value="11"/>

               

                  <property name="jnlp.debugToolTip.enabled" value="false"/>

               

                  <property name="jnlp.using_pool" value="false"/>

               

                  <property name="jnlp.useLDAP" value="false"/>

               

                  <property name="sun.java2d.d3d" value="false"/>

               

                  <property name="jnlp.usingSpeeeeeeeLoop" value="false"/>

               

                  <property name="jnlp.usingSpeeddddeReport" value="false"/>

               

                  <property name="jnlp.NB_ENV" value="1"/>

               

                  <property name="jnlp.HOST_1" value="//my_host"/>

               

                  <property name="jnlp.SECURITY_PORT_1" value="1111"/>

               

                  <property name="jnlp.SERVERNAME_1" value="LLLLLServer"/>

               

                  <property name="jnlp.ENV_DESC_1_en" value="Main database"/>

               

                  <property name="jnlp.ENV_DESC_1_fr" value="Main database"/>

               

                  <property name="jnlp.ENV_fr" value="Main database"/>

                 

                </resources>

               

                <security>

               

                  <all-permissions/>

               

                </security>

               

                <application-desc main-class="com.bbbbbbb.MMMaaaiinnn">

               

                  <argument>Client</argument>

               

                  <argument>C1T1L1G01</argument>

               

                </application-desc>

               

              </jnlp>

               

               

              Thanks

              • 4. Re: jnlp issue
                e760f16f-fb6c-4014-ae17-e70c9c40cd73

                Now, the "same" page with some properties moved works with java7:

                <jnlp spec="1.0+" codebase="http://my_host/app">

                 

                  <information>

                 

                    <title>My App</title>

                 

                    <vendor>BM</vendor>

                 

                    <homepage href="http://www.support.xxxxxxxxx.com"/>

                 

                    <description kind="one-line">My App</description>

                 

                    <description kind="tooltip">My App</description>

                 

                    <description kind="short">My App</description>

                 

                    <icon href="logo.gif"/>

                 

                    <offline-allowed/>

                 

                  </information>

                 

                  <resources>

                 

                    <j2se version="1.6+" initial-heap-size="64m" max-heap-size="256m" href="http://java.sun.com/products/autodl/j2se"/>

                 

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

                 

                    <jar href="jjjjjjj.jar"/>

                 

                    <jar href="mydir/jjjjjjjjj_jjjjj.jar"/>

                 

                    <jar href="mydir/jjjjj_jjj.jar"/>

                 

                    <jar href="jasperreports-1.2.7.jar"/>

                 

                    <jar href="concurrent1.3.0.jar"/>

                 

                    <jar href="jdom.jar"/>

                 

                    <jar href="jj_jjjjjj.jar"/>

                 

                    <jar href="commons-httpclient-3.0.1.jar"/>

                 

                    <jar href="commons-logging.jar"/>

                 

                    <jar href="commons-codec-1.3.jar"/>

                 

                    <jar href="looks-2.1.4.jar"/>

                 

                    <jar href="liquidlnf.jar"/>

                 

                    <jar href="itext-1.3.1.jar"/>

                 

                    <jar href="tagsysRFID.jar"/>

                 

                    <jar href="log4j-1.2.15.jar"/>

                 

                    <jar href="comm.jar"/>

                 

                    <jar href="activation.jar"/>

                 

                    <property name="jnlp.NONE" value="NONE" default="NONE"/>

                 

                   <property name="jnlp.ddddddddddd.date.pattern" value="dd/MM/yyyy"/>

                 

                    <property name="jnlp.key_lang" value="fr"/>

                 

                    <property name="jnlp.TRACE_LEVEL" value="3"/>

                 

                    <property name="jnlp.CONSOLE_OUT" value="1"/>

                 

                    <property name="jnlp.Z3950_URL" value="http://my_host:nnnn/z3950wsc/ws"/>

                 

                    <property name="jnlp.dynamicjnlp_url" value="http://my_host:nnnn/dddddddjnlp"/>

                 

                    <property name="jnlp.LOGO_NAME_fr" value="logo_fr.gif"/>

                 

                    <property name="jnlp.LOGO_NAME_en" value="logo_en.gif"/>

                 

                    <property name="jnlp.INNNBBBB_LNNK_TTTTT" value="rsn"/>

                 

                    <property name="jnlp.DRIVER" value="com.bbbbbbb.sql.bbbbbbb.bbbbsqlDriver"/>

                 

                <!-- moved properties -->

                 

                    <property name="jnlp.NB_ENV" value="1"/>

                 

                    <property name="jnlp.HOST_1" value="//my_host"/>

                 

                    <property name="jnlp.SECURITY_PORT_1" value="1111"/>

                 

                    <property name="jnlp.SERVERNAME_1" value="LLLLLServer"/>

                 

                    <property name="jnlp.ENV_DESC_1_en" value="Main database"/>

                 

                    <property name="jnlp.ENV_DESC_1_fr" value="Main database"/>

                 

                    <property name="jnlp.ENV_fr" value="Main database"/>

                <!-- end moved -->

                   <property name="jnlp.LaFManager.lafClassName" value="com.bbbbbbbbbbb.client.lookandfeel.MyLiquidLookAndFeel"/>

                 

                    <property name="jnlp.LaFManager.themeClassName" value="com.jgoodies.looks.plastic.theme.ExperienceRoyale"/>

                 

                    <property name="jnlp.LaFFont.name" value="Arial"/>

                 

                    <property name="jnlp.LaFFont.size" value="11"/>

                 

                    <property name="jnlp.debugToolTip.enabled" value="false"/>

                 

                    <property name="jnlp.using_pool" value="false"/>

                 

                    <property name="jnlp.useLDAP" value="false"/>

                 

                    <property name="sun.java2d.d3d" value="false"/>

                 

                    <property name="jnlp.usingSpeeeeeeeLoop" value="false"/>

                 

                    <property name="jnlp.usingSpeeddddeReport" value="false"/>

                 

                   

                  </resources>

                 

                  <security>

                 

                    <all-permissions/>

                 

                  </security>

                 

                  <application-desc main-class="com.bbbbbbb.MMMaaaiinnn">

                 

                    <argument>Client</argument>

                 

                    <argument>C1T1L1G01</argument>

                 

                  </application-desc>

                 

                </jnlp>

                 

                Weird no?