MappingJackson2MessageConverter adds message id and destination to type resolution exception

Issue: SPR-14672
This commit is contained in:
Juergen Hoeller 2016-09-10 12:37:55 +02:00
parent f55b4c23fc
commit 8c5660683a
1 changed files with 3 additions and 1 deletions

View File

@ -433,7 +433,9 @@ public class MappingJackson2MessageConverter implements SmartMessageConverter, B
protected JavaType getJavaTypeForMessage(Message message) throws JMSException {
String typeId = message.getStringProperty(this.typeIdPropertyName);
if (typeId == null) {
throw new MessageConversionException("Could not find type id property [" + this.typeIdPropertyName + "]");
throw new MessageConversionException(
"Could not find type id property [" + this.typeIdPropertyName + "] on message [" +
message.getJMSMessageID() + "] from destination [" + message.getJMSDestination() + "]");
}
Class<?> mappedClass = this.idClassMappings.get(typeId);
if (mappedClass != null) {