org.springframework.messaging.MessageHandlingException: failed to write Message payload to file; nested exception is java.io.FileNotFoundException: target/output/dir/test2.writing (No such file or directory)

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

Samebug tips

,

try new webdriver if you have this error with firefox while uploading files

Solutions on the web

via Spring JIRA by Gunnar Hillert, 1 year ago
failed to write Message payload to file; nested exception is java.io.FileNotFoundException: target/output/dir/test2.writing (No such file or directory)
via Spring JIRA by Gunnar Hillert, 1 year ago
failed to write Message payload to file; nested exception is java.io.FileNotFoundException: target/output/dir/test2.writing (No such file or directory)
via Stack Overflow by Aliaksandr Mukhareuski
, 2 months ago
failed to write Message payload to file; nested exception is java.lang.IllegalArgumentException: unsupported Message payload type [l.h.site.MyObject], failedMessage=GenericMessage [payload=l.h.site.MyObject@3d06bfbf, headers={contentType=class l.h.site.MyObject, id=e9d37006-d970-f55a-3961-d5f614dc681f, timestamp=1505480518118}]
via GitHub by Panciz
, 1 year ago
failed to write Message payload to file; nested exception is java.io.FileNotFoundException: C:\SIRIO-SA\RecipeTo\localhost_access_log.2016-09-19.txt.writing (Accesso negato)
via GitHub by artembilan
, 1 year ago
failed to write Message payload to file; nested exception is java.io.FileNotFoundException: target\base-directory\foo.txt.writing (Отказано в доступе)
org.springframework.messaging.MessageHandlingException: failed to write Message payload to file; nested exception is java.io.FileNotFoundException: target/output/dir/test2.writing (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at org.springframework.integration.file.FileWritingMessageHandler.handleByteArrayMessage(FileWritingMessageHandler.java:379)
at org.springframework.integration.file.FileWritingMessageHandler.handleRequestMessage(FileWritingMessageHandler.java:296)
at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:99)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:101)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:277)
at com.hillert.filetest.Main.main(Main.java:54)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
166 more bugmates

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