Skip site navigation (1) Skip section navigation (2)

Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3

From: Pavel Jbanov <pavel(dot)jbanov(at)shaw(dot)ca>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Date: 2005-01-25 21:20:54
Message-ID: 1106688054.20161.101.camel@localhost (view raw or flat)
Thread:
Lists: pgsql-jdbc
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: <property name="show_sql">true</property>, so I tried executing
> the query it generated directly, it executed without problems.
-- 
Pavel Jbanov
http://www.spicesoft.com/~pavel/


In response to

Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-01-25 21:58:29
Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Previous:From: Pavel JbanovDate: 2005-01-25 21:18:32
Subject: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group