File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes ExceptionInInitializerError : While running CIPHER Encryption program Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "ExceptionInInitializerError : While running CIPHER Encryption program" Watch "ExceptionInInitializerError : While running CIPHER Encryption program" New topic
Author

ExceptionInInitializerError : While running CIPHER Encryption program

Joly Mathew
Greenhorn

Joined: Jul 03, 2002
Posts: 13
Hi All,
I am getting the following exception while trying to execute a demo program using CIPHER(DES) encryption. Could any one advice what is causing the exception.
Thanks,
Joly Mathew
java.lang.ExceptionInInitializerError
at javax.crypto.KeyGenerator.getInstance(DashoA6275)
at com.joly.test.cipher.EncryptTest.main(EncryptTest.java:29)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
... 2 more
Caused by: java.security.PrivilegedActionException: java.security.NoSuchAlgorithmException: MD5WITHRSA Signature not available
at java.security.AccessController.doPrivileged(Native Method)
... 3 more
Caused by: java.security.NoSuchAlgorithmException: MD5WITHRSA Signature not available
at java.security.Security.getEngineClassName(Security.java:584)
at java.security.Security.getEngineClassName(Security.java:595)
at java.security.Security.getImpl(Security.java:1044)
at java.security.Signature.getInstance(Signature.java:169)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:425)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:383)
at javax.crypto.SunJCE_b.c(DashoA6275)
at javax.crypto.SunJCE_b.b(DashoA6275)
at javax.crypto.SunJCE_s.run(DashoA6275)
... 4 more
Exception in thread "main"
 
 
subject: ExceptionInInitializerError : While running CIPHER Encryption program
 
Threads others viewed
Error While Reading Certificates
Was working running under Eclipse, now JCE not working...
Problem with decryption
Anyone IAIK ?
Algorithm DES not available
developer file tools