X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0F2225E40BB for ; Thu, 19 Aug 2004 07:46:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 76243-10 for ; Thu, 19 Aug 2004 10:46:36 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 4232A5E3633 for ; Thu, 19 Aug 2004 07:46:32 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by www.postgresql.com (Postfix) with ESMTP id E7F455A112C for ; Thu, 19 Aug 2004 07:46:29 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BxkO0-0005xl-00; Thu, 19 Aug 2004 22:43:12 +1200 Message-ID: <4124843D.7090607@opencloud.com> Date: Thu, 19 Aug 2004 22:43:09 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: jpicard@free.fr Cc: pgsql-jdbc@postgresql.org Subject: Re: Error on connection References: <1092907940.412473a42e74d@imp1-q.free.fr> In-Reply-To: <1092907940.412473a42e74d@imp1-q.free.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/110 X-Sequence-Number: 10832 jpicard@free.fr wrote: > Hi all, > > I have a Java application (jdk ibm 1.3) run on z/os which connect to Postgresql > database running on a windows XP (jdk ibm 1.3). > > The JDBC URL is : jdbc:postgresql://10.82.41.127:5432/ANNUAIRE Is this a 7-bit ascii database name? (it looks like it is, but I thought I'd check). > When I launch the java application this exception occurs on the client jvm : > > [java] Backend start-up failed: زلقل ?╚ا┴╠ذ╦╚ > [java] > [java] at > org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:306) There isn't much the JDBC driver can do here -- the encoding of messages early on during startup protocol isn't specified AFAIK, so the driver just assumes 7-bit ascii in the current development driver or (from memory) the default JVM encoding in older drivers. > And this message display on the database console : > > FATAL: database "┴ııُ┴╔┘┼" does not > exist > > I guess this is an encoding problem. What version is the server? What's the encoding in use on the database side? What about the default JVM encoding on the client side? Do you see the same problem if you try the current development driver from jdbc.postgresql.org? Is there any chance of getting a tcpdump or similar of the connection attempt? -O