1 2 3 Previous Next 32 Replies Latest reply: Oct 29, 2013 9:26 AM by TerDale Go to original post RSS
      • 30. Re: Java 7 u45 Web Start application won't launch
        sbrodrigues

        Following this thread and thanks to this community we got our Java Web Start working with Eclipse 3.8.x and Java-7 u45 by doing the following two things.

         

        1) Added "jnlp." pre-fix to all the properties and that way made our dynamic JNLP secure.

        2) Added following properties to the signed WebStart  JAR

        Codebase: *

        Permissions: all-permissions

        Trusted-Library: true

         

        All worked fine except that initially our app worked fine on Chrome and not with IE9 by giving the following exception.

        InvalidArgumentException[ Invalid arguments supplied: { }]

        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)

        at com.sun.javaws.Main$1.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)'

         

        Then as some folks suggested I played around with the properties, added some fake ones in the JNLP and then it worked fine on both Chrome and IE9 ( 32-bit Windows 7)

         

        Now it fails on Chrome and works on IE from a different mahine and viceversa on yet another machine. Always seems to fail with

        InvalidArgumentException[ Invalid arguments supplied: { }]

        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)

        at com.sun.javaws.Main$1.run(Unknown Source)

        at java.lang.Thread.run(Unknown Source)'


        Anyone has any ideas? Thanks in advance.

         

        Rodrigues

        • 31. Re: Java 7 u45 Web Start application won't launch
          1051026

          I'm seeing this same problem, where my applet signed with a self-signed cert runs from http:// or file:/// just fine (except for the big ugly warning), but my applet signed with a trusted cert runs from http:// but when run from file:///, generates:

           

          basic: exception: java.lang.reflect.InvocationTargetException.

          java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

              at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)

              at java.security.AccessController.doPrivileged(Native Method)

              at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)

              at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)

              at java.lang.ClassLoader.loadClass(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)

              at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)

              at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)

              at java.lang.Thread.run(Unknown Source)

          Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

              at java.lang.reflect.Method.invoke(Unknown Source)

              ... 14 more

          Caused by: java.lang.NullPointerException

              at sun.plugin2.applet.Plugin2ClassLoader.loadAllowedCodebases(Unknown Source)

              at sun.plugin2.applet.Plugin2ClassLoader.getPermissions(Unknown Source)

              at sun.plugin2.applet.Applet2ClassLoader.getPermissions(Unknown Source)

              at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)

              at java.security.SecureClassLoader.defineClass(Unknown Source)

              at java.net.URLClassLoader.defineClass(Unknown Source)

              ... 18 more

           

          Brian

          • 32. Re: Java 7 u45 Web Start application won't launch
            TerDale

            Hi

             

            Likely due to this Java bug

            1 2 3 Previous Next