From ramon.poca@androme.es Wed Jun 10 08:36:35 2009 Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 567806337AB for ; Wed, 10 Jun 2009 05:36:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 38333-05 for ; Wed, 10 Jun 2009 05:36:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fafnir.androme.com (fafnir.androme.com [62.58.96.158]) by mail.postgresql.org (Postfix) with ESMTP id 222B4632B2A for ; Wed, 10 Jun 2009 05:36:33 -0300 (ADT) Received: by fafnir.androme.com (Postfix, from userid 1003) id 8B5BFB91B89; Wed, 10 Jun 2009 10:36:31 +0200 (CEST) Message-ID: <4A2F708E.703@androme.es> Date: Wed, 10 Jun 2009 10:36:30 +0200 From: Ramon Poca User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Random crashes on getConnection Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/44 X-Sequence-Number: 19708 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.(AbstractJdbc2Connection.java:124) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.(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. -- Ramon Poca
ramon.poca@androme.es From ramon.poca@androme.es Wed Jun 10 11:06:08 2009 Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 76B0E635152 for ; Wed, 10 Jun 2009 08:06:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49180-06 for ; Wed, 10 Jun 2009 08:06:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fafnir.androme.com (fafnir.androme.com [62.58.96.158]) by mail.postgresql.org (Postfix) with ESMTP id 545AB632341 for ; Wed, 10 Jun 2009 07:59:28 -0300 (ADT) Received: by fafnir.androme.com (Postfix, from userid 1003) id 08669B9BDBF; Wed, 10 Jun 2009 12:59:25 +0200 (CEST) Message-ID: <4A2F920C.2090204@androme.es> Date: Wed, 10 Jun 2009 12:59:24 +0200 From: Ramon Poca User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Random crashes on getConnection Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/46 X-Sequence-Number: 19710 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 From ramon.poca@androme.es Wed Jun 10 11:16:43 2009 Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id BDAA9633051 for ; Wed, 10 Jun 2009 08:16:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 75808-06 for ; Wed, 10 Jun 2009 08:16:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from fafnir.androme.com (fafnir.androme.com [62.58.96.158]) by mail.postgresql.org (Postfix) with ESMTP id A80D36329CF for ; Wed, 10 Jun 2009 08:16:42 -0300 (ADT) Received: by fafnir.androme.com (Postfix, from userid 1003) id C31E6B962C6; Wed, 10 Jun 2009 13:16:40 +0200 (CEST) Message-ID: <4A2F9617.7080605@androme.es> Date: Wed, 10 Jun 2009 13:16:39 +0200 From: Ramon Poca User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Random crashes on getConnection References: <4A2F920C.2090204@androme.es> In-Reply-To: <4A2F920C.2090204@androme.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/47 X-Sequence-Number: 19711 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 From books@ejurka.com Wed Jun 10 14:32:43 2009 Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5D860634CD1 for ; Wed, 10 Jun 2009 11:32:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 18242-05 for ; Wed, 10 Jun 2009 11:32:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id EBEDB6347F3 for ; Wed, 10 Jun 2009 11:32:41 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 7CDEAA181; Wed, 10 Jun 2009 10:32:39 -0400 (EDT) Date: Wed, 10 Jun 2009 10:32:39 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ramon Poca cc: pgsql-jdbc@postgresql.org Subject: Re: Random crashes on getConnection In-Reply-To: <4A2F9617.7080605@androme.es> Message-ID: References: <4A2F920C.2090204@androme.es> <4A2F9617.7080605@androme.es> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL=0.006 X-Spam-Level: X-Archive-Number: 200906/48 X-Sequence-Number: 19712 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