pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Error on connection 2+ messages / 2 participants [nested] [flat]
* Error on connection @ 2004-08-19 09:32 jpicard@free.fr 0 siblings, 1 reply; 2+ messages in thread From: jpicard@free.fr @ 2004-08-19 09:32 UTC (permalink / raw) To: pgsql-jdbc 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 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) [java] at org.postgresql.Driver.connect(Driver.java:122) [java] at java.sql.DriverManager.getConnection(DriverManager.java:543) [java] at java.sql.DriverManager.getConnection(DriverManager.java:194) And this message display on the database console : FATAL: database "┴ııõ┴╔┘┼" does not exist I guess this is an encoding problem. Have you see a similar problem ? I hope you can help me. Thanks. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Error on connection @ 2004-08-19 10:43 Oliver Jowett <oliver@opencloud.com> parent: jpicard@free.fr 0 siblings, 0 replies; 2+ messages in thread From: Oliver Jowett @ 2004-08-19 10:43 UTC (permalink / raw) To: jpicard@free.fr; +Cc: pgsql-jdbc 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-08-19 10:43 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-08-19 09:32 Error on connection jpicard@free.fr 2004-08-19 10:43 ` Oliver Jowett <oliver@opencloud.com>
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