pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with postgres and Suse
4+ messages / 2 participants
[nested] [flat]
* Problem with postgres and Suse
@ 2004-09-14 09:48 Albert Vilà <albvil@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Albert Vilà @ 2004-09-14 09:48 UTC (permalink / raw)
To: pgsql-jdbc
I have an application with postgresql, I have tried with a Debian and
postgresql (7.4.5) with jdbc (pg74jdbc3) and all it's ok
The problem is with a Suse 9.1 and postgres 7.4.2, that sometimes
appears a java.lan.exception in some query, I have tried with the same
jdbc and another version (pg74.215.jdbc3,pgdev.305.jdbc3)
What is the problem?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem with postgres and Suse
@ 2004-09-14 10:01 Kris Jurka <books@ejurka.com>
parent: Albert Vilà <albvil@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2004-09-14 10:01 UTC (permalink / raw)
To: Albert Vilà <albvil@gmail.com>; +Cc: pgsql-jdbc
On Tue, 14 Sep 2004, [ISO-8859-1] Albert Vilà wrote:
> I have an application with postgresql, I have tried with a Debian and
> postgresql (7.4.5) with jdbc (pg74jdbc3) and all it's ok
> The problem is with a Suse 9.1 and postgres 7.4.2, that sometimes
> appears a java.lan.exception in some query, I have tried with the same
> jdbc and another version (pg74.215.jdbc3,pgdev.305.jdbc3)
>
You haven't provided any information with which we could diagnose this
problem. What's the stacktrace? What's the query?
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem with postgres and Suse
@ 2004-09-14 10:26 Kris Jurka <books@ejurka.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 4+ messages in thread
From: Kris Jurka @ 2004-09-14 10:26 UTC (permalink / raw)
To: Albert Vilà <albvil@gmail.com>; +Cc: pgsql-jdbc
On Tue, 14 Sep 2004, [ISO-8859-1] Albert Vilà wrote:
>
> java.lang.NullPointerException
> at org.postgresql.util.PSQLException.getSQLState(PSQLException.java:227)
This has been fixed in recent drivers. You need a build number of at
least 213. Your original email claimed to have tried build 215 which
should have worked, so you should try to verify that you are using the
driver you expect.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problem with postgres and Suse
@ 2004-09-14 10:41 Kris Jurka <books@ejurka.com>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 4+ messages in thread
From: Kris Jurka @ 2004-09-14 10:41 UTC (permalink / raw)
To: Albert Vilà <albvil@gmail.com>; +Cc: pgsql-jdbc
On Tue, 14 Sep 2004, [ISO-8859-1] Albert Vilà wrote:
> With build 215 and Debian all it's ok
>
> Now with suse and 215 the problem is :
>
> java.lang.Exception: 0 - - Invalid character data was found. This is
> most likely caused by stored data containing characters that are
> invalid for the character set the database was created in. The most
> common example of this is storing 8bit data in a SQL_ASCII database.
Yes, but this is different stacktrace than you initially showed. The
error message seems clear. What is the encoding of your database? It
appears not to be set correctly for your data. The JDBC driver (unlike
most other client interfaces) requires your data to be encoded correctly.
Unfortunately the only way to fix it is a dump and reload.
Kris Jurka
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-09-14 10:41 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-14 09:48 Problem with postgres and Suse Albert Vilà <albvil@gmail.com>
2004-09-14 10:01 ` Kris Jurka <books@ejurka.com>
2004-09-14 10:26 ` Kris Jurka <books@ejurka.com>
2004-09-14 10:41 ` Kris Jurka <books@ejurka.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