-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
sparc
-
solaris_2.6
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)
---------------------------------------------------
======================================================================
- duplicates
-
JDK-4511344 JCK1.4: api/javax_crypto/..., plugin, WindowsNT
- Closed