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