Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 7D5832E3626 for ; Tue, 18 Dec 2007 17:00:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 91545-03 for ; Tue, 18 Dec 2007 17:00:41 -0400 (AST) Received: from web51406.mail.re2.yahoo.com (web51406.mail.re2.yahoo.com [206.190.38.185]) by postgresql.org (Postfix) with SMTP id C2FB62E2DB6 for ; Tue, 18 Dec 2007 17:00:43 -0400 (AST) Received: (qmail 64971 invoked by uid 60001); 18 Dec 2007 21:00:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=Sn5xeUXkct13dcxcrazfu/e2pu0TCmoeO9qvTVtVoL9KBBO1tWN9ljzkEKEQp6SKLAXLKiSlQ2fVzvaMxxPB2l75QRlDGjgyCfLE28dbLr2fBx2WUPTqW80g42d1P1X1aXlhUz3yFjxwj+pLXE7MEX95m7l8PEN3PsCAKi+0nz8=; X-YMail-OSG: dCEKXZQVM1mkgUrsiKucFM.rW0nGq7teG2kdtbKeysQN79NDW3YtnKzvEQeZku2dZkfoV2F55UaYs1yG1E8eww5IdAb74K5rU5Q1ZQl4NtwxrHz07hkqx0Hylo91GRb8mauU3bGEKodrVMiiIF.vJSj31A-- Received: from [160.33.98.118] by web51406.mail.re2.yahoo.com via HTTP; Tue, 18 Dec 2007 13:00:41 PST X-Mailer: YahooMailRC/818.31 YahooMailWebService/0.7.158.1 Date: Tue, 18 Dec 2007 13:00:41 -0800 (PST) From: tyju tiui Subject: pgsql jdbc setObject JAVA_OBJECT error To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2118803059-1198011641=:42438" Message-ID: <257048.42438.qm@web51406.mail.re2.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/137 X-Sequence-Number: 17992 --0-2118803059-1198011641=:42438 Content-Type: text/plain; charset=us-ascii 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 --0-2118803059-1198011641=:42438 Content-Type: text/html; charset=us-ascii
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. --0-2118803059-1198011641=:42438--