Closed rokkakasu closed 3 years ago
Hi @hierynomus
Please help we are stuck with this issue whenever this issue occurs, logs flood our disk untill we restart the application.
thanks, R Ramarajan.
Hi Team,
I Read the documentation https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-smb2/9a639360-87be-4d49-a1dd-4c6be0c020bd we are restarting out services often and we cannot have such cases in PROD. please guide us on how to avoid or connect automatically back.
Thanks, R Ramarajan.
Are you closing the TreeConnect in your code and keeping a reference to it?
Hmm wait, I think I understand what you're saying:
You're restarting the SMB servers that you connect to often, but the client side is unaware of that, leading to this error?
For the "Different server found for same hostname" that is indeed possibly the error case.
Hi @hierynomus
The error "Different server found for same hostname" is from class SMBProtocolNegotiator.
private void initializeOrValidateServerDetails() throws TransportException { Server temp = connectionContext.getServer(); SMB2NegotiateResponse response = negotiationContext.negotiationResponse; temp.init(response.getServerGuid(), response.getDialect(), response.getSecurityMode(), response.getCapabilities());
Server cachedServer = connection.serverList.lookup(temp.getServerName());
if (cachedServer == null) {
connection.serverList.registerServer(temp);
negotiationContext.server = temp;
} else if (temp.validate(cachedServer)) {
negotiationContext.server = cachedServer;
} else {
throw new TransportException(String.format("Different server found for same hostname '%s', disconnecting...", temp.getServerName()));
}
}
Thanks, R Ramarajan.
Hi @hierynomus /Team,
we are getting this exception everytime when the windows share system is restarted. please provide us a solution.
Thanks, R Ramarajan.
I've created #647 that adds support for the call client.getServerList().unregister(<serverName>)
. This removes the cached server and allows you to reconnect to the restarted server.
As SMBJ is a pretty low-level library, I do not want to add a magic "unregister" functionality, or automatic reconnect on identification changed.
thank you so much hiernomous.
please support for https://github.com/hierynomus/smbj/issues/645 also. I read the documentation "When I try to open a file or directory my code fails with STATUS_ACCESS_DENIED. How can I fix this?" private DiskEntry openWritableFile(final DiskShare share, final String name) { return share.openFile(name, EnumSet.of(AccessMask.GENERIC_ALL), null, EnumSet.of(SMB2ShareAccess.FILE_SHARE_WRITE), SMB2CreateDisposition.FILE_SUPERSEDE, null); }
when we use version 2_1 this works without any problem
Thanks, R Ramarajan.
Hi Team, I am getting below exception while consuming message from Share location. we could not get the exact root cause for the trigger. it could be a server restart. we are getting below error log repeatedly. after application restart the issue is resolved.
"TransportException: Different server found for same hostname 'SERVER_DNS_NAME(modified)', disconnecting..."
this clones https://github.com/hierynomus/smbj/issues/436 2021-06-03T21:30:04.662Z WARN 1 --- [Camel (${project.artifactId}) thread #20 - smb://username@host/sharelocation/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: com.hierynomus.mssmb2.SMBApiException: STATUS_NETWORK_NAME_DELETED (0xc00000c9): Failure during dialect negotiation at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:79) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:137) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted
2021-06-03T21:30:04.662Z WARN 1 --- [Camel (${project.artifactId}) thread #19 - smb://username@host/sharelocation2/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: com.hierynomus.mssmb2.SMBApiException: STATUS_NETWORK_NAME_DELETED (0xc00000c9): Failure during dialect negotiation at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:79) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:137) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted
2021-06-03T21:30:09.665Z WARN 1 --- [Camel (${project.artifactId}) thread #19 - smb://username@host/sharelocation2Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: com.hierynomus.mssmb2.SMBApiException: STATUS_NETWORK_NAME_DELETED (0xc00000c9): Failure during dialect negotiation at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:79) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:137) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted
2021-06-03T21:30:09.667Z WARN 1 --- [Camel (${project.artifactId}) thread #20 - smb://username@host/sharelocation/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'test\Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'test\Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: com.hierynomus.mssmb2.SMBApiException: STATUS_NETWORK_NAME_DELETED (0xc00000c9): Failure during dialect negotiation at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:79) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:137) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted
2021-06-03T21:30:19.674Z WARN 1 --- [Camel (${project.artifactId}) thread #19 - smb://username@host/sharelocation2Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: org.apache.camel.component.file.GenericFileOperationFailedException: Could not create connection at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:423) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na] at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:87) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:63) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.connect(DirectTcpTransport.java:88) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:135) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] ... 12 common frames omitted
2021-06-03T21:30:19.674Z WARN 1 --- [Camel (${project.artifactId}) thread #20 - smb://username@host/sharelocation/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'test\Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'test\Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: org.apache.camel.component.file.GenericFileOperationFailedException: Could not create connection at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:423) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na] at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:87) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:63) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.connect(DirectTcpTransport.java:88) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:135) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] ... 12 common frames omitted
2021-06-03T21:30:29.680Z WARN 1 --- [Camel (${project.artifactId}) thread #20 - smb://username@host/sharelocation/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'test\Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'test\Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: org.apache.camel.component.file.GenericFileOperationFailedException: Could not create connection at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:423) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na] at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:87) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:63) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.connect(DirectTcpTransport.java:88) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:135) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] ... 12 common frames omitted
2021-06-03T21:30:29.681Z WARN 1 --- [Camel (${project.artifactId}) thread #19 - smb://username@host/sharelocation2Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation2Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: org.apache.camel.component.file.GenericFileOperationFailedException: Could not create connection at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:423) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted Caused by: java.net.SocketTimeoutException: connect timed out at java.base/java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242) ~[na:na] at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224) ~[na:na] at java.base/java.net.Socket.connect(Socket.java:609) ~[na:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:87) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.protocol.commons.socket.ProxySocketFactory.createSocket(ProxySocketFactory.java:63) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.transport.tcp.direct.DirectTcpTransport.connect(DirectTcpTransport.java:88) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:135) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] ... 12 common frames omitted
2021-06-03T21:30:34.682Z WARN 1 --- [Camel (${project.artifactId}) thread #20 - smb://username@host/sharelocation/Outbound] o.a.camel.component.smbj.SmbConsumer : Consumer Consumer[smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1] failed polling endpoint: smb://username@host/sharelocation/Outbound?charset=utf-8&delay=5000&delete=true&download=true&eagerMaxMessagesPerPoll=false&fileExist=Override&localWorkDirectory=tmp&maxMessagesPerPoll=10&password=xxxxxx&readLock=changed&readLockCheckInterval=3000&readLockTimeout=20000&recursive=true&sortBy=file%3Amodified&versions=2_1. Will try again at next poll. Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Could not list files for path: 'test\Outbound']
org.apache.camel.component.file.GenericFileOperationFailedException: Could not list files for path: 'test\Outbound' at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:353) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbConsumer.pollDirectory(SmbConsumer.java:51) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:128) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) ~[camel-core-2.25.1.jar!/:2.25.1] at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) ~[camel-core-2.25.1.jar!/:2.25.1] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[na:na] at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[na:na] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na] at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na] Caused by: org.apache.camel.component.file.GenericFileOperationFailedException: Could not create connection at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:423) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.invokeOnDiskShare(SmbFileOperations.java:543) ~[camel-smbj-2.25.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.listFiles(SmbFileOperations.java:330) ~[camel-smbj-2.25.1.jar!/:na] ... 10 common frames omitted Caused by: com.hierynomus.protocol.transport.TransportException: Different server found for same hostname 'SERVER_DNS_NAME(modified)', disconnecting... at com.hierynomus.smbj.connection.SMBProtocolNegotiator.initializeOrValidateServerDetails(SMBProtocolNegotiator.java:232) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.SMBProtocolNegotiator.negotiateDialect(SMBProtocolNegotiator.java:83) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.connection.Connection.connect(Connection.java:137) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.getEstablishedOrConnect(SMBClient.java:108) ~[smbj-0.11.1.jar!/:na] at com.hierynomus.smbj.SMBClient.connect(SMBClient.java:79) ~[smbj-0.11.1.jar!/:na] at org.apache.camel.component.smbj.SmbFileOperations.createConnection(SmbFileOperations.java:418) ~[camel-smbj-2.25.1.jar!/:na] ... 12 common frames omitted