FtpClient Upload file exception: Java.net.SocketException:Connection reset

Source: Internet
Author: User

FtpClient Upload file exception: Java.net.SocketException:Connection reset

This problem tortured me for almost a day, the afternoon is finally resolved, the problem is not a program error, the reason is the client to upload pictures:

Paste the exception code block:

 -: -:20.117INFO [email protected] in-successfully logged into FTP server -: -:20.123ERROR [email protected]166-Connection resetjava.net.SocketException:Connection Reset at Java.net.SocketInputStream.read ( Socketinputstream.java:196) ~[?:1.7. 0_79] at Java.net.SocketInputStream.read (Socketinputstream.java:122) ~[?:1.7. 0_79] at Sun.nio.cs.StreamDecoder.readBytes (Streamdecoder.java:283) ~[?:1.7. 0_79] at Sun.nio.cs.StreamDecoder.implRead (Streamdecoder.java:325) ~[?:1.7. 0_79] at Sun.nio.cs.StreamDecoder.read (Streamdecoder.java:177) ~[?:1.7. 0_79] at Java.io.InputStreamReader.read (Inputstreamreader.java:184) ~[?:1.7.0_79]

Workaround:

Disable stateful FTP filtering so that firewalls do not block any FTP traffic

DOS window execution: netsh advfirewall set global statefulftp disable

Reference URL: https://technet.microsoft.com/zh-cn/library/dd421710%28v=ws.10%29.aspx

FtpClient Upload file exception: Java.net.SocketException:Connection reset

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.