This project has moved and is read-only. For the latest updates, please go here.

Wildcards and Unable to perform directory list at []

Oct 28, 2011 at 2:35 PM

I'm unable to pull files from the remote FTP. Any help would be appreciated.

If I put the complete filename in the filemask, I always get "Found 0 files."

[SftpReceiverEndpoint] Start called
[SftpReceiverEndpoint] Dispose called
[SftpReceiverEndpoint] Stop called
[SftpReceiverEndpoint] ControlledTermination.Enter()
[SftpReceiverEndpoint] PickupFilesAndSubmit called [SFTP://---------:22/------/test_jc.txt]
[SftpConnectionPool] Connecting to -----
[SftpReceiverEndpoint] Dir(/-------/test_jc.txt)
[SftpReceiverEndpoint] Found 0 files.
[SftpConnectionPool] Disconnecting from ------
[SftpReceiverEndpoint] ControlledTermination.Leave()
[TimeSchedule]Executing GetNextActivationTime

 

If I put the wildcard * , I get an exception:

 

[SftpReceiverEndpoint] Start called
[SftpReceiverEndpoint] ControlledTermination.Enter()
[SftpReceiverEndpoint] PickupFilesAndSubmit called [SFTP://------:22/-----/test*jc.txt]
[SftpConnectionPool] Connecting to -----
[SftpReceiverEndpoint] Dir(/-----/test*jc.txt)
[SftpConnectionPool] Disconnecting from ----
[SftpConnectionPool] Reconnecting to ----
[SftpConnectionPool] Connecting to ----
[SftpReceiverEndpoint] Dir(/-----/test*jc.txt)
[SftpConnectionPool] Disconnecting from ----
[SftpReceiverEndpoint] Exception #1

Event Type:    Error
Event Source:    SFTPAdapter
Event Category:    None
Event ID:    0
Date:        10/28/2011
Time:        9:25:37 AM
User:        N/A
Computer:    ----
Description:
Method: Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask
Error: Uri:SFTP://----:22/-----/test*jc.txt

------------------------------
Information:
Type: System.Exception
Target:
Message: Uri:SFTP://----:22/-----/test*jc.txt
Stacktrace:


------------------------------
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target: System.Collections.Generic.List`1[Blogical.Shared.Adapters.Sftp.FileEntry] dir(System.String, System.String, Int32, System.Collections.ArrayList, Boolean)
Message: Unable to perform directory list at []
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.PickupFilesAndSubmit()
   at Blogical.Shared.Adapters.Sftp.SftpReceiverEndpoint.EndpointTask()


------------------------------
Type: Tamir.SharpSsh.jsch.SftpException
Target: Tamir.SharpSsh.java.util.Vector Dir2(System.String)
Message: Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown.
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.SshTransfer.Dir2(String path)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.dir(String fileMask, String uri, Int32 maxNumberOfFiles, ArrayList filesInProcess, Boolean trace)




For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.