gpt4 book ai didi

java - Camel FTP 文件自动化

转载 作者:行者123 更新时间:2023-11-30 03:54:21 25 4
gpt4 key购买 nike

我有两个 win2008 R2 服务器。当尝试通过 Apache Camel 传输文件时,我收到此错误 -

16:27:27,533 94053 [Camel (camelContext) thread #1 -ftp:// ctsftp@xxx.xxx.xxx.xxx:xx/ftproot] WARN  org.apache.camel.component.file.remote.RemoteFilePollingConsumerPollStrategy  - Consumer FtpConsumer[ftp:// ctsftp@xxx.xxx.xxx.xxx:xx/ftproot?disconnect=true&exclusiveReadLockStrategy=%23FTPFileLockStrategy&filter=%23ResAndAckFilter&idempotent=true&idempotentRepository=%23ResAndAckStore&localWorkDirectory=C:/temp&passiveMode=true&password=******] could not poll endpoint: Endpoint[ftp:// ctsftp@xxx.xxx.xxx.xxx:xx/ftproot?disconnect=true&exclusiveReadLockStrategy=%23FTPFileLockStrategy&filter=%23ResAndAckFilter&idempotent=true&idempotentRepository=%23ResAndAckStore&localWorkDirectory=C:/temp&passiveMode=true&password=******] caused by: File operation failed: 550 Permission denied
Cannot change directory to: /. Code: 550
org.apache.camel.component.file.GenericFileOperationFailedException: File operation failed: 550 Permission denied
Cannot change directory to: /. Code: 550
at org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:628)
at org.apache.camel.component.file.remote.FtpOperations.changeCurrentDirectory(FtpOperations.java:591)
at org.apache.camel.component.file.remote.FtpConsumer.pollDirectory(FtpConsumer.java:53)
at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:100)
at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:138)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:90)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

这是我的路线详细信息 -

from uri="ftp://ftpuser@xxx.xxx.xxx.xxx:xx/ftproot?filter=#ResAndAckFilter&exclusiveReadLockStrategy=#FTPFileLockStrategy&idempotent=true&idempotentRepository=#ResAndAckStore&localWorkDirectory=C:/temp&passiveMode=true&disconnect=true&password=abcd" />
<to uri="file://F:/Incoming?tempPrefix=PART_"

DFile版本如下- Camel 核心-2.9.2, Camel -ftp-2.9.2, commons-net-2.2

Ftpuser具有管理员权限,并且所有目录都具有用户的读写执行权限。

最佳答案

错误消息表明用户无权访问根目录/。大胆猜测,尝试添加选项stepwise=false。在这里阅读有关逐步的更多信息:http://camel.apache.org/ftp.html

关于java - Camel FTP 文件自动化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23629830/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com