com.fasterxml.jackson.core.exc.StreamConstraintsException

We are encountering issue with Queue processor trying to process an inbound email with attachments. We’ve enabled “Large message exception handling” but encountered this error :- Caused by: com.fasterxml.jackson.core.exc.StreamConstraintsException: String value length (20054016) exceeds the maximum allowed (20000000, from `StreamReadConstraints.getMaxStringLength()`)

When we receive an inbound email via the email listener and the case in question it needs to attach to is currently locked by another user, we put the attachments on the queue processor to attempt attachment to the case at a later time. But we have just encountered this error.

Can this limit be increased?

Thanks
Craig

Have you added a DSS for "prconfig/services/emailMaxSize/default" ?

More details available here Dynamic system settings for email integrations

Hi Phil,

No we don’t have this set and the problem isn’t the size of the email via the listener its the processing of the email if the case in question is currently locked by another user by the queue processor. We don’t want to restrict the size of the emails.

Thanks
Craig

Thanks for the additional details. Here is what I found:

  1. This is not a random bug — it’s an intentional security constraint added in newer Jackson (and thus Infinity)
  2. It means a single JSON field is >20MB
  3. The fix is almost always:
    • change how data is sent (best)
    • not “increase limit”