De-serializing injected beans?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

De-serializing injected beans?

pekarna
I use CDI in wicket through seam-wicket.
Wicket serializes page objects to re-use them on next request.
That leads to:

12:00:38.976 ERROR [107912042@qtp-1873329524-0] org.apache.wicket.util.lang.Objects  Error serializing object class org.jboss.jawabot.web._pg.PasteBinPage [object=[Page class = org.jboss.jawabot.web._pg.PasteBinPage, id = 0, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.jboss.jawabot.usermgr.UserManager
Field hierarchy is:
...<----- field that is not serializable
        at org.apache.wicket.util.io.SerializableChecker.internalCheck(SerializableChecker.java:386)

How should I handle this?

Thanks,
Ondra
Loading...