[Javamail-crypto-devel] java.lang.NoSuchMethodError: org.bouncycastle.asn1.cms.AttributeTable.<init
Status: Beta
Brought to you by:
akp
From: Phumlani M. | N. <phu...@na...> - 2012-02-09 08:56:17
|
Good morning I'm using Java 1.6 , JCE1.2.2 , and bouncy castle( bcmail-jdk16-146.jar and bcprov-jdk16-146.jar ) , I'm getting the following error when I'm signing(SMIME) an email message. This looks like a version compatibility issue. I can encrypt an email without any issues. What jars do I need if I want to use bouncy castle in Java 1.6 with JCE1.2.2? My current jars are bcmail-jdk16-146.jar bcprov-jdk16-146.jar jce1.2.2 .jar jdk1.6.0_29 [JDK] javamail-crypto-bouncycastle-smime.jar javamail-crypto.jar I have also noticed that "Bouncy Castle SMIME" is a jce1.2.1 implementation . "A clean room implementation of the JCE 1.2.1." http://www.bouncycastle.org/ Is this the issue? 0-(private key alias)'s COMODO CA Limited ID Exception in thread "main" java.lang.NoSuchMethodError: org.bouncycastle.asn1.cms.AttributeTable.<init>(Lorg/bouncycastle/asn1/DEREncodableVector;)V at net.suberic.crypto.bouncycastle.SMIMEEncryptionUtils.signMessage(SMIMEEncryptionUtils.java:267) at websec.org.encryption.mail.mime.EncryptMessage.configureAndSign(EncryptMessage.java:373) at websec.org.encryption.mail.mime.EncryptMessage.sign(EncryptMessage.java:141) at example.Example.main(Example.java:18) Java Result: 1 Thank you. Phumlani Mbabela | [tel] +27 (11) 555-3800 [cell] [fax] 0867210884 [email] phu...@na...<mailto:phu...@na...> Phumlani Mbabela | Software Engineer [tel] [cell] [fax] [email] phu...@na...<mailto:phu...@na...> [http://staging.brandsh01.com/native_stationary/NATIVE.gif] Website<http://www.native.co.za/> | <http://www.facebook.com/nativesa> Facebook<http://www.facebook.com/nativesa> | Twitter<http://twitter.com/nativespeak> | YouTube<http://www.youtube.com/nativewatch> | Flickr<http://www.flickr.com/photos/nativelook> For latest digital marketing news in your ears listen to the latest episode of The Digital Edge<http://www.thedigitaledge.co.za>, brought to you by NATIVE. This message may contain information, which is confidential, private or privileged in nature. If you are not the intended recipient of the message, you are notified that any distribution, use or copying of this message is prohibited. If you have received this message in error, please notify the sender immediately. [http://staging.brandsh01.com/native_stationary/rec_icon.gif] |