pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tyju tiui <jckdnk111@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: pgsql jdbc setObject JAVA_OBJECT error
Date: Tue, 18 Dec 2007 13:00:41 -0800 (PST)
Message-ID: <257048.42438.qm@web51406.mail.re2.yahoo.com> (raw)

Hi,

I'm trying to use the 'setObject' method of a preparedStatement to store a POJO and I'm getting an error: 
    org.postgresql.util.PSQLException: Unsupported Types value: 2,000

I'm using build 8.2 Build 507 of the jdbc driver with PostgreSQL 8.2.5 on a Debian Etch server with Java 1.6.
Here's the snippet which throws the error above:
    pstatement.setObject(1, myPojoInst, java.sql.Types.JAVA_OBJECT);

Any idea what I'm doing wrong?

Thanks,

Ty




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

view thread (2+ messages)  latest in thread

Message-ID: <257048.42438.qm@web51406.mail.re2.yahoo.com>
Permalink:  ../257048.42438.qm@web51406.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/257048.42438.qm@web51406.mail.re2.yahoo.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: jckdnk111@yahoo.com
  Subject: Re: pgsql jdbc setObject JAVA_OBJECT error
  In-Reply-To: <257048.42438.qm@web51406.mail.re2.yahoo.com>
  References: <257048.42438.qm@web51406.mail.re2.yahoo.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