Hi,

The 
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/OcspClientBouncyCastle.html
documentation  for OcspClientBouncyCastle.getEncoded() seems to be
incorrect. It says that the method should not throw an exception and that it
should return null if validation could not be obtained, but this does not
seem to be the case. In fact, if you look at the source code, it does throw
an IOException for several reasons -- like this (using iText 5.0.4):

ExceptionConverter: java.io.IOException: Invalid HTTP response: 503
        at
com.itextpdf.text.pdf.OcspClientBouncyCastle.getEncoded(OcspClientBouncyCastle.java:151)
        at 
com.cfglife.document.DocumentService.getOcsp(DocumentService.groovy:273)


--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/OcspClientBouncyCastle-throws-exception-tp4469403p4469403.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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