View Single Post

   
  #2 (permalink)  
Old 04-16-2008, 12:01 AM
Pavel Jbanov
 
Posts: n/a
Default Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3

Sorry, gone unfinished. :/

The exception is:
Caused by: org.postgresql.util.PSQLException: ???????????? Byte f
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByt e(AbstractJdbc1ResultSet.java:244)
at
org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByt e(AbstractJdbc1ResultSet.java:491)
at net.sf.hibernate.type.ByteType.get(ByteType.java:1 8)
at
net.sf.hibernate.type.NullableType.nullSafeGet(Nul lableType.java:62)
at
net.sf.hibernate.type.NullableType.nullSafeGet(Nul lableType.java:53)
at net.sf.hibernate.type.AbstractType.hydrate(Abstrac tType.java:66)
at net.sf.hibernate.loader.Loader.hydrate(Loader.java :686)
at net.sf.hibernate.loader.Loader.loadFromResultSet(L oader.java:627)
at
net.sf.hibernate.loader.Loader.instanceNotYetLoade d(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.doQueryAndInitializ eNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java: 1033)
at net.sf.hibernate.loader.Loader.list(Loader.java:10 24)
at
net.sf.hibernate.hql.QueryTranslator.list(QueryTra nslator.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/


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote