[jira] Created: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
SFTP : Polling - Cannot list directory Error
--------------------------------------------

                 Key: CAMEL-1247
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-ftp
    Affects Versions: 2.0.0
         Environment: Windows Xp
            Reporter: Paddy Daly



http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html




--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-1247:
----------------------------------

    Assignee: Claus Ibsen

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-1247:
-------------------------------

      Description:
http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html




  was:

http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html




    Fix Version/s: 2.0.0

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paddy Daly updated CAMEL-1247:
------------------------------

    Attachment: example.log

Here's the log file for the following route

<endpoint id="printerSFTP" uri="sftp://pdaly@127.0.0.1?password=password&amp;binary=true&amp;expression=done/${file:name}&amp;recursive=true&amp;delay=10000&amp;initialDelay=2000&amp;readLock=rename&amp;knownHostsFile=c://known_host&amp;filter=#myAntFilter"/>

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48638#action_48638 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

Thanks for the log. Are you sure its using TRACE. I cant see any TRACE log lines in the file?




> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48640#action_48640 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

I think I got it now. Running full unit test with the fix

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paddy Daly updated CAMEL-1247:
------------------------------

    Attachment: example.log

Sorry about that, here you go.

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48643#action_48643 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

@Paddy

I have commited a fix to camel trunk. Would be lovely if you could test it.

You can wait X hours or how long it takes for Apache INFRA to build and deploy a new SNAPSHOT of Camel 2.0 or you can grab the source and build a camel-ftp jar yourself.

The fix is in r734095

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48644#action_48644 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

This bug does not exists in 1.x

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48647#action_48647 ]

Paddy Daly commented on CAMEL-1247:
-----------------------------------

Claus
The StringIndexOutOfBoundsException is fixed however I'm still getting an error.

Here is my directory structure.
    c:/folder/printer
                              /test1
                                      /incoming
                                      /outgoing
                              /test2
                                      /incoming
                                      /outgoing

I've set the user pdaly@127.0.0.1 to the root folder of c:/folder/printer

Here's the log from the sftp server


000000001358 2009-01-13 12:11:02.131690 UTC WinSSHD 5.04 [111] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Closed directory 'C:\folder\printer\test1'. Registered 1 successful
  operation. Listed 3 entries in 1 operation.

000000001359 2009-01-13 12:11:02.132952 UTC WinSSHD 5.04 [118] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Reading attributes for 'C:\folder\printer\incoming' (follow symlink)
  failed with NoSuchFile. GetFileAttributes() failed: Windows error 2: The system cannot find the file
  specified.

Is there something wrong with my filter

        <bean id="myAntFilter" class="org.apache.camel.component.file.remote.AntPathMatcherRemoteFileFilter">  
            <property name="includes" value="**/incoming/*"/>
            <property name="excludes" value="**/outgoing/*"/>
        </bean>

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48647#action_48647 ]

watcher edited comment on CAMEL-1247 at 1/13/09 4:23 AM:
------------------------------------------------------------

Claus
The StringIndexOutOfBoundsException is fixed however I'm still getting an error.

Here is my directory structure.
    c:/folder/printer
                              /test1
                                      /incoming
                                      /outgoing
                              /test2
                                      /incoming
                                      /outgoing

I've set the user pdaly@127.0.0.1 to the root folder of c:/folder/printer

Here's the log from the sftp server


000000001358 2009-01-13 12:11:02.131690 UTC WinSSHD 5.04 [111] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Closed directory 'C:\folder\printer\test1'. Registered 1 successful
  operation. Listed 3 entries in 1 operation.

000000001359 2009-01-13 12:11:02.132952 UTC WinSSHD 5.04 [118] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Reading attributes for 'C:\folder\printer\incoming' (follow symlink)
  failed with NoSuchFile. GetFileAttributes() failed: Windows error 2: The system cannot find the file
  specified.

Is there something wrong with my filter

        <bean id="myAntFilter" class="org.apache.camel.component.file.remote.AntPathMatcherRemoteFileFilter">  
            <property name="includes" value="**/incoming/*"/>
            <property name="excludes" value="**/outgoing/*"/>
        </bean>
 
above should be
star star/incoming/star



      was (Author: watcher):
    Claus
The StringIndexOutOfBoundsException is fixed however I'm still getting an error.

Here is my directory structure.
    c:/folder/printer
                              /test1
                                      /incoming
                                      /outgoing
                              /test2
                                      /incoming
                                      /outgoing

I've set the user pdaly@127.0.0.1 to the root folder of c:/folder/printer

Here's the log from the sftp server


000000001358 2009-01-13 12:11:02.131690 UTC WinSSHD 5.04 [111] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Closed directory 'C:\folder\printer\test1'. Registered 1 successful
  operation. Listed 3 entries in 1 operation.

000000001359 2009-01-13 12:11:02.132952 UTC WinSSHD 5.04 [118] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Reading attributes for 'C:\folder\printer\incoming' (follow symlink)
  failed with NoSuchFile. GetFileAttributes() failed: Windows error 2: The system cannot find the file
  specified.

Is there something wrong with my filter

        <bean id="myAntFilter" class="org.apache.camel.component.file.remote.AntPathMatcherRemoteFileFilter">  
            <property name="includes" value="**/incoming/*"/>
            <property name="excludes" value="**/outgoing/*"/>
        </bean>
 
**/incoming/*


 

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48647#action_48647 ]

watcher edited comment on CAMEL-1247 at 1/13/09 4:23 AM:
------------------------------------------------------------

Claus
The StringIndexOutOfBoundsException is fixed however I'm still getting an error.

Here is my directory structure.
    c:/folder/printer
                              /test1
                                      /incoming
                                      /outgoing
                              /test2
                                      /incoming
                                      /outgoing

I've set the user pdaly@127.0.0.1 to the root folder of c:/folder/printer

Here's the log from the sftp server


000000001358 2009-01-13 12:11:02.131690 UTC WinSSHD 5.04 [111] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Closed directory 'C:\folder\printer\test1'. Registered 1 successful
  operation. Listed 3 entries in 1 operation.

000000001359 2009-01-13 12:11:02.132952 UTC WinSSHD 5.04 [118] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Reading attributes for 'C:\folder\printer\incoming' (follow symlink)
  failed with NoSuchFile. GetFileAttributes() failed: Windows error 2: The system cannot find the file
  specified.

Is there something wrong with my filter

        <bean id="myAntFilter" class="org.apache.camel.component.file.remote.AntPathMatcherRemoteFileFilter">  
            <property name="includes" value="**/incoming/*"/>
            <property name="excludes" value="**/outgoing/*"/>
        </bean>
 
**/incoming/*



      was (Author: watcher):
    Claus
The StringIndexOutOfBoundsException is fixed however I'm still getting an error.

Here is my directory structure.
    c:/folder/printer
                              /test1
                                      /incoming
                                      /outgoing
                              /test2
                                      /incoming
                                      /outgoing

I've set the user pdaly@127.0.0.1 to the root folder of c:/folder/printer

Here's the log from the sftp server


000000001358 2009-01-13 12:11:02.131690 UTC WinSSHD 5.04 [111] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Closed directory 'C:\folder\printer\test1'. Registered 1 successful
  operation. Listed 3 entries in 1 operation.

000000001359 2009-01-13 12:11:02.132952 UTC WinSSHD 5.04 [118] Info
  Session thread 1103 for Windows account 'pdaly' from 127.0.0.1:3431:
  Session channel 1: FlowSfsWin: Reading attributes for 'C:\folder\printer\incoming' (follow symlink)
  failed with NoSuchFile. GetFileAttributes() failed: Windows error 2: The system cannot find the file
  specified.

Is there something wrong with my filter

        <bean id="myAntFilter" class="org.apache.camel.component.file.remote.AntPathMatcherRemoteFileFilter">  
            <property name="includes" value="**/incoming/*"/>
            <property name="excludes" value="**/outgoing/*"/>
        </bean>
 

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48648#action_48648 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

Hi

Looks like when it gets the file list it can not detect that the incoming is a directory and not a file. I will look in the code and try to get a fix for you to test again

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48649#action_48649 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

@Paddy

I have commited a fix for the new problem

Sending        camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConsumer.java
Transmitting file data .
Committed revision 734117.


> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48650#action_48650 ]

Paddy Daly commented on CAMEL-1247:
-----------------------------------

I still get an error in SftpRemoteFileOperations

  Vector files = channel.ls(path);

when path equals "incoming"

 WARN  An exception occured while polling: Endpoint[sftp://pdaly@127.0.0.1]: Cannot list directory: incoming
org.apache.camel.component.file.remote.RemoteFileOperationFailedException: Cannot list directory: incoming
        at org.apache.camel.component.file.remote.SftpRemoteFileOperations.listFiles(SftpRemoteFileOperations.java:270)
        at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:47)
        at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:53)
        at org.apache.camel.component.file.remote.SftpConsumer.pollDirectory(SftpConsumer.java:53)
        at org.apache.camel.component.file.remote.RemoteFileConsumer.poll(RemoteFileConsumer.java:65)
        at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:66)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Caused by: 2: SfsStatusCode.NoSuchFile
        at com.jcraft.jsch.ChannelSftp.throwStatusError(Unknown Source)
        at com.jcraft.jsch.ChannelSftp.stat(Unknown Source)
        at com.jcraft.jsch.ChannelSftp.ls(Unknown Source)
        at org.apache.camel.component.file.remote.SftpRemoteFileOperations.listFiles(SftpRemoteFileOperations.java:264)
        ... 14 more
[te.RemoteFileComponent@100d6ea] ScheduledPollConsumer    


> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48651#action_48651 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

Sorry I have found the bug.

The problem with the SFTP is that we dont have a java SFTP server we can use for automatic unit testing. So we run all the unit tests with the regular FTP component. The SFTP codebase is 98% identical to the FTP. But I found the bug with the sub folder stuff.

Will commit a patch shortly.

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48652#action_48652 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

@Paddy

I have commited a fix to trunk. Could you please test it? Sorry for the issues. However Camel FTP has had a major refactor in Camel 2.x compared to 1.x.


New Revision: 734141


> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48654#action_48654 ]

Paddy Daly commented on CAMEL-1247:
-----------------------------------

Its processing the file ok now, however it fails to put the file into the done directory and throws the following exception.

[te.RemoteFileComponent@1c1e333] SftpConsumer                   ERROR Cannot delete file: /test1/inc
oming/.done/New Text Document.txt
org.apache.camel.component.file.remote.RemoteFileOperationFailedException: Cannot delete file: /test
1/incoming/.done/New Text Document.txt
        at org.apache.camel.component.file.remote.SftpRemoteFileOperations.deleteFile(SftpRemoteFile
Operations.java:138)
        at org.apache.camel.component.file.remote.strategy.RenameRemoteFileProcessStrategy.renameFil
e(RenameRemoteFileProcessStrategy.java:71)
        at org.apache.camel.component.file.remote.strategy.RenameRemoteFileProcessStrategy.commit(Re
nameRemoteFileProcessStrategy.java:65)
        at org.apache.camel.component.file.remote.RemoteFileConsumer.processStrategyCommit(RemoteFil
eConsumer.java:215)
        at org.apache.camel.component.file.remote.RemoteFileConsumer$1.done(RemoteFileConsumer.java:
170)
        at org.apache.camel.processor.UnitOfWorkProcessor$1.done(UnitOfWorkProcessor.java:57)
        at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java
:74)

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48657#action_48657 ]

Claus Ibsen commented on CAMEL-1247:
------------------------------------

Hi

Could you try a file without spaces in the file name?


> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-1247) SFTP : Polling - Cannot list directory Error

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/activemq/browse/CAMEL-1247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48658#action_48658 ]

Paddy Daly commented on CAMEL-1247:
-----------------------------------

same issue

> SFTP : Polling - Cannot list directory Error
> --------------------------------------------
>
>                 Key: CAMEL-1247
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1247
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.0.0
>         Environment: Windows Xp
>            Reporter: Paddy Daly
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>         Attachments: example.log, example.log
>
>
> http://www.nabble.com/SFTP-%3A-Polling---Cannot-list-directory-to21413159s22882.html

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

12