pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedRandom crashes on getConnection
4+ messages / 2 participants
[nested] [flat]
* Random crashes on getConnection
@ 2009-06-10 08:36 Ramon Poca <ramon.poca@androme.es>
0 siblings, 0 replies; 4+ messages in thread
From: Ramon Poca @ 2009-06-10 08:36 UTC (permalink / raw)
To: pgsql-jdbc
I get random exceptions on GetConnection() on a Quartz-based job.
Sometimes everything works, and sometimes I get a "Protocol Error.
Session setup failed". Does anybody know what might be happening?
Client: Both postgresql-8.3-604.jdbc4.jar and
postgresql-8.4dev-700.jdbc4.jar.
Server: Postgres 8.1. The databases are stored in LATIN9 encoding.
JVM: java-6-sun-1.6.0.12
SEVERE: com.androme.phemium.statistics.EligibleCustomerList@3b1d04
org.postgresql.util.PSQLException: Protocol error. Session setup failed.
at
org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:481)
at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101)
at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:124)
at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at
org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:207)
at
com.androme.phemium.statistics.EligibleCustomerList.get(EligibleCustomerList.java:34)
at
com.androme.phemium.statistics.StatisticsCollectionDispatcher.execute(StatisticsCollectionDispatcher.java:79)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
PS: Sorry if this message duplicates.
--
<b>Ramon Poca</b> <br/>
<a href="mailto:ramon.poca@androme.es">ramon.poca@androme.es</a>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Random crashes on getConnection
@ 2009-06-10 10:59 Ramon Poca <ramon.poca@androme.es>
0 siblings, 1 reply; 4+ messages in thread
From: Ramon Poca @ 2009-06-10 10:59 UTC (permalink / raw)
To: pgsql-jdbc
I've traced the crash to:
org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(PGStream,
ProtocolConnectionImpl, Logger) line: 470
For some reason, client_encoding gets changed back and forth from
UNICODE to LATIN9. When it's LATIN9, it causes the exception.
In my connection URL/parameters I do not force any encoding. LATIN9 is
the encoding the database is set to. What can be causing this switch?
(Message that caused the exception: beresp = 83 (E),
client_encoding=LATIN9)
Any ideas?
-----------
>I get random exceptions on GetConnection() on a Quartz-based job.
>Sometimes everything works, and sometimes I get a "Protocol Error.
>Session setup failed". Does anybody know what might be happening?
>Client: Both postgresql-8.3-604.jdbc4.jar and
>postgresql-8.4dev-700.jdbc4.jar.
>Server: Postgres 8.1. The databases are stored in LATIN9 encoding.
>JVM: java-6-sun-1.6.0.12
>SEVERE: com.androme.phemium.statistics.EligibleCustomerList@3b1d04
>org.postgresql.util.PSQLException: Protocol error. Session setup >failed.
> at
>org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:481)
> at
>org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101)
> at
--
<b>Ramon Poca</b> <br/>
<a href="mailto:ramon.poca@androme.es">ramon.poca@androme.es</a>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Random crashes on getConnection
@ 2009-06-10 11:16 Ramon Poca <ramon.poca@androme.es>
parent: Ramon Poca <ramon.poca@androme.es>
0 siblings, 1 reply; 4+ messages in thread
From: Ramon Poca @ 2009-06-10 11:16 UTC (permalink / raw)
To: pgsql-jdbc
And in a quick reply to myself: PGPOOL
The damn thing was installed on postgres port, and when reused a
connection from a php client (using LATIN9), broke the whole thing.
Please, someone add this to the documentation/FAQ/whatever.
Ramon Poca escribió:
> I've traced the crash to:
>
> org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(PGStream,
> ProtocolConnectionImpl, Logger) line: 470
>
> For some reason, client_encoding gets changed back and forth from
> UNICODE to LATIN9. When it's LATIN9, it causes the exception.
>
> In my connection URL/parameters I do not force any encoding. LATIN9 is
> the encoding the database is set to. What can be causing this switch?
>
> (Message that caused the exception: beresp = 83 (E),
> client_encoding=LATIN9)
>
>
> Any ideas?
>
>
> -----------
> >I get random exceptions on GetConnection() on a Quartz-based job.
> >Sometimes everything works, and sometimes I get a "Protocol Error.
> >Session setup failed". Does anybody know what might be happening?
>
> >Client: Both postgresql-8.3-604.jdbc4.jar and
> >postgresql-8.4dev-700.jdbc4.jar.
> >Server: Postgres 8.1. The databases are stored in LATIN9 encoding.
> >JVM: java-6-sun-1.6.0.12
>
> >SEVERE: com.androme.phemium.statistics.EligibleCustomerList@3b1d04
> >org.postgresql.util.PSQLException: Protocol error. Session setup
> >failed.
> > at
> >org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:481)
>
> > at
> >org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:101)
>
> > at
--
*Ramon Poca*
ramon.poca@androme.es <mailto:ramon.poca@androme.es>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Random crashes on getConnection
@ 2009-06-10 14:32 Kris Jurka <books@ejurka.com>
parent: Ramon Poca <ramon.poca@androme.es>
0 siblings, 0 replies; 4+ messages in thread
From: Kris Jurka @ 2009-06-10 14:32 UTC (permalink / raw)
To: Ramon Poca <ramon.poca@androme.es>; +Cc: pgsql-jdbc
On Wed, 10 Jun 2009, Ramon Poca wrote:
> And in a quick reply to myself: PGPOOL
>
> The damn thing was installed on postgres port, and when reused a connection
> from a php client (using LATIN9), broke the whole thing.
>
> Please, someone add this to the documentation/FAQ/whatever.
It seems like a pgpool bug and should probably be reported there. If
pgpool is ignoring the JDBC driver's connection setup parameters that's
not the JDBC drivers fault.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2009-06-10 14:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-06-10 08:36 Random crashes on getConnection Ramon Poca <ramon.poca@androme.es>
2009-06-10 10:59 Random crashes on getConnection Ramon Poca <ramon.poca@androme.es>
2009-06-10 11:16 ` Ramon Poca <ramon.poca@androme.es>
2009-06-10 14:32 ` Kris Jurka <books@ejurka.com>
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