Hello everybody,

I tried to send a file to a FTP server from my sequence but I have the same
error appearing each time:

TID: [-1234] [] [2018-02-26 10:02:41,017]  WARN
{org.apache.synapse.transport.vfs.VFSTransportSender} -  Couldn't get the
lock for the file : ftp://esb":***@"myserver/D11DEAC5310D294
A5A1519635762262.xml, retry : 1 scheduled after : 30000
{org.apache.synapse.transport.vfs.VFSTransportSender}

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="sendUpdateCorrespondenceNotification" xmlns="
http://ws.apache.org/ns/synapse";>
    <property
        expression="get-property('registry',
'gov:/local-cfg-esb/common.ftp.user')"
        name="user" scope="default" type="STRING" xmlns:ns="
http://org.apache.synapse/xsd"/>
    <property
        expression="get-property('registry',
'gov:/local-cfg-esb/common.ftp.passwd')"
        name="pwd" scope="default" type="STRING" xmlns:ns="
http://org.apache.synapse/xsd"/>
    <property
        expression="get-property('registry',
'gov:/local-cfg-esb/common.ftp.host')"
        name="host" scope="default" type="STRING" xmlns:ns="
http://org.apache.synapse/xsd"/>
    <property
        expression="get-property('registry',
'gov:/local-cfg-esb/common.ftp.dir')"
        name="directory" scope="default" type="STRING" xmlns:ns="
http://org.apache.synapse/xsd"/>
    <property name="OUT_ONLY" scope="default" type="STRING" value="true"/>
    <property name="vfs.passive" scope="transport" type="STRING"
value="true"/>
    <property
        expression="fn:concat(fn:substring-after(get-property('MessageID'),
'urn:uuid:'), '.xml')"
        name="transport.vfs.ReplyFileName" scope="transport"
        type="STRING" xmlns:ns="http://org.apache.synapse/xsd"/>
    <property name="transport.vfs.Locking" scope="transport"
        type="STRING" value="disable"/>
    <property
        expression="fn:concat('vfs:ftp://', $ctx:user, ':', $ctx:pwd, '@',
$ctx:host, '/', $ctx:transport.vfs.ReplyFileName)"
        name="ftpEndpoint" scope="default" type="STRING" xmlns:ns="
http://org.apache.synapse/xsd"/>
    <call>
        <endpoint name="ftpEndpoint">
            <address uri="${ftpEndpoint}"/>
        </endpoint>
    </call>
</sequence>

As you can see, I defined the transport.vfs.Locking property to disabled
but the ESB tries to generate a lock file...

I tried to connect directly to the FTP server via my FTP client and I can
write in the directory.

Am I missing something?

Regards,

Thomas
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to