on 12-03-2009 10:16 AM
Hi all,
I am trying PGP Encrption using Custom module in one of the scenario's.
While Executing the code on my local system(simple java project) i am getting following error.
Exception in thread "main" java.lang.RuntimeException: NYI
at cryptix.jce.provider.elgamal.ElGamalCipher.engineGetParameters(ElGamalCipher.java:120)
at javax.crypto.Cipher.a(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)
at cryptix.openpgp.algorithm.PGPElGamal.encrypt(PGPElGamal.java:550)
at cryptix.openpgp.packet.PGPPublicKeyEncryptedSessionKeyPacket.encrypt(PGPPublicKeyEncryptedSessionKeyPacket.java:153)
at cryptix.openpgp.provider.PGPEncryptedMessageBuilder.engineBuild(PGPEncryptedMessageBuilder.java:283)
at cryptix.message.EncryptedMessageBuilder.build(EncryptedMessageBuilder.java:253)
at text.Encrypt.main(Encrypt.java:128)
Has anyone experienced similar error.
Please Help!
Mayank
Hi mayank,
PGP means Pretty Good Privacy. This is the Technique of encryption & decryption for security purpose. It is ralated with sun JAVA.
You have got this error due to missing of JCE security Policy.
So you better to download compatible version of java from u201Chttp://java.sun.comu201D
& put this policy into JRE/lib/security folder.
Hope it will work.
Thanks,
Atul Amrutkar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It got resolved after replacing latest US_export_policy.jar and local_policy.jar files downloded from SDN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check this links, same error here
http://icehanger.blogspot.com/2008/05/nyi-not-yet-implemented-error.html
http://javabeanz.wordpress.com/2009/06/11/java-lang-runtimeexception-nyi/
Regards
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This usually happens when Unlimited strength jurisdiction policy files are missing for your JDK ...
Java 6 u2013 http://java.sun.com/javase/downloads/index.jsp
Java 1.4 u2013 http://java.sun.com/j2se/1.4.2/download.html#docs
Hope this helps
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.