Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Tuomas Kiviaho, 2 years ago
expected a 'org.springframework.integration.message.Message', but received 'class foo.bar.Payload''
via Spring JIRA by Tuomas Kiviaho, 1 year ago
expected a 'org.springframework.integration.message.Message', but received 'class foo.bar.Payload''
via Spring JIRA by Dave Syer, 2 years ago
expected a 'org.springframework.integration.message.Message', but received 'class org.springframework.batch.integration.chunk.ChunkRequest'
via Spring JIRA by Dave Syer, 1 year ago
expected a 'org.springframework.integration.message.Message', but received 'class org.springframework.batch.integration.chunk.ChunkRequest'
org.springframework.integration.message.MessagingException: expected a 'org.springframework.integration.message.Message', but received 'class foo.bar.Payload''	at org.springframework.integration.adapter.jms.HeaderMappingMessageConverter.toMessage(HeaderMappingMessageConverter.java:64)	at org.springframework.jms.listener.adapter.MessageListenerAdapter.buildMessage(MessageListenerAdapter.java:517)	at org.springframework.jms.listener.adapter.MessageListenerAdapter.handleResult(MessageListenerAdapter.java:493)	at org.springframework.jms.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:360)