IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

wasftp:cd returning error code 4

  • 1.  wasftp:cd returning error code 4

    Posted 01/05/13 02:23 PM

    I am using the WaSFTP package to connect to client SFTP server.
    I can login fine but when I use the wasftp:cd command to change directory it does not change directory and returns a status of “4”.
    When I do a wasftp:pwd it shows I am in my home directory.
    Does anyone have any idea what might be going on?

    I need to move to the “Test” directory and I have tried “Test” and “/Test” and neither seem to work.

    Any ideas would be appreciated.


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 2.  RE: wasftp:cd returning error code 4

    Posted 01/05/13 02:25 PM

    I think I figured it out. It seems to want the path to be “TEST” even though when I do a dir on the server itself it appears as “Test”


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 3.  RE: wasftp:cd returning error code 4

    Posted 01/05/13 04:17 PM

    My problem now is it will cd into “TEST” but it won’t actually put the file there.
    If I don’t do the CD, it puts the file fine.
    If I do a PUT with the full path it still won’t put it there.
    It will only PUT the file in the home directory.
    I also don’t get any errors when it tries to put them there.


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 4.  RE: wasftp:cd returning error code 4

    Posted 01/07/13 02:28 PM

    BTW, I’ve tried to use wasftp:cd to move to the directory and put the file.
    I’ve also tried to put the full path in the wasftp:put command and neither will put the file in place.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: wasftp:cd returning error code 4

    Posted 01/07/13 04:27 PM

    so I am able to CD one level to the /TEST directory.
    If I go only one level I can PUT a file there.
    if I CD two levels /TEST/IN, the CD is successful but the PUT does not put the file there.
    I also do not receive any error. It is as if WM thinks the file has been put there but it doesn’t show up. I can manually drop a file there with no issue.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 6.  RE: wasftp:cd returning error code 4

    Posted 01/07/13 04:38 PM

    Can you also check the IS logs and see if any errors?

    Can you have 2 CD calls and try put a file if that works for you (although with one CD should work)?

    HTH,
    RMG


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 02:41 PM

    Hi RMG, I have tried 2 CD calls(or 1 CD call) and it doesn’t matter. When I do a PWD and LS, I am in the right directory the PUT just won’t put the file there. I’ve even tried putting the full path in the PUT statement and it still will not put the file there. I get a null status (which is good).
    If I mis-type any part of the directory in the PUT statement I get an error so it appears to be functioning correctly. I see no errors in the IS.
    I have even manually put a file over there to make sure they weren’t auto-picking it up quickly and those files stay out there so it appears the PUT is not working correctly.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 03:42 PM

    Oh that sounds a weird behavior…what is the IS version?

    Can you please contact SAG support may be they can point you in the right direction with any fix or other troubleshooting options?

    HTH,
    RMG


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 9.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 04:35 PM

    We are on version 8.0.
    I thought that the waSFTP package was unsupported by SAG?


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 05:02 PM

    Does interacting with the server using something other than IS and waSFTP behave the same way? Or are these symptoms specific to IS/waSFTP?


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 11.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 05:37 PM

    Hi Reamon, it is specific to the IS/waSFTP. If I use WinSCP it works just fine.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 05:42 PM

    BTW, I have opened a ticket with SAG support to see what they might say.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 13.  RE: wasftp:cd returning error code 4

    Posted 01/08/13 06:05 PM

    Then I suspect may be the issue with the waSFTP CD or PUT service functionality with double folder path self?


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 14.  RE: wasftp:cd returning error code 4

    Posted 01/21/13 07:31 PM

    SAG support responded that they do not support this package.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 15.  RE: wasftp:cd returning error code 4

    Posted 01/22/13 04:23 PM


  • 16.  RE: wasftp:cd returning error code 4

    Posted 03/13/13 09:03 PM

    Chris,

    Where did you get the WaSFTP package from SAG/Empower?

    Can you please share the info:

    TIA,
    RMG


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 17.  RE: wasftp:cd returning error code 4

    Posted 03/14/13 04:03 PM

    Hi RMG, we are trying to figure out where the package came from.
    The guy that downloaded it said he thinks he either got it here or the empower site but I have been unable to find it on either site. It has been well over a year since he got it so I expect the sites have changed.

    BTW, I figured out my issue. The partner had a very hard to see space in their directory path.
    it was /TEST/To_ Client instead of /TEST/To_Client. After removing the space it worked fine.


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 18.  RE: wasftp:cd returning error code 4

    Posted 09/24/13 06:13 AM

    Hi all

    did you check the about page.
    if there is jsch-xxxxx.jar in WS-Stack/lib.
    upload jsch-0.1.37.jar that exists in WaSFTP/code/jars to $IS_HOME/lib/jars manually
    then restart IS.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 19.  RE: wasftp:cd returning error code 4

    Posted 09/24/13 12:20 PM

    What does this fixes?? will the return codes work as expected?

    HTH,
    RMG


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 20.  RE: wasftp:cd returning error code 4

    Posted 09/24/13 11:41 PM

    Hi RMG

    this is not the fix, jsch-0.1.37.jar is located in WaSFTP package itself.
    for your understanding, i would like to share my exprience
    i have 7.1.3 & 8.2.1 IS.
    when i tested it on 7.1.3, everything works fine.
    but on 8.2.1 wasftp:cd does not work, it coudn’t change directory.

    1st try, i thought jsch-0.1.37.jar has problem in JAVA6.
    so, replaced it to the newer version(0.1.49).

    • does not work and i couldn’t find 0.1.49.jar in about page.
    • but i found another version(0.1.31) is loaded on IS.

    2nd try, upload 0.1.37.jar to IS_HOME/lib/jar to precede 0.1.31

    • it works.

    HTH,
    namhoon.kim


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 21.  RE: wasftp:cd returning error code 4

    Posted 09/25/13 11:17 AM

    Thanks for getting back on this.

    So are you saying jsch-0.1.37.jar will work on IS8.2.2 with Java Version 1.6.0 (50.0) once loaded to IS/lib/jars folder and restart IS?

    Does it also everything works on IS 7.1.2 once loaded to IS/lib/jars?

    HTH,
    RMG


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 22.  RE: wasftp:cd returning error code 4

    Posted 09/25/13 12:52 PM

    hi RMG

    1. exactly 8.2.1, Java6 that supported by SAG.
    2. 7.1.3 does not need jar upload.

    HTH
    namhoon.kim


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 23.  RE: wasftp:cd returning error code 4

    Posted 09/25/13 02:14 PM

    But on 7.1.2 it doesn’t work as expected…it’s some how locking the sFTP account on the remote site when ever I try login service etc…very weird: :frowning:

    So my question is do I need to load that jsch jar file to IS/lib/jars and try?


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 24.  RE: wasftp:cd returning error code 4

    Posted 09/25/13 11:55 PM

    i’m not sure, but if you have test environment.
    i think try is better.

    HTH,
    namhoon.kim


    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB
    #webMethods


  • 25.  RE: wasftp:cd returning error code 4

    Posted 09/26/13 12:12 PM