X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 786663A5962 for ; Tue, 25 Jan 2005 21:59:06 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25580-04 for ; Tue, 25 Jan 2005 21:58:55 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B25B63A5928 for ; Tue, 25 Jan 2005 21:58:35 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CtYhl-0002ui-00; Wed, 26 Jan 2005 10:58:33 +1300 Message-ID: <41F6C105.6000304@opencloud.com> Date: Wed, 26 Jan 2005 10:58:29 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pavel Jbanov Cc: pgsql-jdbc@postgresql.org Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3 References: <1106687911.20161.97.camel@localhost> <1106688054.20161.101.camel@localhost> In-Reply-To: <1106688054.20161.101.camel@localhost> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/250 X-Sequence-Number: 12130 Pavel Jbanov wrote: > Sorry, gone unfinished. :/ > > The exception is: > Caused by: org.postgresql.util.PSQLException: ???????????? Byte f > at > org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByte(AbstractJdbc1ResultSet.java:244) I'd need to see the untranslated exception message to be sure, but.. getByte() expects a numeric value (TINYINT, although SMALLINT/int2 is the closest mapping in PostgreSQL). You appear to be trying to retrieve a text/varchar (or possibly boolean) value that can't be parsed as a numeric value. (there might be a driver bug here -- the JDBC datatype conversion tables indicate you can use getByte() on BIT/BOOLEAN, but I'm not sure what the exact conversion should be) -O