JSCH-SCP fails for files with size > java's Integer.MAX_INT, that is 2147483647 
bytes.  The error I see is

    java.lang.NumberFormatException: For input string: "2247744512".  

As you can guess, my file size in this case is 2247744512 bytes.

I am using JSCH with ANT, my script looks like this:

        <scp todir="localdir" 
             file="[EMAIL PROTECTED]:${ssh.path}filename.tar"
             knownhosts="${ssh.knownhosts}"
             failonerror="true"
             keyfile="${ssh.keyfile}"
             passphrase="${ssh.passphrase}"
             verbose="true"
        />

Any known workaround, besides splitting the file?



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to