Hi,

> I enabled the DEBUG of Wicket and messages like the following one are
> flooding the log. Here it is:
> 
> 08-03-2010 17:30:03,445 ERROR
> org.apache.wicket.util.lang.Objects.objectToByteArray:1134 - Error
> serializing object class com.mycompany.myapp.ui.users.Users [object=[Page
> class = com.mycompany.myapp.ui.users.Users, id = 21, version = 0]]
> org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableExcepti
> on: Unable to serialize class:
> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean$ManagedEntity
> ManagerFactoryInvocationHandler Field hierarchy is:
>   21 [class=com.mycompany.myapp.ui.users.Users, path=21]
>     private java.lang.Object org.apache.wicket.MarkupContainer.children
> [class=[Ljava.lang.Object;] protected java.lang.Object
> com.mycompany.myapp.ui.MyFormPanel.model[15]
Wicket (or better: your model implementations) should not serialize your 
entity objects. They are managed by spring orm, therefore use a specialized 
LoadableDetachableModel in MyFormPanel that dynamically load your objects if 
needed.

Best Regards,
        Ilja Pavkovic

-- 
binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin

   +49 · 171 · 9342 465

Handelsregister: HRB 115854 - Amtsgericht Charlottenburg
Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to