Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring Integration - FTP outbound gateway LS always empty on *unix
    primarykey
    data
    text
    <p>I have a simple ftp outbound gateway configured for ls, get, rm</p> <pre><code> &lt;int-ftp:outbound-gateway id="gatewayLS" cache-sessions="false" session-factory="incomingCachingSessionFactory" request-channel="inboundChannel" command="ls" command-options="-1" expression="'${ftp.pull.remote.directory}'" reply-channel="toSplitter" /&gt; &lt;channel id="toSplitter"&gt; &lt;interceptors&gt; &lt;wire-tap channel="logger" /&gt; &lt;/interceptors&gt; &lt;/channel&gt; &lt;logging-channel-adapter id="logger" log-full-message="true" level="DEBUG" /&gt; &lt;splitter id="splitter" input-channel="toSplitter" output-channel="toGet" /&gt; &lt;int-ftp:outbound-gateway id="gatewayGET" cache-sessions="false" local-directory="${ftp.pull.local.directory}" session-factory="incomingCachingSessionFactory" request-channel="toGet" reply-channel="downloadedFileChannel" command="get" command-options="-P" expression="headers['file_remoteDirectory'] + '/' + payload" /&gt; </code></pre> <p>this works perfectly on my development windows box, connecting to multiple different FTP servers.</p> <p>and my log outputs expected</p> <pre><code>DEBUG: org.springframework.integration.ftp.session.DefaultFtpSessionFactory - Connected to server [ftp.domain.com:21] DEBUG: org.springframework.integration.ftp.gateway.FtpOutboundGateway - handler 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#0' sending reply Message: [Payload=[test_file.zip]][Headers={timestamp=1343143242030, id=56758ef9-57e5-43d6-b8b7-c36539d9fd0d, file_remoteDirectory=/images/}] </code></pre> <p>the time bewteen the "Connected to server" and "sending reply Message" is also pretty much instantaneous</p> <p>however, once deployed to 2x Centos servers (5.8 and 6.2), the reply channel of the LS is always emtpy e.g.</p> <pre><code>DEBUG: org.springframework.integration.ftp.session.DefaultFtpSessionFactory - Connected to server [ftp.domain.com:21] DEBUG: org.springframework.integration.ftp.gateway.FtpOutboundGateway - handler 'org.springframework.integration.ftp.gateway.FtpOutboundGateway#0' sending reply Message: [Payload=[]][Headers={timestamp=1343143961046, id=31759d6f-201e-4028-8943-0a68ae64db81, file_remoteDirectory=/images/}] </code></pre> <p>the time between the "Connected to server" and "sending reply Message" is also abnormally long.</p> <p>some more info:</p> <ul> <li><p>all 3 machines are using maven to build the WAR from the same code base.</p></li> <li><p>the 2 centos machines are in different datacentres</p></li> <li><p>I have tried multiple different unrelated FTP servers, with the same results</p></li> <li><p>there are definately files on the ftp server</p></li> <li>the ftp servers are accessable on the centos boxes, confirmed using "ncftp" and "ftp"</li> </ul> <p>I know this post is pretty vague, but it is driving me nuts. any thoughts greatly appreciated</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload