[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-java-dev
Subject:    [Dev] sFTP error - "cannot resolve replyFile "
From:       Sanjay Bawri <sanjaybawri () gmail ! com>
Date:       2019-02-24 16:52:08
Message-ID: CA+Jw=t9WGXCx-bzQ0xa61ZKuzfN1XKHSVUiGisTMhtQ2cf4ogQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I have a service (pasted at the end) that writes to an sFTP server. The
service is pasted below. The service works fine when writing the file from
an installation of WSO2 EI on local windows machine, however, the same
service when deployed to linux throws the below error:

*The Error:*

ERROR {org.apache.synapse.transport.vfs.VFSTransportSender} -* cannot
resolve replyFile
*org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:86)
 org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:149)
 org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:111)
 org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81)
 org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:778)
 org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:658)
 org.apache.synapse.transport.vfs.VFSTransportSender.writeFile(VFSTransportSender.java:233)
 org.apache.synapse.transport.vfs.VFSTransportSender.sendMessage(VFSTransportSender.java:194)
 org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112)
 org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442)
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297)
 org.apache.axis2.client.OperationClient.execute(OperationClient.java:149)
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:595)
 org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:85)
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:547)
 org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:384)
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:65)
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:121)
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:108)
 org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:70)
 org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
 org.apache.synapse.mediators.MediatorWorker.run(MediatorWorker.java:80)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)


*The service *(there is proxy service that call the below sequence
actually, but the problem is just while writing the file to sFTP server,
hence pasting just the sequence code):

<?xml version="1.0" encoding="UTF-8"?>
<sequence name="MyService"
    onError="fault" xmlns="http://ws.apache.org/ns/synapse">
    <property action="remove" name="ClientApiNonBlocking" scope="axis2"/>
    <in>
        <property name="OUT_ONLY" scope="default" type="STRING"
value="true"/>
        <clone sequential="false">
           <target>
                <sequence>
                    <property
                        expression="get-property('SYSTEM_DATE', 'yyMMdd')"
                        name="sdDate" scope="default" />
                    <property
                        expression="get-property('SYSTEM_DATE', 'HHmmss')"
                        name="sdTime" scope="default" />
                    <property
                        expression="fn:concat(get-property('sdDate'), '_',
get-property('ssTime'),'_MyFile.txt')"
                        name="transport.vfs.ReplyFileName"
                        scope="transport" />
                    <property name="messageType" scope="transport"
value="text/plain"/>
                    <property name="OUT_ONLY" value="true"/>
                    <property name="messageType" scope="axis2"
value="text/plain"/>
                    <property name="ContentType" scope="axis2"
value="text/plain"/>
                    <send>
                        <endpoint name="MyMFTendpoint">
                            <address uri="vfs:sftp://
user_name:user_password@myhost.com/myParentDir/targte/to_target/busdir"/>
                        </endpoint>
                    </send>
                </sequence>
            </target>
        </clone>
    </in>
</sequence>


Any guidance is appreciated.


[Attachment #5 (text/html)]

<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I have a service \
(pasted at the end) that writes to an sFTP server. The service is pasted below. The \
service works fine when writing the file from an installation of WSO2 EI on local \
windows machine, however, the same service when deployed to linux throws the below \
error:</div><div><br></div><div><b>The Error:</b></div><div><br></div><div>ERROR \
{org.apache.synapse.transport.vfs.VFSTransportSender} -<b> cannot resolve replyFile \
</b>org.apache.commons.vfs2.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider.java:86) \
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.getFileSystem(AbstractOriginatingFileProvider.java:149) \
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:111) \
org.apache.commons.vfs2.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginatingFileProvider.java:81) \
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:778) \
org.apache.commons.vfs2.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager.java:658) \
org.apache.synapse.transport.vfs.VFSTransportSender.writeFile(VFSTransportSender.java:233) \
org.apache.synapse.transport.vfs.VFSTransportSender.sendMessage(VFSTransportSender.java:194) \
org.apache.axis2.transport.base.AbstractTransportSender.invoke(AbstractTransportSender.java:112) \
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:442) \
org.apache.axis2.description.OutOnlyAxisOperationClient.executeImpl(OutOnlyAxisOperation.java:297) \
org.apache.axis2.client.OperationClient.execute(OperationClient.java:149) \
org.apache.synapse.core.axis2.Axis2FlexibleMEPClient.send(Axis2FlexibleMEPClient.java:595) \
org.apache.synapse.core.axis2.Axis2Sender.sendOn(Axis2Sender.java:85) \
org.apache.synapse.core.axis2.Axis2SynapseEnvironment.send(Axis2SynapseEnvironment.java:547) \
org.apache.synapse.endpoints.AbstractEndpoint.send(AbstractEndpoint.java:384) \
org.apache.synapse.endpoints.AddressEndpoint.send(AddressEndpoint.java:65) \
org.apache.synapse.mediators.builtin.SendMediator.mediate(SendMediator.java:121) \
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:108) \
org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:70) \
org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158) \
org.apache.synapse.mediators.MediatorWorker.run(MediatorWorker.java:80) \
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) \
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) \
java.lang.Thread.run(Thread.java:748)  \
<br></div><div><br></div><div><br></div><div><b>The service </b>(there is proxy \
service that call the below sequence actually, but the problem is just while writing \
the file to sFTP server, hence pasting just the sequence \
code):</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; \
encoding=&quot;UTF-8&quot;?&gt;</div><div>&lt;sequence \
name=&quot;MyService&quot;</div><div>      onError=&quot;fault&quot; xmlns=&quot;<a \
href="http://ws.apache.org/ns/synapse">http://ws.apache.org/ns/synapse</a>&quot;&gt;</div><div> \
&lt;property action=&quot;remove&quot; name=&quot;ClientApiNonBlocking&quot; \
scope=&quot;axis2&quot;/&gt;</div><div>      &lt;in&gt;</div><div>            \
&lt;property name=&quot;OUT_ONLY&quot; scope=&quot;default&quot; \
type=&quot;STRING&quot; value=&quot;true&quot;/&gt;</div><div>            &lt;clone \
sequential=&quot;false&quot;&gt;</div><div>                 &lt;target&gt;</div><div> \
&lt;sequence&gt;</div><div>                              &lt;property</div><div>      \
expression=&quot;get-property(&#39;SYSTEM_DATE&#39;, \
&#39;yyMMdd&#39;)&quot;</div><div>                                    \
name=&quot;sdDate&quot; scope=&quot;default&quot; /&gt;</div><div>                    \
&lt;property</div><div>                                    \
expression=&quot;get-property(&#39;SYSTEM_DATE&#39;, \
&#39;HHmmss&#39;)&quot;</div><div>                                    \
name=&quot;sdTime&quot; scope=&quot;default&quot; /&gt;</div><div>                    \
&lt;property</div><div>                                    \
expression=&quot;fn:concat(get-property(&#39;sdDate&#39;), &#39;_&#39;, \
get-property(&#39;ssTime&#39;),&#39;_MyFile.txt&#39;)&quot;</div><div>                \
name=&quot;transport.vfs.ReplyFileName&quot;</div><div>                               \
scope=&quot;transport&quot; /&gt;</div><div>                              \
&lt;property name=&quot;messageType&quot; scope=&quot;transport&quot; \
value=&quot;text/plain&quot;/&gt;</div><div>                              \
&lt;property name=&quot;OUT_ONLY&quot; value=&quot;true&quot;/&gt;</div><div>         \
&lt;property name=&quot;messageType&quot; scope=&quot;axis2&quot; \
value=&quot;text/plain&quot;/&gt;</div><div>                              \
&lt;property name=&quot;ContentType&quot; scope=&quot;axis2&quot; \
value=&quot;text/plain&quot;/&gt;</div><div>                              \
&lt;send&gt;</div><div>                                    &lt;endpoint \
name=&quot;MyMFTendpoint&quot;&gt;</div><div>                                         \
&lt;address uri=&quot;vfs:sftp://<a \
href="http://user_name:user_password@myhost.com/myParentDir/targte/to_target/busdir">u \
ser_name:user_password@myhost.com/myParentDir/targte/to_target/busdir</a>&quot;/&gt;</div><div> \
&lt;/endpoint&gt;</div><div>                              &lt;/send&gt;</div><div>    \
&lt;/sequence&gt;</div><div>                  &lt;/target&gt;</div><div>            \
&lt;/clone&gt;</div><div>      \
&lt;/in&gt;</div><div>&lt;/sequence&gt;</div><div><br></div><div><br></div><div>Any \
guidance is appreciated.</div><div><br></div><div><br></div><div><br></div><br></div></div></div></div>




_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic