commons-user mailing list archives

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

> It's not a proxy you get wirt normal reflection...
> It's bytecode engineered one... So no $proxy class
> at all...  ( After all, you can not proxy real class
> with standart reflection )

Some kind of cglib proxy then ? I see.

> > 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.
>
> Because this hibernate invocation proxy exposed some
> of its internals in a ways betwixt could get hold on
> it via reflection...
>
> Such strange things started to happen ( IMHO ) after
> hibernate 3  was out - for example you can get ITE
> out of ANY getter of your class...

Ok, then a mapping that blends these part out, should suffice.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message