commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <>
Subject Re: [betwixt] Problem loading a Bean in Betwixt
Date Mon, 17 Oct 2005 18:18:20 GMT
On 10/17/05, Konstantin Priblouda <> wrote:

> It's not your bean, what gets loaded through
> hibernate.
> It's dynamic proxy that mimics its behaviour, and this
> proxy is created  at the runtime with byte code
> manipulation.  Maybe there is a bit too much
> manipulation for betwixt ( bean utils )  - so it just
> freaks out...

I don't think that this is proxy issue, after all there is no proxy
involved in the stracktrace (usually this would be shown with a proxy$
entry) :

at org.hibernate.util.IdentityMap.keySet(
at org.hibernate.stat.SessionStatisticsImpl.getEntityCount(
at org.hibernate.stat.SessionStatisticsImpl.toString(
at java.lang.String.valueOf(
at java.lang.StringBuffer.append(

Betwixt calls toString on a SessionStatisticsImpl object which somehow
fails as it internally calls keySet on a IdentityMap which doesn't
support this method for some reason. Since I have no knowledge of
Hibernate, I can only guess how this IdentityMap is supposed to work,
but judging by the stacktrace, it does not implement the keySet method
which it signals by an UnsupportedOperationException.
But I wonder why Betwixt accesses this SessionStatisticsImpl object in
the first place. I mean, it does not sound like a business object, so
perhaps you should hide it via the mapping - define a class mapping
for the business class in question and avoid addDefault in it.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message