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

JVM crashes in AWT when moving the mouse to the staroffice-bean window

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      JDK crashes in AWT callstack when using StarOffce8+, staroffice bean and simply moving the mouse somewhere in the window

      These are the releases we tested so far:

      1.4.2_03 OK
      1.4.2_10 OK
      1.4.2_11 *crash* in awt
      1.4.2_12 *crash* in awt
      1.5.0_06 OK
      1.5.0_07 OK

      As a prerequisite one has to have a winxp-sp2, and staroffice8 installaled.

      To reproduce, one can run this program:

      -------------------------------------------------------------------------------

      package test;


      import java.io.*;
      import java.awt.*;
      import java.awt.event.*;
      import com.sun.star.comp.beans.OOoBean;
      import com.sun.star.uno.UnoRuntime;


      import java.awt.*;

      public class Test
      {

          public static void main(String [] args)
          {
              try {
              Frame f = new Frame();
              final OOoBean b = new OOoBean();
              f.add(b, BorderLayout.CENTER);
              f.pack();
              f.setSize(500, 400);
              f.setVisible(true);
              b.loadFromURL("private:factory/swriter", null);
              f.validate();

              f.addWindowListener(new WindowAdapter() {
                      public void windowClosing( java.awt.event.WindowEvent e){
                          b.stopOOoConnection();
                          System.exit(0);

                      }});
              }
              catch (Exception e)
              {
                  e.printStackTrace();
              }
          }
      }

      -------------------------------------------------------------------------------

      using this script:

      set SODIR=C:\Program Files\Sun\StarOffice 8 <-- !!!! Modify to youre neeeds !!!!
      set JAVA_HOME=C:\j2sdk1.4.2_12 <-- !!!! Modify to youre neeeds !!!!

      %JAVA_HOME%\bin\java -showversion -cp "%SODIR%\program\classes\officebean.jar;%SODIR%\program\classes\sandbox.jar;%SODIR%\program\classes\ridl.jar;%SODIR%\program\classes\unoil.jar;%SODIR%\program\classes\jurt.jar;%SODIR%\program\classes\juh.jar;%SODIR%\program\classes\jut.jar;%SODIR%\program\classes\java_uno.jar;." test.Test

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                robm Robert Mckenna
                Reporter:
                duke J. Duke (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: