Symptom
When sending email from Commerce you can observe error:
can not get a valid access token to send email for renewToken
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.lang.String` from Array value (token `JsonToken.START_ARRAY`) at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 312]
com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch
com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken
com.fasterxml.jackson.databind.deser.std.StdDeserializer._deserializeFromArray
com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize
com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize
com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap
com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize
com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize
com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue
com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose
com.fasterxml.jackson.databind.ObjectMapper.readValue
de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.renewToken
de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.getValidToken
de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.sendEmailWithOAuth2
de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.sendWithModernAuth
de.hybris.platform.acceleratorservices.email.impl.DefaultEmailService.send
de.hybris.platform.acceleratorservices.process.email.actions.SendEmailAction.executeAction
...
Read more...
Environment
SAP Commerce Cloud
Product
Keywords
mismatchedinputexception, serialization, smtp, sending email , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview