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

Browser crashes when loading plug-in - Invalid Page Fault in NPJAVA32.DLL.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.0
    • deploy
    • x86
    • windows_95



      Name: sg39081 Date: 03/24/99


      The applet code is compiled in jdk1.2. The HTML is
      modified to the 1.2 HTML specification.

      The applet code is given below:

      //Applet code Begins

      import java.applet.*;
      import java.awt.*;

      public class Receiver extends Applet {
          private final String waitingMessage = "Waiting for a message... ";
          private Label label = new Label(waitingMessage, Label.RIGHT);

          public void init() {
              add(label);
              add(new Button("Clear"));
              add(new Label("(My name is " + getParameter("name") + ".)",
                            Label.LEFT));
              validate();
          }

          public boolean action(Event event, Object o) {
              label.setText(waitingMessage);
              repaint();
              return false;
          }

          public void processRequestFrom(String senderName) {
              label.setText("Received message from " + senderName + "!");
              repaint();
          }

          public void paint(Graphics g) {
              g.drawRect(0, 0, size().width - 1, size().height - 1);
          }

          public String getAppletInfo() {
              return "Receiver (named " + getParameter("name") + ") by Kathy Walrath";
          }
      }

      //Applet code ends


      The HTML code is given below

      //HTML code begins

      <HTML>
      <BODY>

            <EMBED type="application/x-java-applet;version=1.2" width="640" height="400"
      align="baseline" code="Receiver.class"

      <NOEMBED>
      No JDK 1.2 support for APPLET!!
      </NOEMBED>
      </BODY>
      </HTML>

      //HTML code ends

      ************************************************************
      ************************************************************

      When you open the HTML file from the local file system
      the Netscape browser verison 4.03 and 4.5 crashes. It says
      Invalid Page Fault in NPJAVA32.DLL.

      However IE3.0 loads the above applet successfully. But its not
      consistent with every applet code. When it crashes it says
      Invalid Page Fault in PACKAGER.DLL

      Can any one identify the problem here and let me know the
      solution for this. I would appreciate a favourable getsture
      from your part.
      (Review ID: 55467) 1

      ======================================================================

            stanleyh Stanley Ho (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: