pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Wall <d.wall@computer.org>
To: pgsql-jdbc@postgresql.org
Subject: Re: Upgrading from PG 8.3.3 to 9.3.4 - FATAL:  invalid value for parameter "TimeZone": "PST"
Date: Sun, 01 Jun 2014 00:18:11 -0700
Message-ID: <538AD3B3.9060909@computer.org> (raw)
In-Reply-To: <538ACAFE.1050404@computer.org>
References: <538ACAFE.1050404@computer.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>


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.<init>(AbstractJdbc2Connection.java:138)
         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: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



view thread (9+ messages)  latest in thread

Message-ID: <538AD3B3.9060909@computer.org>
Permalink:  ../538AD3B3.9060909@computer.org/
Also on:    postgresql.org/message-id/538AD3B3.9060909@computer.org

 · 

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: d.wall@computer.org
  Subject: Re: Upgrading from PG 8.3.3 to 9.3.4 - FATAL:  invalid value for parameter "TimeZone": "PST"
  In-Reply-To: <538AD3B3.9060909@computer.org>
  References: <538ACAFE.1050404@computer.org> <538AD3B3.9060909@computer.org>

* 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