MappingJackson2MessageConverter adds message id and destination to type resolution exception
Issue: SPR-14672
This commit is contained in:
parent
f55b4c23fc
commit
8c5660683a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue