AnsweredAssumed Answered

SFTP Error: Could not parse responde code SSH... ftp:open

Question asked by Olivier_Carrier on Dec 10, 2018
Latest reply on Dec 11, 2018 by Olivier_Carrier

Hi all,

as I have a SFTP question I am posting my small issue (Could not parse responde code for ftp:open tag) here:

 

org.apache.commons.jelly.JellyTagException: null:20:97: <ftp:open> Could not parse response code.

Server Reply: SSH-2.0-OpenSSH_7.4

                         at com.niku.union.gel.tags.ftp.OpenTag.openFTP(OpenTag.java:78)

Caused by: org.apache.commons.net.MalformedServerReplyException: Could not parse response code.
Server Reply: SSH-2.0-OpenSSH_7.4
                         at org.apache.commons.net.ftp.FTP.__getReply(FTP.java:331)

Here is my GEL script trying to write on our SFTP folder:

<gel:parameter var="clarityURL" default="https://cppmXXXX-test.ondemand.ca.com"/>

<gel:parameter var="clarityUser" default="admin"/>

<gel:parameter var="claritypwd" default="***!" secure="true"/>

 

<gel:parameter default="/Clarity" var="sharefolder"/>

<gel:parameter default="/Clarity" var="docPath"/> 

 

<gel:parameter default="10000" var="end"/>

<gel:setDataSource dbId="niku"/>

<gel:parameter default="C:\temp" var="inputfolder"/>

 

<core:set value="${inputfolder}\test_ray.txt" var="file_read"/>

<ftp:open hostName="sftp3.ondemand.ca.com" port="22" user="MUNXXXX" password="xyz">

               <ftp:put fileName="${file_name}" localDir="${file_read}" remoteDir="/home/MUNXXXX/sftp/Development/SCP"/>

</ftp:open>

 

many thanks in advance for any kind of help!

Olivier

Outcomes