[Adding [email protected]] On Mon, 11 Mar 2019, 18:53 Srivathsan Shanmuganathan <[email protected] wrote:
> Hi Sanjay, > May I know which version of WSO2 EI you are using? > As I have checked with EI 6.4.0 it seems to be working fine. Could you > please double check your sftp uri pattern? (If you are using any symbols > you can encode them and try) > It would be better if you could kindly share your proxy service and the > full logs so that we can assist you more. > > Thanks > > Regards, > Srivathsan S > > On Sun, Feb 24, 2019 at 10:22 PM Sanjay Bawri <[email protected]> > wrote: > >> 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:[email protected]/myParentDir/targte/to_target/busdir"/> >> </endpoint> >> </send> >> </sequence> >> </target> >> </clone> >> </in> >> </sequence> >> >> >> Any guidance is appreciated. >> >> >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> > > > -- > *S.Srivathsan* > Software Engineer | WSO2 > (M) +94 774606335 | (E) [email protected] >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
