Error message "Failed to decrypt COSString of length <L> in object <N>"

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content