UrlResource.getInputStream() has thrown a ConnectException

java.net.ConnectException
at java.net.DualStackPlainSocketImpl.connect0
at java.net.DualStackPlainSocketImpl.socketConnect
at java.net.AbstractPlainSocketImpl.doConnect
at java.net.AbstractPlainSocketImpl.connectToAddress
at java.net.AbstractPlainSocketImpl.connect
at java.net.PlainSocketImpl.connect
at java.net.Socket.connect
at java.net.Socket.connect
at sun.net.ftp.impl.FtpClient.doConnect
at sun.net.ftp.impl.FtpClient.tryConnect
at sun.net.ftp.impl.FtpClient.connect
at sun.net.ftp.impl.FtpClient.connect
at sun.net.www.protocol.ftp.FtpURLConnection.connect
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream
at org.springframework.core.io.UrlResource.getInputStream
14 frames hidden

Typical Exception Messages

  1. Connection refused: connect
  2. Connection timed out: connect

Origin

Similar

Specific cases

We have seen this error pattern in the following webpages (1)