Hello,
We are using edtftpj-pro.jar version 1.2.4 library and we (appears to be on occasions) are running into the following Exception when calling connect() method on SSHFTPClient.
java.lang.ArrayIndexOutOfBoundsException: 1
at java.util.ArrayList.get(ArrayList.java:326)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.getEnabledAlgorithms(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.C(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.connect(Unknown Source)
We believe this is some multi-threading problem in this library as looks like the problem is in the static List being maintained by the getEnabledAlgorithms() related code. Our application is running under substantial load where other application threads are calling out this library for their own tasks. So, it appears that as part of this library initialization steps, which may get run as part of other threads, the static List variable is being mutated and then cause problem in the described case, but this is just a hypothesis.
I wonder if anyone has run into this problem before and knows a resulution for it? Your help will be greatly appreciated.
Thanks,
Dmitriy.