Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8E5A29FB719 for ; Tue, 24 Apr 2007 19:57:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 65266-08 for ; Tue, 24 Apr 2007 19:57:36 -0300 (ADT) X-Greylist: delayed 00:06:40.479071 by SQLgrey-1.7.4 Received: from hosting.kiretsu.net (hosting.kiretsu.net [207.58.158.250]) by postgresql.org (Postfix) with ESMTP id 6FEB99FB418 for ; Tue, 24 Apr 2007 19:57:46 -0300 (ADT) Received: (qmail 29611 invoked by uid 108); 24 Apr 2007 22:51:04 -0000 Received: from unknown (HELO xavtug.hell-city.com) (70.92.118.114) by hosting.kiretsu.net with (AES256-SHA encrypted) SMTP; 24 Apr 2007 22:51:04 -0000 Received: from crigler by xavtug.hell-city.com with local (Exim 4.63) (envelope-from ) id 1HgTmb-0007GG-PP for pgsql-jdbc@postgresql.org; Tue, 24 Apr 2007 15:46:49 -0700 Date: Tue, 24 Apr 2007 15:46:49 -0700 From: "Ned T. Crigler" To: pgsql-jdbc@postgresql.org Subject: JDBC driver reports a protocol error for a CVS HEAD server Message-ID: <20070424224649.GA26016@xavtug.hell-city.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200704/110 X-Sequence-Number: 16959 The JDBC driver does not connect successfully to a CVS HEAD server (updated as of today) when using a database set to UTF8 encoding; enabling the debug messages in the driver shows that it is sending client_encoding=UNICODE in the startup packet, but the server is reporting client_encoding=UTF8 back to the driver, causing the driver to complain: 15:25:23.136 (1) PostgreSQL 8.2devel JDBC3 with SSL (build 503) 15:25:23.151 (1) Trying to establish a protocol version 3 connection to localhost:5432 15:25:23.171 (1) FE=> StartupPacket(user=crigler, database=wave, client_encoding=UNICODE, DateStyle=ISO) 15:25:23.175 (1) <=BE AuthenticationOk 15:25:23.202 (1) <=BE ParameterStatus(client_encoding = UTF8) org.postgresql.util.PSQLException: Protocol error. Session setup failed. at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:470) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:98) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66) at org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:125) at org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.(Jdbc3Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:382) at org.postgresql.Driver.connect(Driver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at DBConn.(DBConn.java:24) at g.main(g.java:11) SQLException: SQLState(08001) getConnection failed: org.postgresql.util.PSQLException: Protocol error. Session setup failed. SQL Error: Database Open Failure org.postgresql.util.PSQLException: Protocol error. Session setup failed. -- Ned T. Crigler