SAP Knowledge Base Article - Preview

2733349 - How to solve the exception java.nio.file.NoSuchFileException during the Hot Folder integration

Symptom

In a clustered environment, even if the required files are in the configured hotfolder (i.e:  /NFS_DATA/transfer/incoming/deposit/ , CX Commerce Cloud platform can show the following exception in the logs and the file comsuption and full proccesing can be affected.

INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | �[1;31mERROR [task-scheduler-2] [ErrorHandler] unexpected exception caught INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | �[m org.springframework.messaging.MessageHandlingException: failed to write Message payload to file; nested exception is java.nio.file.NoSuchFileException: /NFS_DATA/transfer/incoming/deposit/SBC_HYBRIS_PROD_STOCK_3304.txt INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.file.FileWritingMessageHandler.handleRequestMessage (FileWritingMessageHandler.java:465) ~[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:109) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:116) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:148) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:121) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:89) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:425) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:375) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:115) ~[spring-messaging-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.messaging.core.GenericMessagingTemplate.doSend(GenericMessagingTemplate.java:45) ~[spring-messaging-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.messaging.core.AbstractMessageSendingTemplate.send(AbstractMessageSendingTemplate.java:105) ~[spring-messaging-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.SourcePollingChannelAdapter.handleMessage(SourcePollingChannelAdapter.java:210) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.AbstractPollingEndpoint.doPoll(AbstractPollingEndpoint.java:272) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.AbstractPollingEndpoint.access$000(AbstractPollingEndpoint.java:58) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:190) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.AbstractPollingEndpoint$1.call(AbstractPollingEndpoint.java:186) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller$1.run(AbstractPollingEndpoint.java:353) ~[spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.integration.util.ErrorHandlingTaskExecutor$1.run(ErrorHandlingTaskExecutor.java:55) [spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.689 | at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50) [spring-core-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.util.ErrorHandlingTaskExecutor.execute(ErrorHandlingTaskExecutor.java:51) [spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.endpoint.AbstractPollingEndpoint$Poller.run(AbstractPollingEndpoint.java:344) [spring-integration-core-4.3.14.RELEASE.jar:4.3.14.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [spring-context-4.3.16.RELEASE.jar:4.3.16.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.lang.Thread.run(Thread.java:836) [?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | Caused by: java.nio.file.NoSuchFileException: /NFS_DATA/transfer/incoming/deposit/SBC_HYBRIS_PROD_STOCK_3304.txt INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:411) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at java.nio.file.Files.move(Files.java:1395) ~[?:1.8.0_181] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.file.FileWritingMessageHandler.filesMove(FileWritingMessageHandler.java:876) ~[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.file.FileWritingMessageHandler.rename(FileWritingMessageHandler.java:871) ~[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.file.FileWritingMessageHandler.handleFileMessage(FileWritingMessageHandler.java:501) ~[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | at org.springframework.integration.file.FileWritingMessageHandler.handleRequestMessage(FileWritingMessageHandler.java:433) ~[spring-integration-file-4.3.2.RELEASE.jar:4.3.2.RELEASE] INFO | jvm 1 | main | 2018/11/28 13:38:10.690 | ... 30 more

Read more...

Environment

SAP CX Commerce Cloud 6.3

Keywords

  • MessageHandlingException
  • NoSuchFileException
  • java.nio.file
  • Hot folder
, KBA , CEC-COM-CPS , Commerce Platform & Suite (SAP Commerce) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.