Hi,

I'm using the @SpringBean + SpringComponentInjector to inject daos in my
Wicket web pages. With Wicket 1.3b3, I'm noticing the following exception in
my Tomcat (v6.0.13) logs:

org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:
Unable to serialize class: org.apache.commons.dbcp.BasicDataSource 

This exception occurs randomly and emerges from different page objects while
browsing my webapp (probably SecondLevelSessionCache behavior?) and, if
session persistence is enabled, at app shutdown. Nowhere in my application
am I using the BasicDataSource class explicitly except in my beans.xml
datasource configuration. 

My understanding was that a LazyInitProxyFactory would be serialized in
place of the dao if the @SpringBean annotation were used. The page in which
this occurred has a single "@SpringBean private MyDao myDao;" member field
in it. I have no daos -- injected or otherwise -- in my WebSession
instances.

Is there some other configuration issue I'm missing? Or is this expected
behavior? I'm relatively new to Spring and Wicket so the former is likely
possible.

Thanks!
leo

-- 
View this message in context: 
http://www.nabble.com/%40SpringBean-and-serialization-checker-tf4392171.html#a12522589
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to