On 21/09/2011 12:05, Cristian wrote:
> Thank you for your reply 1T3XT BVBA. Yes IText version is 5.1.2
> sorry for the mistake.
>
> I used the libraries that you suggested and I got this exception:
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.bouncycastle.asn1.DERSequence.<init>(Lorg/bouncycastle/asn1
> /ASN1EncodableVector;)V
>
> Any suggestions?

Two trivial and two less trivial questions:
1. are the BouncyCastle jars in your CLASSPATH?
2. did you check the BouncyCastle jars for the presence of the 
DERSequence class and its constructor that takes an ASN1EncodableVector?

If your answer to 1 and 2 is yes, then there's something less trivial 
going on:
3. are you working in a Java 5 environment or are you mixing Java versions?
4. do you have more than one version of the jars in your CLASSPATH?

Especially 4 can be tricky, because the error message says it can't find 
the method, whereas the real cause is different: classes and methods of 
two different jars are mixed and the VM gets confused.

In any case: it works for us. It works for many other users. Something 
is going wrong on your end, but as we're not sitting next to you, it's 
very hard to help.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to