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

Native code for deploy needed in basically all situations

    XMLWordPrintable

Details

    • b08
    • b08
    • generic
    • generic
    • Not verified

    Description

      With certain changes to the JVMParameters class that require the calling of the Config class on the client (attached) JVM side (namely the querying of whether the JVM is secure), it becomes apparent that deploy.dll from the JRE containing the new Java Plug-In is needed in basically all situations. PluginMain needs to load the deploy shared object using specialized code because the normal loading mechanism will load it from the JRE it is running on top of, which causes a mismatch between the Java code and native code for these classes.
      Stack trace of failure when currently running on top of 5.0 family:
      java.lang.UnsatisfiedLinkError: canDownloadJRE
        at com.sun.deploy.config.WinConfig.canDownloadJRE(Native Method)
        at com.sun.deploy.config.WinConfig.canAutoDownloadJRE(Unknown Source)
        at com.sun.deploy.config.Config.refreshProps(Unknown Source)
        at com.sun.deploy.config.Config.initialize(Unknown Source)
        at com.sun.deploy.config.Config.<clinit>(Unknown Source)
        at sun.plugin2.jvm.JVMParameters.isSecure(Unknown Source)
        at sun.plugin2.main.client.PluginMain.mainLoop(Unknown Source)
        at sun.plugin2.main.client.PluginMain.run(Unknown Source)
        at sun.plugin2.main.client.PluginMain.main(Unknown Source)

      Note that this is an inadvertent regression caused by the fix for 6607516, but the underlying problem could have been uncovered at any time.

      Attachments

        Activity

          People

            kbr Kenneth Russell (Inactive)
            kbr Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: