Menu ▾ ▴

#88 I am getting error while downloading a file more than 64kb

open
nobody
J2SSH (50)
5
2012-04-23
2012-04-23
Srikanth
No

I am getting error while downloading a file more than 64kb by J2SSH.

I am able to successfully download the files which are less than 64kb in size.

Below is the error i am getting while downloading the file which is more than 64kb.

Exception occured : java.lang.NullPointerException
java.lang.NullPointerException
at com.sshtools.j2ssh.sftp.SftpSubsystemClient.readFile(Unknown Source)
at com.sshtools.j2ssh.sftp.SftpFileInputStream.read(Unknown Source)
at java.io.InputStream.read(InputStream.java:101)
at com.sshtools.j2ssh.SftpClient.transferFile(Unknown Source)
at com.sshtools.j2ssh.SftpClient.get(Unknown Source)
at com.sshtools.j2ssh.SftpClient.get(Unknown Source)
at com.sshtools.j2ssh.SftpClient.get(Unknown Source)
at Test.main(Test.java:44)

Can anyone please provide me with a solution. Thanks

Discussion


Log in to post a comment.