Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

JBoss から Postgres に接続すると "There is no record on pg_hba.conf" エラーが発生します

Solution Verified - Updated -

Issue

Postgres データベースに接続すると以下のエラーが表示されます。

org.postgresql.util.PSQLException:FATAL: there is no record on pg_hba.conf for 172.26.112.26, user MYUSER, database MYDATABASE, SSL inactive
    at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:276)
    at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:95)
    at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:124)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30)
    at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24)
    ...

Environment

  • Postgres 8.x
  • JBoss Operational Network (JON)
    • 2.3
    • 2.4
    • 3.0
    • 3.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.