enterprisedt.com Forum Index CompleteFTP
RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
Bug in Java 7 stops FTP on Windows - PLEASE VOTE
Author Message
Reply with quote
Post Bug in Java 7 stops FTP on Windows - PLEASE VOTE 
There's a major bug in Java 7 that prevents ALL transfers on Windows machines!

We've reported it at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696

It's been accepted, but marked as "low priority". For anyone using FTP on Java/Windows it's certainly a very high priority.

PLEASE VOTE the bug up - here.

We're hoping to get it into the top 25.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Thanks for your votes. As of 11/11/2011 the bug is now in the top 25 bugs.

There's also a lively discussion on reddit, which includes post by a representative of Oracle -

http://www.reddit.com/r/java/comments/m5k7f/oracle_breaks_ftp_in_java_7_on_windows_and_thinks/

- Hans (EnterpriseDT)

View user's profile Send private message Send e-mail
Reply with quote
Post  
Oracle has analysed the problem and have found that it seems to be a bug in Windows Firewall and/or the IPv6 stack. They managed to replicate the problem with a native C (i.e. non-Java app), so this is strong evidence that the bug is not in Java. They have informed Microsoft, so the ball is in their court now.

More details can be found at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696

View user's profile Send private message Send e-mail
Reply with quote
Post  
As explained in the threads, it turns out that it's a problem with the Windows IPv6 stack, which Java 7 uses by default.

A workaround is to switch back to the IPv4 stack by including

-Djava.net.preferIPv4Stack=true

on your command-line.

View user's profile Send private message Visit poster's website
Reply with quote
Post  
Jean Christian from Miranda has kindly told us that the the preferIPv4Stack suggestion didn't work for him, but that issuing the following command on the Windows command-line did:
Code:
netsh advfirewall set global StatefulFTP disable


- Hans (EnterpriseDT)



Last edited by EDT Support on Tue Sep 25, 2012 7:36 pm; edited 1 time in total
View user's profile Send private message Send e-mail
Reply with quote
Post  
EDT Support wrote:
Oracle has analysed the problem and have found that it seems to be a bug in Windows Firewall and/or the IPv6 stack. They managed to replicate the problem with a native C (i.e. non-Java app), so this is strong evidence that the bug is not in Java. They have informed Microsoft, so the ball is in their court now.

More details can be found at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7077696



Thanks for nice sharing.

View user's profile Send private message
Reply with quote
Post  
Actually there have been more developments since then. Microsoft has provided a patch to Oracle for testing. No word on when it will be publicly released yet.

- Hans (EnterpriseDT)

View user's profile Send private message Send e-mail
Reply with quote
Post  
Success at last! Microsoft has publicly released a hotfix. They imply that the fix will be included in a general software update in the future:
Quote:
if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.


- Hans (EnterpriseDT)

View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum