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

NullCipher instantiation cause NoClassDefFoundError, plugin

    Details

      Description



      Name: ooR10001 Date: 11/09/2001


      javax.crypto.NullCipher instantiation cause NoClassDefFoundError. Following
      test shows the bug:

      ---------------- test.java ------------------
      import javax.crypto.BadPaddingException;
      import javax.crypto.NullCipher;

      public class test1 extends java.applet.Applet {

        public void start() {
          BadPaddingException bpe = new BadPaddingException();
          System.out.println("BadPaddingException created");
          NullCipher nc = new NullCipher();
          System.out.println("NullCipher created");
        }

      }
      ----------------------------------------------
      ------------------ index.html ----------------
      <html>
      <applet
          code=test
          width=600
          height=300
      >
      </applet>
      </html>
      ----------------------------------------------

      Following commands compile this test:

      --------------------------------------------
      % java -version

      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)

      % javac test.java

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

      Following command run this test under appletviewer:

      --------------------------------------
      % appletviewer index.html
      --------------------------------------
      Applet will be successfully initialized and started.


      ------------- Plug-in version --------------
      Java(TM) Plug-in: Version 1.4.0
      Using JRE version 1.4.0-beta3-b84 Java HotSpot(TM) Client VM
      User home directory = D:\Documents and Settings\kna
      --------------------------------------------

      Under plugin following message is showing in the console
      and applet is not started:
      -------------------------------------------------
      BadPaddingException created

      java.lang.NoClassDefFoundError

              at javax.crypto.NullCipher.<init>(DashoA6275)

              at test.start(test.java:9)

              at sun.applet.AppletPanel.run(Unknown Source)

              at java.lang.Thread.run(Unknown Source)

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

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                valeriep Valerie Peng
                Reporter:
                oovsunw Oov Oov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: