JavaSerializer - Error serializing object class

2014-09-09 Thread Stefan Lorenz
Hi, with Glassfish4 we get a lot of Exceptions when a page gets serialized. org.apache.wicket.serialize.java.JavaSerializer - Error serializing object class .. org.apache.wicket.core.util.objects.checker.CheckingObjectOutputStream$ObjectCheckException: The object type is not Serializable! A

Re: JavaSerializer - Error serializing object class

2014-09-09 Thread Maxim Solodovnik
you can only have Serializable classes stored in the page you can have DTO or ID stored if it is impossible On 9 September 2014 13:53, Stefan Lorenz stefan.lor...@persis.de wrote: Hi, with Glassfish4 we get a lot of Exceptions when a page gets serialized.

Re: JavaSerializer - Error serializing object class

2014-09-09 Thread Martin Grigorov
Hi, This is a well known issue with CDI+EJB. It has been discussed few times here and other forums. CDI injects non-Serializable objects for EJB beans. A workaround is to use a delegate CDI bean to lookup the EJBs. I.e. instead of @Inject-ing EJBs in Wicket components inject a scoped CDI bean