Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3 - Mailing list pgsql-jdbc

From Pavel Jbanov
Subject Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Date
Msg-id 1106688054.20161.101.camel@localhost
Whole thread Raw
In response to postgresql 7.4.6-6, hibernate-2.1.6, jdbc3  (Pavel Jbanov <pavel.jbanov@shaw.ca>)
Responses Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
List 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/


pgsql-jdbc by date:

Previous
From: Pavel Jbanov
Date:
Subject: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Next
From: Oliver Jowett
Date:
Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3