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

Stack Overflow | hywy | 5 months ago
  1. 0

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

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

    GitHub comment 489#170566860

    GitHub | 11 months ago | HazCod
    org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "2.170.238.32", user "test", database "test", SSL off
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    PSQLException: password-based authentication

    Stack Overflow | 11 months ago | Palak Chugh
    org.postgresql.util.PSQLException: The server requested password-based authentication, but no password was provided.
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