pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pavel Jbanov <pavel.jbanov@shaw.ca>
To: pgsql-jdbc@postgresql.org
Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Date: Tue, 25 Jan 2005 14:20:54 -0700
Message-ID: <1106688054.20161.101.camel@localhost> (raw)
In-Reply-To: <1106687911.20161.97.camel@localhost>
References: <1106687911.20161.97.camel@localhost>

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/




view thread (7+ messages)  latest in thread

Message-ID: <1106688054.20161.101.camel@localhost>
Permalink:  ../1106688054.20161.101.camel@localhost/
Also on:    postgresql.org/message-id/1106688054.20161.101.camel@localhost

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pavel.jbanov@shaw.ca
  Subject: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
  In-Reply-To: <1106688054.20161.101.camel@localhost>
  References: <1106687911.20161.97.camel@localhost> <1106688054.20161.101.camel@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox