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 27DB03A5641 for ; Tue, 25 Jan 2005 21:22:43 +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 21331-07 for ; Tue, 25 Jan 2005 21:22:37 +0000 (GMT) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by svr1.postgresql.org (Postfix) with ESMTP id CCD203A5804 for ; Tue, 25 Jan 2005 21:22:38 +0000 (GMT) Received: from pd2mr6so.prod.shaw.ca (pd2mr6so-qfe3.prod.shaw.ca [10.0.141.9]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IAW00JGF617FI40@l-daemon> for pgsql-jdbc@postgresql.org; Tue, 25 Jan 2005 14:22:19 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IAW00J795YKAB80@pd2mr6so.prod.shaw.ca> for pgsql-jdbc@postgresql.org; Tue, 25 Jan 2005 14:20:44 -0700 (MST) Received: from S0106000ea62b9dcf.ed.shawcable.net (S0106000ea62b9dcf.ed.shawcable.net [68.148.132.9]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IAW00C345YKFQ@l-daemon> for pgsql-jdbc@postgresql.org; Tue, 25 Jan 2005 14:20:44 -0700 (MST) Date: Tue, 25 Jan 2005 14:20:54 -0700 From: Pavel Jbanov Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3 In-reply-to: <1106687911.20161.97.camel@localhost> To: pgsql-jdbc@postgresql.org Message-id: <1106688054.20161.101.camel@localhost> MIME-version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Content-type: text/plain Content-transfer-encoding: 7bit References: <1106687911.20161.97.camel@localhost> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.8 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, FORGED_RCVD_HELO X-Spam-Level: * X-Archive-Number: 200501/249 X-Sequence-Number: 12129 Sorry, gone unfinished. :/ The exception is: Caused by: org.postgresql.util.PSQLException: ???????????? Byte f at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByte(AbstractJdbc1ResultSet.java:244) at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByte(AbstractJdbc1ResultSet.java:491) at net.sf.hibernate.type.ByteType.get(ByteType.java:18) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53) at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:66) at net.sf.hibernate.loader.Loader.hydrate(Loader.java:686) at net.sf.hibernate.loader.Loader.loadFromResultSet(Loader.java:627) at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:586) at net.sf.hibernate.loader.Loader.getRow(Loader.java:501) at net.sf.hibernate.loader.Loader.getRowFromResultSet(Loader.java:213) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:281) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.doList(Loader.java:1033) at net.sf.hibernate.loader.Loader.list(Loader.java:1024) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1544) ... 36 more What should I look at? Where can be the cause? Thanks. > Hi, > > I have postgresql 7.4.6-6, hibernate-2.1.6, jdbc3 (pg74.215.jdbc3.jar). > I get this exception: > > > I have a pretty complex structure, but here I try to do a simple thing: > > SomeBean foo = (SomeBean) session.get(SomeBean.class, > primary_key_value); > > I have: true, so I tried executing > the query it generated directly, it executed without problems. -- Pavel Jbanov http://www.spicesoft.com/~pavel/