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

JPI 1.3beta-O: Exception occurred during event dispatching

XMLWordPrintable

    • x86
    • windows_nt

      Problem Description
      ====================
      JPI 1.3beta-O ( I downloaded it from the public web site on java.sun.com )
      There is some problem in this version. I got the following error on JPI console:

      Java(TM) Plug-in: Version 1.3beta-O
      Using JRE version 1.3beta Java(TM) HotSpot Client VM
      User home directory = C:\WINNT\Profiles\Administrator
      Proxy Configuration: Manual Configuration
           Proxy: 129.158.71.40:8080
           Proxy Overrides:

      JAR cache disabled.
      init()
      start()


      Action Performed
      Created Url
      showing document
      stop()
      ending action performed
      Exception occurred during event dispatching:
      destroy()
      java.lang.NullPointerException: null pData
      init()
              at sun.awt.windows.WInputMethod.handleNativeIMEEvent(Native Method)
      start()
              at sun.awt.windows.WInputMethod.dispatchEvent(WInputMethod.java:256)
              at sun.awt.im.InputContext.dispatchEvent(InputContext.java:173)
              at sun.awt.im.InputMethodContext.dispatchEvent(InputMethodContext.java:180)
              at java.awt.Component.dispatchEventImpl(Component.java:2473)
              at java.awt.Container.dispatchEventImpl(Container.java:1302)
              at java.awt.Component.dispatchEvent(Component.java:2443)
              at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2504)
              at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:2366)
              at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2261)
              at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2191)
              at java.awt.Container.dispatchEventImpl(Container.java:1289)
              at java.awt.Component.dispatchEvent(Component.java:2443)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:302)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:105)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:95)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:86)

      Test Env
      ========
      1. Win NT 4.0 SP5
      2. IE 5
      3. JPI Plugin 1.3beta-O

      Test Case
      ==========
      =================== Test1.html ==================
      <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
      <html>
      <head>
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
         <meta name="GENERATOR" content="Mozilla/4.6 [en] (WinNT; I) [Netscape]">
         <title>TestApplet.html</title>
      </head>
      <body>
      <!--"CONVERTED_APPLET"--><!-- CONVERTER VERSION 1.0 --><object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
      WIDTH = 300 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.2/jinstall-12-win32.cab#Version=1,2,0,0"><param NAME = CODE VALUE = "Test1.class" ><param NAME="type" VALUE="application/x-java-applet;version=1.2"><COMMENT><embed type="application/x-java-applet;version=1.2" java_CODE = "Test1.class" CODE="Test1.class" WIDTH = 300 HEIGHT = 300 pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html"><noembed></COMMENT></noembed></embed></object><!--
      <APPLET CODE = "Test1.class" WIDTH = 300 HEIGHT = 300 >


      </APPLET>
      --><!--"END_CONVERTED_APPLET"-->
      </body>
      </html>



      ============ Test1.java ===========
         import javax.swing.JApplet;
         import javax.swing.JButton;
         import java.awt.event.ActionListener;
         import java.awt.event.ActionEvent;
         import java.net.*;


         public class Test1 extends JApplet implements ActionListener{
         
            JButton button = new JButton("Press Me");
            public void init() {
            
               System.out.println("init()");
               getContentPane().add(button);
               button.addActionListener(this);
            
            }
         
         
            public void start(){
               System.out.println("start()");
            }
         
            public void stop(){
               System.out.println("stop()");
            }
         
            public void destroy(){
               System.out.println("destroy()");
            }
         
            public void actionPerformed(ActionEvent ae){
               System.out.println("Action Performed");
            
               try {
                  
                  URL url = new URL("file://d:/Test1.html");
                  System.out.println("Created Url");
                  getAppletContext().showDocument(url);
                  System.out.println("showing document" );
               }
                  catch (Exception e){
                     System.out.println("Exception Has happened");
                     e.printStackTrace();
                  }
               System.out.println("ending action performed");
            
            }
         
         }

      Reproducibility
      ===============
      Yes, always.

      Possible Cause
      ===============
      From our investigations it seems to be a problem is in the garbage
      collection being initiated too early which causes referencing problems
      causing the JVM to throw exceptions.
      This only occurs when running IE 4 or 5 on NT.

            stanleyh Stanley Ho (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: