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

Mozilla : Call to DeployHelper method compareVersion() fails from an applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • 6
    • 6
    • deploy
    • None

      Tested Build : JRE PIT build(build 1.6.0-b99) and build 1.6.0-ea-b36
      Tested Platform : All
      Build Location : /net/sqesvr-nfs.sfbay/global/nfs/deployment5/pit_builds
      /net/koori/onestop/jdk/1.6.0/latest/bundles/windows-i586

      Problem description :
      With Mozilla browser all the method provided in the DeployHelper against the JRE detection are working fine except <Deploy>.compareVersion() when invoked from an applet. All the methods are working fine with IE browser. on mozilla it throws following exception
      netscape.javascript.JSException: Error calling method on NPObject!
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at sun.plugin.liveconnect.PrivilegedConstructObjectAction.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.liveconnect.SecureInvocation$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.plugin.liveconnect.SecureInvocation.ConstructObject(Unknown Source)

      Steps to reproduce :
      1) Install JRE from the location mentioned above
      2) Load the following applet inside the IE browser
      http://sqeweb.sfbay.sun.com/deployment2/jitu/spec_improve_deploy/liveconnect/TestJVM2.html
      It should work fine
      Now load the same html inside the mozilla browser
      if it throws above mentioned exception then on java console then bug is reproduced

      Flow of test case:
      In this html applet calls "getDefaultJVMVersion()" method of javascript. This inturn calls DeployHelper API's <DeployHelper>.browserJVM.version to get the jre version with which browser is registered. Till this point everything works fine.
      The version value is returned back to applet and applet then calls compareJREVersion(version) of javascript which in turn calls another DeployHelper API <DeployHelper>.compareVersion(version, "1.4.2_08") and at this point the above mentioned exception is thrown

      Rest all the API's are working fine with both the browsers




      ###@###.### 2005-05-13 01:02:22 GMT

            dphamsunw Danielle Pham (Inactive)
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: