org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Connection refused when inserting

    Database Administrators | 2 years ago | Luan Huynh
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

    Root Cause Analysis

    1. org.postgresql.util.PSQLException

      Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

      at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl()
    2. PostgreSQL JDBC Driver
      Jdbc3gConnection.<init>
      1. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:207)
      2. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
      3. org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136)
      4. org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
      5. org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
      6. org.postgresql.jdbc3g.Jdbc3gConnection.<init>(Jdbc3gConnection.java:24)
      6 frames