[ 
https://issues.apache.org/jira/browse/SSHD-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201534#comment-17201534
 ] 

Netram commented on SSHD-1086:
------------------------------

It was my doubt that's why I asked you . Anyway i used as you said for that 
also i am getting same  error.

DirectoryScanner directoryScanner = new DirectoryScanner();DirectoryScanner 
directoryScanner = new DirectoryScanner(); SshClient clients = 
SshClient.setUpDefaultClient(); clients.start(); ClientSession sessions; try { 
sessions = clients.connect("rrr", "srr", 22) .verify(4500000).getSession(); 
sessions.addPasswordIdentity("rr"); SftpService sftpService = 
SpringApplication.getBean(SftpService.class); SshUser sshUser = 
sftpService.findSshUserBySourceId(371); FileSystem fileSystems = 
SftpClientFactory.instance() .createSftpFileSystem(sessions); Path fpaths = 
fileSystems.getPath(path); String remPaths = fpaths.toString(); 
directoryScanner.setBasedir(remPaths); directoryScanner.scan();
 } catch (IOException e1) \{ // TODO Auto-generated catch block 
e1.printStackTrace(); }

 

 

org.apache.sshd.common.channel.exception.SshChannelOpenException: open failed 
at 
org.apache.sshd.client.channel.AbstractClientChannel.handleOpenFailure(AbstractClientChannel.java:380)
 at 
org.apache.sshd.common.session.helpers.AbstractConnectionService.channelOpenFailure(AbstractConnectionService.java:438)
 at 
org.apache.sshd.common.session.helpers.AbstractConnectionService.process(AbstractConnectionService.java:336)
 at 
org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:626)
 at 
org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:559)
 at 
org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1542)
 at 
org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:520)
 at 
org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:63)
 at 
org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:339)
 at 
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:318) 
at 
org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:315) 
at 
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
 at java.security.AccessController.doPrivileged(Native Method) at 
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
 at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126) at 
sun.nio.ch.Invoker$2.run(Invoker.java:218) at 
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
at java.lang.Thread.run(Thread.java:748)

> Base dir doesn’t exist issue
> ----------------------------
>
>                 Key: SSHD-1086
>                 URL: https://issues.apache.org/jira/browse/SSHD-1086
>             Project: MINA SSHD
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Netram
>            Priority: Critical
>         Attachments: 309002D7-B870-410D-B4A0-A1683166298A.jpeg
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> I am getting base dir doesn’t exist error message.
> This error is throwing from ds.scan() method.
> This is working in local env not working in remote server.
> Please see the attached code.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to