SftpCore.ThrowOnError(Packet packet, Type expected)

0 votes
asked Nov 6, 2012 by Vijay (140 points)
edited Nov 6, 2012

Hi

I am getting the below error message

at Rebex.Net.SftpCore.ThrowOnError(Packet packet, Type expected)
   at Rebex.Net.SftpCore.Open(String path, SftpOpenMode mode, Boolean failOnError)
   at Rebex.Net.Sftp.PutFileInternal(SftpOpenMode mode, Object state, String remotePath, Stream sourceStream, Int64 remoteOffset, Int64 length)
   at Rebex.Net.Sftp.PutFile(Stream sourceStream, String remotePath)
   at CEF.BPM.CommonLine.Processing.Commonline.UploadLS08File()

while I Put file to Mainframe job

Applies to: Rebex SFTP
commented Nov 6, 2012 by Jan Sotola (16,930 points)
edited Nov 6, 2012

I'm afraid we cannot deduce anything just from the provided message. Could you, please, create a communication log (as described at http://www.rebex.net/kb/logging) and mail it to support@rebex.net for analysis?

commented Nov 6, 2012 by Lukas Pokorny (109,650 points)
edited Nov 6, 2012

It looks like you only posted the stack trace without the exception message. Would it be possible to post the exception message as well? Of course, the log Jan asked for would be even better.

commented Nov 6, 2012 by Lukas Pokorny (109,650 points)
edited Nov 6, 2012

Also, please let us know which version of Rebex SFTP you use. From the stack trace, it looks like it's more than 2 years old.

commented Nov 6, 2012 by Vijay (140 points)
edited Nov 6, 2012

I am using 3.0.3810.0 version

commented Nov 6, 2012 by Vijay (140 points)
edited Nov 6, 2012

I like to know whether SFTP support Site command

commented Nov 6, 2012 by Jan Sotola (16,930 points)
edited Nov 6, 2012

Are you sure with the version number? Rebex has never released anything with a build number "3810".

commented Nov 6, 2012 by Vijay (140 points)
edited Nov 6, 2012

Can you please provide some example to write JCL file into Mainframe job

commented Nov 6, 2012 by Vijay (140 points)
edited Nov 6, 2012

The same is working for FTP

commented Nov 6, 2012 by Jan Sotola (16,930 points)
edited Nov 6, 2012

The SITE command is not supported in SFTP protocol. However, there is a more general feature called "remote execute" supported on many SFTP servers.

See the following article for details: http://forum.rebex.net/questions/3202/how-to-execute-command-on-sftp-server/3203

commented Nov 6, 2012 by Jan Sotola (16,930 points)
edited Nov 6, 2012

There are too many comments regarding several topics in this thread. If you feel some of comments is still unanswered, please open a new question.

1 Answer

0 votes
answered Nov 6, 2012 by Jan Sotola (16,930 points)

It looks like you only posted the stack trace without the exception message. Would it be possible to post the exception message as well? Of course, the log I asked for in the comments would be even better.

Also, please let us know which version of Rebex SFTP you use. From the stack trace, it looks like it's more than 2 years old.

...