<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 39: ArrayIndexOutOfBoundException occurring while using Jsch sftp channel</title><link href="https://sourceforge.net/p/jsch/support-requests/39/" rel="alternate"/><link href="https://sourceforge.net/p/jsch/support-requests/39/feed.atom" rel="self"/><id>https://sourceforge.net/p/jsch/support-requests/39/</id><updated>2021-05-23T23:21:38.594000Z</updated><subtitle>Recent changes to 39: ArrayIndexOutOfBoundException occurring while using Jsch sftp channel</subtitle><entry><title>#39 ArrayIndexOutOfBoundException occurring while using Jsch sftp channel</title><link href="https://sourceforge.net/p/jsch/support-requests/39/?limit=25#5ce2" rel="alternate"/><published>2021-05-23T23:21:38.594000Z</published><updated>2021-05-23T23:21:38.594000Z</updated><author><name>Mohammed Shabbir</name><uri>https://sourceforge.net/u/mshabbir85/</uri></author><id>https://sourceforge.netc73d996aabfea0c65b8a552d698b29cf9b435274</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;on further analysis, its found that the issue is due to wildcard character ( * ) due to which glob_remote throws ArrayIndexOutOfBoundException. workaround do ls and give complete file name as paramter to get method. followed below steps&lt;br/&gt;
1. set change directory&lt;br/&gt;
2. do ls to get all the files (its available in vectors)&lt;br/&gt;
3. give complete file name as source for the get method&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#39 ArrayIndexOutOfBoundException occurring while using Jsch sftp channel</title><link href="https://sourceforge.net/p/jsch/support-requests/39/?limit=25#5a10" rel="alternate"/><published>2021-05-23T09:44:14.857000Z</published><updated>2021-05-23T09:44:14.857000Z</updated><author><name>Mohammed Shabbir</name><uri>https://sourceforge.net/u/mshabbir85/</uri></author><id>https://sourceforge.netc7fb2869ac26ef4595ee4b01bb15dc85fb9e7096</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;i'm able to bypass that issue by setting the change directory on the sftp channel. So this ticket can be closed but it will be good if we can find a way to reset the buffer externally so that it doesn't throw ArrayIndexOutOfBoundException &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ArrayIndexOutOfBoundException occurring while using Jsch sftp channel</title><link href="https://sourceforge.net/p/jsch/support-requests/39/" rel="alternate"/><published>2021-05-23T04:40:26.139000Z</published><updated>2021-05-23T04:40:26.139000Z</updated><author><name>Mohammed Shabbir</name><uri>https://sourceforge.net/u/mshabbir85/</uri></author><id>https://sourceforge.net58adf1c703bc3c18651b4826bd866f753de8d4d1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi, getting ArrayIndexOutOfBoundException  while using sftp channel for csv files transfers and it seems like the buf.reset() is not resetting the buffer while reading . The  issue  however doesn't occur  while debugging by setting the breakpoint at globe_remote(path)...  buf.reset() and going step by step. Could you kindly advise what could be the reason and how to fix the error. Thanks &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>