My Wicket application uses Guice for DI and some AOP. I have successfully
injected a DAO and used that to display records. However, when I try to
save a new record in my form, I get the following exception
Root cause:
java.lang.IllegalArgumentException:
I found that having my DAO implement Serializable got me past the
exception.
Is Wicket attempting to serialize my DAO?
On Thu, Jul 18, 2013 at 11:24 AM, Daniel Watrous dwmaill...@gmail.comwrote:
My Wicket application uses Guice for DI and some AOP. I have successfully
injected a DAO and used
Your DAO is declare in your form and you use it inside an inner method, so
yes, wicket is going to serrialize it.
I think you should use @SpringBean, instead of @inject.
--
View this message in context:
No, Wicket is not trying to serialize your DAO. The exception occurs in the
action phase of the request handling. It looks like you've passed an object
to MongoDB which has a reference to the @Injected DAO, or at least to the
component that has the DAO. It's this MongoDB