Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wr02B-0003fS-3H for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 07:18:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wr02A-0008JE-H2 for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 07:18:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wr028-0008GM-Vk for pgsql-jdbc@postgresql.org; Sun, 01 Jun 2014 07:18:21 +0000 Received: from smtp140.dfw.emailsrvr.com ([67.192.241.140]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Wr020-0006NL-NJ for pgsql-jdbc@postgresql.org; Sun, 01 Jun 2014 07:18:19 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp14.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id C0AFC298323 for ; Sun, 1 Jun 2014 03:18:10 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp14.relay.dfw1a.emailsrvr.com (Authenticated sender: david.wall-AT-yozons.com) with ESMTPSA id 7BF1D298283 for ; Sun, 1 Jun 2014 03:18:10 -0400 (EDT) Message-ID: <538AD3B3.9060909@computer.org> Date: Sun, 01 Jun 2014 00:18:11 -0700 From: David Wall User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Upgrading from PG 8.3.3 to 9.3.4 - FATAL: invalid value for parameter "TimeZone": "PST" References: <538ACAFE.1050404@computer.org> In-Reply-To: <538ACAFE.1050404@computer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 5/31/2014 11:41 PM, David Wall wrote: > I am posting to both PG and the JDBC group since I am using JDBC to > connect, so I'm not sure if this is a PG issue or a PG JDBC issue. > > I am upgrading from 8.3.3 to 9.3.4. I ran pg_dump on my 8.3.3 > databases (which ran on CentOS 5.2, Java 6) and ran pg_restore on my > 9.3.4 databases (which runs on CentOS 6.4, Java 7.0.55, using JDBC > postgresql-9.3-1101.jdbc41.jar). The new databases appear to be > correct in that I can run psql and query my tables and I don't see any > obvious issues. > > In fact, I seem to be able to run several applications at the same > time, each connecting to its own database. > > But I also see that sometimes I get this error in my postgresql.log file: > > FATAL: invalid value for parameter "TimeZone": "PST" > > I normally run about 35-40 webapps at a time in our dev environment > without issue, but when I try to start them all, it seems this error > occurs on nearly every application. Yet when I only run about 10, I > don't seem to see the issue at all. I have tried adding them in one > at a time to see if there was a "rogue" webapp, but when I find a > newly added one suffers the TimeZone FATAL error above, if I restart > Tomcat, it may then be fine. Apps that run okay at one time, will > exhibit the error when I try to add the others in. > > Does anybody have any ideas on what I might try? I did a 'yum update' > to get the latest, rebooted, recompiled PG and reloaded the DBs, but > that made no difference. > > Thanks for any tips if anybody has seen this! Adding in case this helps JDBC: PG itself has the timezone US/Pacific set in postgresql.conf In Linux, we show: lrwxrwxrwx 1 root root 39 Apr 23 16:00 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles Even when we use PST in our Java code, we use PST8PDT. The exception occurs when JDBC tries to connect to PG: 2014-05-31 22:14:34,351 ERROR (eSignForms) SQLException: ConnectionPool.makeConnection(esf) to URL: jdbc:postgresql://localhost.localdomain:25432/zingr: 2014-05-31 22:14:34,352 ERROR (eSignForms) Message: FATAL: invalid value for parameter "TimeZone": "PST" org.postgresql.util.PSQLException: FATAL: invalid value for parameter "TimeZone": "PST" at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:574) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:138) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:29) at org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:21) at org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:31) at org.postgresql.jdbc4.Jdbc4Connection.(Jdbc4Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:410) at org.postgresql.Driver.connect(Driver.java:280) at java.sql.DriverManager.getConnection(DriverManager.java:571) at java.sql.DriverManager.getConnection(DriverManager.java:215) at com.esignforms.db.ConnectionPool.makeConnection(ConnectionPool.java:302) And of course none seems to explain why it works often enough, but then fails as more apps are deployed. Ugh! -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc