org.postgresql.util.PSQLException: The connection attempt failed.

Stack Overflow | hywy | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Connecting with java to postgresql server failed (UTF-8)

    Stack Overflow | 7 months ago | hywy
    org.postgresql.util.PSQLException: The connection attempt failed.
  2. 0

    Java::chat ><> & Chips - 2016-06-06 (page 1 of 2)

    stackoverflow.com | 8 months ago
    org.postgresql.util.PSQLException: Der Verbindungsversuch schlug fehl.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 489#170566860

    GitHub | 1 year ago | HazCod
    org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "2.170.238.32", user "test", database "test", SSL off
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

    Illegal UTF-8 sequence: initial byte is 11111xxx: 252

    at org.postgresql.core.UTF8Encoding.decode()
  2. PostgreSQL JDBC Driver
    ConnectionFactory.openConnection
    1. org.postgresql.core.UTF8Encoding.decode(UTF8Encoding.java:131)
    2. org.postgresql.core.PGStream.ReceiveString(PGStream.java:331)
    3. org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:447)
    4. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:223)
    5. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:67)
    5 frames
  3. org.postgresql.jdbc
    PgConnection.<init>
    1. org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:212)
    1 frame
  4. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.Driver.makeConnection(Driver.java:407)
    2. org.postgresql.Driver.connect(Driver.java:275)
    2 frames
  5. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  6. com.hywy
    TestConnection.main
    1. com.hywy.TestConnection.main(TestConnection.java:23)
    1 frame