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.io by Unknown author, 1 year ago
failed to write Message payload to file
java.lang.IllegalArgumentException: unsupported Message payload type [com.sample.domain.TestMessage]	at org.springframework.integration.file.FileWritingMessageHandler.handleMessage(FileWritingMessageHandler.java:103)	at org.springframework.integration.dispatcher.AbstractDispatcher.sendMessageToHandler(AbstractDispatcher.java:85)	at org.springframework.integration.dispatcher.AbstractUnicastDispatcher.dispatch(AbstractUnicastDispatcher.java:54)	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:56)	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:94)	at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:223)	at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)	at org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:76)	at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:48)	at org.springframework.integration.dispatcher.AbstractDispatcher.sendMessageToHandler(AbstractDispatcher.java:85)	at org.springframework.integration.dispatcher.AbstractUnicastDispatcher.dispatch(AbstractUnicastDispatcher.java:54)	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:56)	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)	at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:222)	at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)	at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:119)	at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:107)	at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:48)	at org.springframework.integration.dispatcher.AbstractDispatcher.sendMessageToHandler(AbstractDispatcher.java:85)	at org.springframework.integration.dispatcher.AbstractUnicastDispatcher.dispatch(AbstractUnicastDispatcher.java:54)	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:56)	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:116)	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:94)	at org.springframework.integration.channel.MessageChannelTemplate.doSend(MessageChannelTemplate.java:223)	at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:180)	at org.springframework.integration.channel.MessageChannelTemplate.send(MessageChannelTemplate.java:168)	at org.springframework.integration.jms.ChannelPublishingJmsMessageListener.onMessage(ChannelPublishingJmsMessageListener.java:203)	at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:506)	at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:463)	at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)	at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)	at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:868)	at java.lang.Thread.run(Unknown Source)