Database server connection timed out while client trying to connect to it

java.net.SocketTimeoutException
Javadoc
at java.net.PlainSocketImpl.socketConnect
(source)
at java.net.AbstractPlainSocketImpl.doConnect
(source)
at java.net.AbstractPlainSocketImpl.connectToAddress
(source)
at java.net.AbstractPlainSocketImpl.connect
(source)
at java.net.SocksSocketImpl.connect
(source)
at java.net.Socket.connect
(source)
at org.postgresql.core.PGStream.<init>
(source)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
(source)
org.postgresql.util.PSQLException
Javadoc
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
(source)
8 frames hidden

Typical Exception Messages

  1. The connection attempt failed.
  2. Der Verbindungsversuch schlug fehl.

Origin

ConnectionFactoryImpl.openConnectionImpl() has thrown a SocketTimeoutException

java.net.SocketTimeoutException
7 frames hidden
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl
5Web pages

Similar

Specific cases

Solution

rahsan, 1 month ago

Please read this solution for possible reasons.

External results for this pattern (4)

  1. The connection attempt failed.
    Show stack trace
  2. RamRamvia Stack Overflow8 months ago
    The connection attempt failed.
    Show stack trace