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

getAppletContext.showDocument failing using Java Plug-in merlin only.

XMLWordPrintable

    • beta2
    • generic, x86, sparc
    • generic, solaris_8, windows_nt
    • Verified

      When an applet using the Java Plug-in Merlin build 61
      getAppletContext().showDocument(url, browserTitle)
      fails to load the applet in the new browser window.The same applet works fine with the earlier versions of Java Plug-in.

      (When the applet is loading in IE exceptions shown below are thrown and in
      Netscape even Exceptions not thrown .)

      If this string is *NOT* "_self" , "_parent","_top" ,"_blank" .
      (I have tested the same applet with "_top" works fine ) then it is
      failing.


      In this case it should load the applet in the new browser window.

      As per the JDK API Documentation :

      Show in the frame or window named name. If a target named name does not already exist, a new top-level window with the specified name is created, and the document is shown there.


      To reproduce the problem :

      1. Install Java Plug-in Merlin build 61.

      2. Load the following applet

         http://javaweb.eng.sun.com/~sridhare/contexttests/ShowURLJsse.html

      3. Click the button in the applet "Show HTTPS Site"

      4. Called URL is not loaded and the exceptions are thrown in the Java Console.


      The Following Exceptions are thrown only when IE is used as a browser:

      Java(TM) Plug-in: Version 1.4.0
      Using JRE version 1.4.0-beta Java HotSpot(TM) Client VM
      User home directory = C:\WINDOWS
      Proxy Configuration: Manual Configuration
           Proxy: webcache-cup:8080
           Proxy Overrides: <local>

      ----------------------------------------------------
      c: clear console window
      f: finalize objects on finalization queue
      g: garbage collect
      h: display this help message
      l: dump classloader list
      m: print memory usage
      o: trigger logging
      q: hide console
      s: dump system properties
      t: dump thread list
      x: clear classloader cache
      0-5: set trace level to <n>
      ----------------------------------------------------
      starting showURL button actionPerformed
      constructing url to other device
      constructed url to other devicehttps://www.verisign.com
      invoking showDocument to that url
      netscape.javascript.JSException:
      at sun.plugin.javascript.ocx.JSObject.nativeInvoke(Native Method)
      at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
      at sun.plugin.javascript.ocx.JSObject.call(Unknown Source)
      at sun.plugin.ActivatorAppletContext.showDocument(Unknown Source)
      at JsseTestApplet.showURLButton_actionPerformed(JsseTestApplet.java:51)
      at JsseTestApplet$SymAction.actionPerformed(JsseTestApplet.java:37)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      invoked showDocument to that url
      finished show URL button actionPerformed
      starting showURL button actionPerformed
      constructing url to other device
      constructed url to other devicehttps://www.verisign.com
      invoking showDocument to that url
      netscape.javascript.JSException: ???
      at sun.plugin.javascript.ocx.JSObject.nativeInvoke(Native Method)
      at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
      at sun.plugin.javascript.ocx.JSObject.call(Unknown Source)
      at sun.plugin.ActivatorAppletContext.showDocument(Unknown Source)
      at JsseTestApplet.showURLButton_actionPerformed(JsseTestApplet.java:51)
      at JsseTestApplet$SymAction.actionPerformed(JsseTestApplet.java:37)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)
      invoked showDocument to that url
      finished show URL button actionPerformed

            stanleyh Stanley Ho (Inactive)
            senugulaorcl Sridhar Enugula (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: