Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

returned objects are mx.utils.ObjectProxy

DTO2Fx
2009-04-18
2013-04-29
  • hi,

    i'm not sure if this is related to DTO2FX, but the objects returned by my service object
    are all of type mx.utils.ObjectProxy, I'm unable to cast them into the correct class.

    Looking at the objects properties in the debugger, they have the correct values, but
    they are simply ObjectProxies instead of the real object.

    Anyone knows why this is happening ?

     
    • replying myself here...

      i've just found out that the objects which arrive on the flex side are only mx.util.ObjectProxies when i have loaded them from the database (using hibernate). When i create the object on the server without database interaction, the resulting type on the client is correct.

       
    • it was actually a Hibernate thing... sorry.

      i retrieved the object as a hibernate proxy, that's why blazeds serialized it as a objectproxy.