Inbound SSHFTP (SFTP) file transfers fail with "corrupt string on read" error.

Inbound SSHFTP (SFTP) file transfers fail with "corrupt string on read" error.

book

Article ID: KB0073023

calendar_today

Updated On:

Products Versions
TIBCO BusinessConnect -
Not Applicable -

Description

Resolution:

Description:
============
With some SSHFTP (SFTP) servers, inbound SSHFTP file transfers fail with "corrupt string on read".  The failure looks like following in the BusinessConnect*.log file.

2011 Jun 09 10:18:30:953 GMT -5 BW.BusinessConnect-Interior_Server-1 Error [bw.logger] BW-EXT-LOG-100000 Job-183001-2-13.183016 java.lang.Error: Error in SSH2DataBuffer, corrupt string on read
        at com.mindbright.ssh2.SSH2DataBuffer.readJavaString(SSH2DataBuffer.java:185)
        at com.mindbright.ssh2.SSH2SFTPClient.readdir(SSH2SFTPClient.java:817)
        at com.tibco.ax.fw.runtime.transport.sshftp.MTClient.getDir(Unknown Source)
        at com.tibco.ax.fw.runtime.transport.sshftp.SSHFTPClientImpl.executeCmd(Unknown Source)
        at com.tibco.ax.fw.runtime.transport.sshftp.SSHFTPClientImpl.executeListCmd(Unknown Source)
        at com.tibco.ax.fw.runtime.transport.sshftp.SSHFTPClientImpl.executeMgetCmd(Unknown Source)
        at com.tibco.ax.fw.runtime.transport.sshftp.SSHFTPClientImpl.executeGetOrMgetCmd(Unknown Source)
        at com.tibco.ax.fw.runtime.poller.ftp.FTPPoller.int(Unknown Source)
        at com.tibco.ax.fw.runtime.poller.ftp.FTPPoller.execute(Unknown Source)
        at com.tibco.ax.fw.util.ThreadPool$ManagedThread.run(Unknown Source)

Environment:
==========
TIBCO BusinessConnect Protocol 5.2.X and above.

Cause:
=========
This issue has been reported with some SSHFTP servers when the server directory or server directory contents being scanned contain a large number of files.

Resolution:
=========
Reduced the number of files in all directories to a lower number, typically under one hundred.

Issue/Introduction

Inbound SSHFTP file transfers fail with "corrupt string on read" error.