Error message "Failed to decrypt COSString of length <L> in object <N>"
Issue
I encountered the following error message which says "Failed to decrypt COSString of length L in object N: ..." in my JBoss EAP environment.
(*1) Error message
ERROR [org.apache.pdfbox.pdmodel.encryption.SecurityHandler] (default task-1) Failed to decrypt COSString of length 64 in object 57: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.