Re: Problem with driver

From: J M Okomba <Okomba(at)kabage(dot)co(dot)ke>
To: 'pgsql-jdbc' <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Problem with driver
Date: 2003-03-12 07:46:20
Message-ID: 715DF98A936DD211B29D0008C71E55D4945AC9@NTSERVER1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


After some more trials I have found out that the problem is with the
encoding. The problematic table has a £ (pound) entry, which pg73jdbc3 is
having difficulties retrieving. I did tests with pg73jdbc3 using different
encoding and found the attached results:

<<LATIN1-errors.txt>> <<SQL_ASCII-errors.txt>>
<<UNICODE-errors.txt>>

Tests with pgjdbc2 gave the attached results:

<<pgjdbc2-LATIN1.txt>>
<<pgjdbc2-UNICODE-errors.txt>>
It appears that UNICODE has a problem even with pgjdbc2.

Attached is the Java file

<<TestJDBC.java>>
Please help.

> -----Original Message-----
> From: J M Okomba [SMTP:Okomba(at)kabage(dot)co(dot)ke]
> Sent: 11 March 2003 15:48
> To: 'pgsql-jdbc'
> Subject: Re: [JDBC] Problem with driver
>
>
> After doing some more tests I have discovered that the problem is most
> likely being caused by the context (environment) of the application I am
> calling. I have managed to access the problematic table from a bare Java
> application. I will try to find out why I can't access it from a
> JSP/servlet.
>
> Thanks.
>
> > -----Original Message-----
> > From: Dave Cramer [SMTP:Dave(at)micro-automation(dot)net]
> > Sent: 11 March 2003 12:14
> > To: J M Okomba
> > Cc: 'pgsql-jdbc'
> > Subject: Re: [JDBC] Problem with driver
> >
> > Can you send us a test case so we can replicate the problem here
> >
> > Dave
> > On Tue, 2003-03-11 at 01:40, J M Okomba wrote:
> > > I keep getting this error:
> > >
> > > Database error in EmbeddedData.fetchData 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
> > >
> > > with current postgres drivers downloaded from
> > > http://jdbc.postgresql.org/download/ (like pg73jdbc3.jar and others).
> > The
> > > error is only thrown when I try to access one table (other tables in
> the
> > > database work fine).
> > >
> > > However I don't get this error with pgjdbc2.jar, which I downloaded
> > about 8
> > > months ago.
> > >
> > > I will appreciate any help to resolve the problem. I really need to
> use
> > new
> > > features in the updated drivers.
> > >
> > >
> > > ---------------------------(end of
> broadcast)---------------------------
> > > TIP 3: if posting/reading through Usenet, please send an appropriate
> > > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > > message can get through to the mailing list cleanly
> > --
> > Dave Cramer <Dave(at)micro-automation(dot)net>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

Attachment Content-Type Size
LATIN1-errors.txt text/plain 1.2 KB
SQL_ASCII-errors.txt text/plain 1.2 KB
UNICODE-errors.txt text/plain 1.8 KB
pgjdbc2-LATIN1.txt text/plain 1.3 KB
pgjdbc2-UNICODE-errors.txt text/plain 385 bytes
TestJDBC.java application/octet-stream 3.3 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-03-12 08:50:00 Re: Problem with driver
Previous Message Jeremiah Jahn 2003-03-11 20:06:11 changes to error reporting questions