org.springframework.integration.message.MessagingException: expected a 'org.springframework.integration.message.Message', but received 'class org.springframework.batch.integration.chunk.ChunkRequest'

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, 1 year 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''
org.springframework.integration.message.MessagingException: expected a 'org.springframework.integration.message.Message', but received 'class org.springframework.batch.integration.chunk.ChunkRequest'
at org.springframework.integration.adapter.jms.HeaderMappingMessageConverter.toMessage(HeaderMappingMessageConverter.java:62)
at org.springframework.integration.adapter.jms.HeaderMappingMessageConverter.toMessage(HeaderMappingMessageConverter.java:66)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.