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

java performs illegal operation on Hydra (Windows Terminal Server)

XMLWordPrintable

    • 2d
    • 1.3
    • generic, x86
    • generic, windows_nt



      Name: krT82822 Date: 11/30/98


      Use Windows NT Terminal Server (also known as hydra)
      Login to the server from Windows NT or Windows 95 client
      set JAVAHOME=e:\jdk1.2
      set JAVA_HOME=e:\jdk1.2
      set CLASSPATH=.
      cd e:\jdk1.2\demo/jfc/table
      java TableExample4

      This results in the message "The application has performed an illegal operation"
      If you use MKS toolkit korn shell, you get segmentation violation

      Cannot run any applications that need to bring a GUI
      All console applications are fine.
      (Review ID: 42810)
      ======================================================================


      The cutomer tried the suggested workaround of setting the JAVA_FONTS environment vairable. It did not work.

      Here is the simplified code as below to isolate the problem. Using
      JDK 1.3 beta-O, with WTS (Windows terminal Server) v1.8, the failure still occurs. The problem is known to occur on JDK1.2.1, JDK1.1.2, and JDK1.3 beta.

       Opens empty frame for 1 second, then get this error:

         [Loaded sun.awt.font.FontDesignMetrics from n:\FLEXCOM\jdk1.3\jre\lib\rt.jar]
         #
         # HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION
         #
         # Error ID: 4F533F57494E13120E43505002B0
         #

         abnormal program termination


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

      Sample program - Opting.java
      Compile: javac Opting.java
      Execution: java Opting

      import java.awt.*;
      import javax.swing.*;
      import java.awt.event.*;

      public class Opting extends JFrame {

        JButton butt = new JButton("Push me!");
        ActionListener al=null;

        public Opting(String s) {
          this();
          setTitle(s);
          }

        public Opting() {
          try { jbInit(); }
          catch (Exception e) { e.printStackTrace(); }
          }

        private void jbInit() throws Exception {
          setBounds(0,0,640,480);
          this.setTitle("Opting");

          this.getContentPane().setLayout(new BorderLayout());
          this.getContentPane().add(butt, BorderLayout.CENTER);

          al = new ActionListener() {
               public void actionPerformed(java.awt.event.ActionEvent event) {
                   Opting o = new Opting("Second instance");
                   o.setBounds(10,10,640,480);
                   o.setVisible(true);
                   o = null;
                   }
               };
          butt.addActionListener(al);

          addWindowListener( new WindowAdapter() {
              public void windowClosing(WindowEvent e) {
                   System.out.println("in window's close");
                   dispose();
                   }
               });

        }

       public final void dispose() {
          System.out.println("in Opting's dispose");
          butt.removeActionListener(a1);
          }


        public String toString() { return getTitle(); }

        public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              Opting o = new Opting("First instance");
              o.setVisible(true);
              o = null;
              }
            });
          }
      }



      sandhya.vora@Eng 2000-01-10

            prr Philip Race
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: