pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pawel_kukawski <kukismen@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: PSQLException: FATAL: password authentication failed for user "XXX"
Date: Fri, 26 Apr 2013 06:09:01 -0700 (PDT)
Message-ID: <1366981741243-5753396.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Hi,

I have experienced authentication problems after applying a security
patch(147440-09) to Solaris 10.

PostgreSQL 9.2.1
JDBC: 9.2 1002

I got the following exception during startup of my application:
Caused by: org.postgresql.util.PSQLException: FATAL: password authentication
failed for user "XXX"
	at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:398)
	at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:173)
	at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
	at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:136)
	at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
	at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
	at
org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
	at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
	at org.postgresql.Driver.makeConnection(Driver.java:393)
	at org.postgresql.Driver.connect(Driver.java:267)
	at
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
	at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:183)
	at
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:172)
	at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.ensureFirstConnectionAcquisition(C3P0PooledConnectionPoolManager.java:959)
	at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.createPooledConnectionPool(C3P0PooledConnectionPoolManager.java:846)
	at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0PooledConnectionPoolManager.java:319)
	at
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0PooledConnectionPoolManager.java:311)
	at
com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:134)
	at
org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIConnector.java:132)
	... 18 more



However I can login via psql


My pg_hba.conf file

# TYPE  DATABASE        USER            ADDRESS                 METHOD
local  all              all                                     md5
# IPv4 local connections:
host    all             all             127.0.0.1/32            md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
host    replication     XXX       127.0.0.1/32            md5
host    replication     XXX          ::1/128                 md5


Does anyone know how to fix it ?

PS.
I must say that uninstalling the security patch is not an option for me :)

Regards,
Paweł




--
View this message in context: http://postgresql.1045698.n5.nabble.com/PSQLException-FATAL-password-authentication-failed-for-user-...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (4+ messages)  latest in thread

Message-ID: <1366981741243-5753396.post@n5.nabble.com>
Permalink:  ../1366981741243-5753396.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1366981741243-5753396.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kukismen@gmail.com
  Subject: Re: PSQLException: FATAL: password authentication failed for user "XXX"
  In-Reply-To: <1366981741243-5753396.post@n5.nabble.com>
  References: <1366981741243-5753396.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox