java.io.IOException: /input/test.csv is not a valid file path (//input/test.csv)

Stack Overflow | user3165854 | 5 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    java.io.IOException is not a valid file path in Mule when everything appears successful

    Stack Overflow | 5 months ago | user3165854
    java.io.IOException: /input/test.csv is not a valid file path (//input/test.csv)

    Root Cause Analysis

    1. java.io.IOException

      /input/test.csv is not a valid file path (//input/test.csv)

      at org.mule.transport.sftp.SftpClient.getSize()
    2. org.mule.transport
      SftpMessageReceiver$1.process
      1. org.mule.transport.sftp.SftpClient.getSize(SftpClient.java:474)[mule-transport-sftp-3.7.3.jar:3.7.3]
      2. org.mule.transport.sftp.SftpClient.retrieveFile(SftpClient.java:353)[mule-transport-sftp-3.7.3.jar:3.7.3]
      3. org.mule.transport.sftp.SftpReceiverRequesterUtil.retrieveFile(SftpReceiverRequesterUtil.java:187)[mule-transport-sftp-3.7.3.jar:3.7.3]
      4. org.mule.transport.sftp.SftpMessageReceiver$1.process(SftpMessageReceiver.java:188)[mule-transport-sftp-3.7.3.jar:3.7.3]
      5. org.mule.transport.sftp.SftpMessageReceiver$1.process(SftpMessageReceiver.java:179)[mule-transport-sftp-3.7.3.jar:3.7.3]
      5 frames
    3. Mule Core
      TransactionalErrorHandlingExecutionTemplate.execute
      1. org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16)[mule-core-3.7.3.jar:3.7.3]
      2. org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35)[mule-core-3.7.3.jar:3.7.3]
      3. org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22)[mule-core-3.7.3.jar:3.7.3]
      4. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30)[mule-core-3.7.3.jar:3.7.3]
      5. org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14)[mule-core-3.7.3.jar:3.7.3]
      6. org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67)[mule-core-3.7.3.jar:3.7.3]
      7. org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44)[mule-core-3.7.3.jar:3.7.3]
      8. org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50)[mule-core-3.7.3.jar:3.7.3]
      9. org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40)[mule-core-3.7.3.jar:3.7.3]
      10. org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41)[mule-core-3.7.3.jar:3.7.3]
      11. org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48)[mule-core-3.7.3.jar:3.7.3]
      12. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28)[mule-core-3.7.3.jar:3.7.3]
      13. org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13)[mule-core-3.7.3.jar:3.7.3]
      14. org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:110)[mule-core-3.7.3.jar:3.7.3]
      15. org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:30)[mule-core-3.7.3.jar:3.7.3]
      15 frames
    4. org.mule.transport
      SftpMessageReceiver.poll
      1. org.mule.transport.sftp.SftpMessageReceiver.routeFile(SftpMessageReceiver.java:178)[mule-transport-sftp-3.7.3.jar:3.7.3]
      2. org.mule.transport.sftp.SftpMessageReceiver.poll(SftpMessageReceiver.java:121)[mule-transport-sftp-3.7.3.jar:3.7.3]
      2 frames
    5. Mule Core
      WorkerContext.run
      1. org.mule.transport.AbstractPollingMessageReceiver.performPoll(AbstractPollingMessageReceiver.java:216)[mule-core-3.7.3.jar:3.7.3]
      2. org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:80)[mule-core-3.7.3.jar:3.7.3]
      3. org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:49)[mule-core-3.7.3.jar:3.7.3]
      4. org.mule.transport.TrackingWorkManager$TrackeableWork.run(TrackingWorkManager.java:267)[mule-core-3.7.3.jar:3.7.3]
      5. org.mule.work.WorkerContext.run(WorkerContext.java:286)[mule-core-3.7.3.jar:3.7.3]
      5 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[?:1.8.0_66]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)[?:1.8.0_66]
      3. java.lang.Thread.run(Unknown Source)[?:1.8.0_66]
      3 frames