Better Exception Message for JMS Jackson Converter Error [SPR-14672] #19236
Comments
Juergen Hoeller commented Good catch! I've extended the message to refer to the message id and to the message's original destination as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Michael Böckling opened SPR-14672 and commented
In org.springframework.jms.support.converter.MappingJackson2MessageConverter#getJavaTypeForMessage, an exception is thrown if a message lacks the property that has been configured as the typeIdPropertyName, and thus Jackson has no idea to which Java type to map the message to.
The error message is "Could not find type id property [" + this.typeIdPropertyName + "]", which lacks sufficient diagnostic context to really track down the issue once it appears in a logfile. It would be very useful to have the name of the JMS queue, so I can make a guess which application forgot to set that ID.
The Message ID might also be useful for some cases.
Proposal:
Affects: 4.2.6
Backported to: 4.2.8
The text was updated successfully, but these errors were encountered: