pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: jpicard@free.fr
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error on connection
Date: Thu, 19 Aug 2004 22:43:09 +1200
Message-ID: <4124843D.7090607@opencloud.com> (raw)
In-Reply-To: <1092907940.412473a42e74d@imp1-q.free.fr>
References: <1092907940.412473a42e74d@imp1-q.free.fr>

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: ÒáÞá ?&#9562;Ç&#9524;&#9568;Ð&#9574;&#9562;
> [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 "&#9524;&#305;&#305;õ&#9524;&#9556;&#9496;&#9532;" 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



view thread (2+ messages)

Message-ID: <4124843D.7090607@opencloud.com>
Permalink:  ../4124843D.7090607@opencloud.com/
Also on:    postgresql.org/message-id/4124843D.7090607@opencloud.com

 · 

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: oliver@opencloud.com, jpicard@free.fr
  Subject: Re: Error on connection
  In-Reply-To: <4124843D.7090607@opencloud.com>
  References: <1092907940.412473a42e74d@imp1-q.free.fr> <4124843D.7090607@opencloud.com>

* 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