提交 8c566068 编写于 作者: J Juergen Hoeller

MappingJackson2MessageConverter adds message id and destination to type resolution exception

Issue: SPR-14672
上级 f55b4c23
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册