Possible TSA error

159 views
Skip to first unread message

Pete Phillips

unread,
Jul 30, 2021, 8:18:49 AM7/30/21
to JSignPdf
Hi

I'm using version 1.6.4 and have been using this without any problems for many years.   Earlier this year one of the TSA  servers stopped working 


so I replaced it with  


which has worked for the last 4 months.

Today I started getting  errors as below.  I have tried changing the tsa.url to those found on github, but none of them work. Is this a TSA server issue or something else ?  

INFO  Creating TSA client.
INFO  Setting TSA hash algorithm: SHA-1
ERROR Problem occured
ExceptionConverter: java.net.SocketException: Connection reset
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:186)
at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)
at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)
at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:754)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689)
at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:713)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1615)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
at com.lowagie.text.pdf.TSAClientBouncyCastle.getTSAResponse(Unknown Source)
at com.lowagie.text.pdf.TSAClientBouncyCastle.getTimeStampToken(Unknown Source)
at com.lowagie.text.pdf.TSAClientBouncyCastle.getTimeStampToken(Unknown Source)
at com.lowagie.text.pdf.PdfPKCS7.getEncodedPKCS7(Unknown Source)
at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:387)
at net.sf.jsignpdf.Signer.signFiles(Signer.java:242)
at net.sf.jsignpdf.Signer.main(Signer.java:137)
INFO  Finished: Creating of signature failed.


Thanks,
Pete

Pete Phillips

unread,
Aug 3, 2021, 8:38:44 AM8/3/21
to JSignPdf
Ignore this - my mistake.    I have a shell script which does different types of signing depending on what type of file it is, and one 'else' branch in my shell script ran the 1.6.1 version of the java code and also called up the 1.6.1 configuration file (which did not have my current signature etc).   All code points to 1.6.4 now which is working. 

Josef Cacek

unread,
Aug 3, 2021, 8:56:07 AM8/3/21
to JSignPdf forum
Hi Pete,
Thank you for the update.
-- jc

út 3. 8. 2021 v 14:38 odesílatel Pete Phillips <pe...@smtl.co.uk> napsal:
--
You received this message because you are subscribed to the Google Groups "JSignPdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsignpdf+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jsignpdf/767a347e-defc-4dfe-98a4-f5598705d440n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages