org.springframework.integration.MessageDeliveryException: Error handling message for file [/opt/ro....../Distribution/T-D.....Feed_10-25-2012-1.frag.1]

Spring JIRA | pritam potnis | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    we are using ftp within same host. ftp from directoryA to different directory. We are getting this error. It doesnt happen continuously but around once in 5 times. 2012-10-25 11:56:17,404 INFO [org.springframework.integration.file.FileReadingMessageSource] - Created message: [[Payload=/opt/ro../Distribution/T-....Feed_10-25-2012-1.frag.1][Headers={timestamp=1351180577404, id=f3c3934d-7901-40ac-9dba-2bc774af661b}]] 2012-10-25 11:56:17,404 INFO [***** XmlHandler *****] - XmlHandler -------- handleFile ** file = /opt/ro..../Distribution/T-....Feed_10-25-2012-1.frag.1 2012-10-25 11:56:20,389 INFO [org.springframework.integration.ftp.session.FtpSession] - File has been successfully transfered to: /opt/ro...../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing 2012-10-25 11:56:20,511 ERROR [org.springframework.integration.handler.LoggingHandler] - org.springframework.integration.MessageDeliveryException: Error handling message for file [/opt/ro....../Distribution/T-D.....Feed_10-25-2012-1.frag.1] at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.handleMessageInternal(FileTransferringMessageHandler.java:147) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) at org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:175) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:159) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:124) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:118) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:100) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) at org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.doPoll(SourcePollingChannelAdapter.java:97) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:144) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:207) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:202) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.springframework.integration.MessagingException: Failed to write to '/opt/r....../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing' while uploading the file at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.sendFileToRemoteDirectory(FileTransferringMessageHandler.java:227) at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.handleMessageInternal(FileTransferringMessageHandler.java:136) ... 39 more Caused by: java.io.IOException: Failed to rename '/opt/r.......g/Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing' to /opt/r...../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1'. Server replied with: 550 RNFR command failed. at org.springframework.integration.ftp.session.FtpSession.rename(FtpSession.java:114) at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.sendFileToRemoteDirectory(FileTransferringMessageHandler.java:224) ... 40 more

    Spring JIRA | 4 years ago | pritam potnis
    org.springframework.integration.MessageDeliveryException: Error handling message for file [/opt/ro....../Distribution/T-D.....Feed_10-25-2012-1.frag.1]
  2. 0

    we are using ftp within same host. ftp from directoryA to different directory. We are getting this error. It doesnt happen continuously but around once in 5 times. 2012-10-25 11:56:17,404 INFO [org.springframework.integration.file.FileReadingMessageSource] - Created message: [[Payload=/opt/ro../Distribution/T-....Feed_10-25-2012-1.frag.1][Headers={timestamp=1351180577404, id=f3c3934d-7901-40ac-9dba-2bc774af661b}]] 2012-10-25 11:56:17,404 INFO [***** XmlHandler *****] - XmlHandler -------- handleFile ** file = /opt/ro..../Distribution/T-....Feed_10-25-2012-1.frag.1 2012-10-25 11:56:20,389 INFO [org.springframework.integration.ftp.session.FtpSession] - File has been successfully transfered to: /opt/ro...../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing 2012-10-25 11:56:20,511 ERROR [org.springframework.integration.handler.LoggingHandler] - org.springframework.integration.MessageDeliveryException: Error handling message for file [/opt/ro....../Distribution/T-D.....Feed_10-25-2012-1.frag.1] at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.handleMessageInternal(FileTransferringMessageHandler.java:147) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) at org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:175) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:159) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:124) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:118) at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:100) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157) at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128) at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288) at org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149) at org.springframework.integration.endpoint.SourcePollingChannelAdapter.doPoll(SourcePollingChannelAdapter.java:97) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146) at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:144) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:207) at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52) at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48) at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49) at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:202) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: org.springframework.integration.MessagingException: Failed to write to '/opt/r....../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing' while uploading the file at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.sendFileToRemoteDirectory(FileTransferringMessageHandler.java:227) at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.handleMessageInternal(FileTransferringMessageHandler.java:136) ... 39 more Caused by: java.io.IOException: Failed to rename '/opt/r.......g/Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing' to /opt/r...../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1'. Server replied with: 550 RNFR command failed. at org.springframework.integration.ftp.session.FtpSession.rename(FtpSession.java:114) at org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.sendFileToRemoteDirectory(FileTransferringMessageHandler.java:224) ... 40 more

    Spring JIRA | 4 years ago | pritam potnis
    org.springframework.integration.MessageDeliveryException: Error handling message for file [/opt/ro....../Distribution/T-D.....Feed_10-25-2012-1.frag.1]
  3. 0

    Unable to rename temporary file in SFTP remote directory

    Stack Overflow | 3 years ago | Dombe
    org.springframework.integration.MessageDeliveryException: Error handling message for file [/sample_test.pgp]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Ftp integration - Server replied with: 553 Can't open that file: No such file or directory

    Stack Overflow | 2 years ago
    org.springframework.integration.MessageDeliveryException: Error handling message for file [Ticket Dump 2015-04-28 10:15.csv]
  6. 0

    Spring Integration - Message Delivery Exception

    Stack Overflow | 1 year ago | Sethu Raman Yegappan
    org.springframework.integration.MessageDeliveryException: Error handling message for file [/dnbusr2/fatca/temp/execution/batch/8293/8293.APN -> 8293.APN]

    Root Cause Analysis

    1. java.io.IOException

      Failed to rename '/opt/r.......g/Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1.writing' to /opt/r...../Distribution/Ftp/Snapshot/T-D.....Feed_10-25-2012-1.frag.1'. Server replied with: 550 RNFR command failed.

      at org.springframework.integration.ftp.session.FtpSession.rename()
    2. org.springframework.integration
      FileTransferringMessageHandler.handleMessageInternal
      1. org.springframework.integration.ftp.session.FtpSession.rename(FtpSession.java:114)
      2. org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.sendFileToRemoteDirectory(FileTransferringMessageHandler.java:224)
      3. org.springframework.integration.file.remote.handler.FileTransferringMessageHandler.handleMessageInternal(FileTransferringMessageHandler.java:136)
      3 frames
    3. Spring Integration Core
      ErrorHandlingTaskExecutor$1.run
      1. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73)
      2. org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114)
      3. org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101)
      4. org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61)
      5. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
      6. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128)
      7. org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288)
      8. org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149)
      9. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendMessage(AbstractReplyProducingMessageHandler.java:175)
      10. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.sendReplyMessage(AbstractReplyProducingMessageHandler.java:159)
      11. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.produceReply(AbstractReplyProducingMessageHandler.java:124)
      12. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleResult(AbstractReplyProducingMessageHandler.java:118)
      13. org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:100)
      14. org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:73)
      15. org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:114)
      16. org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:101)
      17. org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:61)
      18. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
      19. org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128)
      20. org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288)
      21. org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149)
      22. org.springframework.integration.endpoint.SourcePollingChannelAdapter.doPoll(SourcePollingChannelAdapter.java:97)
      23. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:146)
      24. org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:144)
      25. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:207)
      26. org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:52)
      26 frames
    4. Spring Core
      SyncTaskExecutor.execute
      1. org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:48)
      1 frame
    5. Spring Integration Core
      AbstractPollingEndpoint$Poller.run
      1. org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:49)
      2. org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:202)
      2 frames
    6. Spring Context
      ReschedulingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
      2. org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
      2 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      8. java.lang.Thread.run(Thread.java:619)
      8 frames