Monday, February 11, 2013

SocketException connecting to FTP via Java 7 and Windows 7

Today I ran into some strange behavior while trying to connect to a FTP server in an integration test in eclipse.  When I ran the test I would receive this error message: java.net.SocketException: Software caused connection abort: recv failed.

At first I assumed my firewall was blocking it so I temporarily disabled it, but it still didn't work. To make things even stranger I could connect just fine with my WinSCP client.

After some googling around I came across this stackover post.  Basically it describes the problem with Windows 7 combined with Java 7.  Luckily, Microsoft did create a hot fix for it, which did solve the problem for me.

No comments:

Post a Comment