Page 1 of 1

Java 1.7 and SFTP

Posted: Wed Jan 23, 2013 9:14 pm
by hauky
I have an installation of JFU with SFTP addon (both 2.9.1) that works fine with Java 1.6 installed. When 1.7 is installed, it does not upload successfully. In the Java console, it gets to the line where it tries to enable PASV and then stops. Looking at the SFTP server's logs, it shows an active connection for about a minute before it terminates it.

I've tried adding <param name="java_arguments" value="-Djava.net.preferIPv4Stack=true"> to the page, but it doesn't have an effect. Is there some other param I should pass in?

Re: Java 1.7 and SFTP

Posted: Sat Feb 02, 2013 11:44 am
by support
Are you using Windows or MacOSX or ?

Re: Java 1.7 and SFTP

Posted: Mon Feb 04, 2013 8:42 pm
by hauky
Windows 7 64 bit (but 32 bit browsers/Java plugins). We've tried in IE8, Chrome, and Firefox all without success.

Re: Java 1.7 and SFTP

Posted: Tue Feb 05, 2013 3:17 pm
by hauky
I tried running this once with tracing enabled in the Java console, and it pauses after this (I'm Xing out the IP address):

[INFO] E - Connected to sftp://x.x.x.178
[INFO] E - OK
[INFO] E - PASV enabled
network: Connecting http://x.x.x.178:22/ with proxy=DIRECT

Re: Java 1.7 and SFTP

Posted: Tue Feb 05, 2013 4:27 pm
by hauky
I've also tried disabling the Windows firewall completely and applying MS hotfix KB2754804 to my Windows installation with no effect.

Re: Java 1.7 and SFTP

Posted: Tue Feb 12, 2013 8:58 pm
by support
Could you provide a testing SFTP account to support(at)jfileupload(dot)com so we can try to reproduce the problem from here?

Re: Java 1.7 and SFTP

Posted: Thu Feb 21, 2013 2:55 pm
by hauky
For anyone who finds this in the future: we were able to fix it by disabling Kerberos/NTLM auth in our SFTP server. We had to disable these because JFU would stop after these lines:

[DEBUG] SFTPClient - Authentications that can continue:
gssapi-with-mic,publickey,keyboard-interactive,password
[DEBUG] SFTPClient - Next authentication method: gssapi-with-mic

Disabling these two auths cause it to not include gssapi-with-mic in the list, so JFU continues to the other methods successfully.

Re: Java 1.7 and SFTP

Posted: Thu Feb 28, 2013 7:29 am
by support
Thanks.