Hi,
Seeing that Wicket depends on SLF4J got me interested - so I just tried to
switch to it from commons-logging. My pages / panels extend from a base
class that holds a org.slf4j.Logger instance. But now I get a whole lot of
serialization problems in the log:
=================
2007-08-03 19:29:28,527 [FilePageSerializingThread-jtrac-app] ERROR [
org.apache.wicket.util.lang.Objects] - Error serializing object class
info.jtrac.wicket.DashboardPage [object=[Page class =
info.jtrac.wicket.DashboardPage, id = 5, version = 0]]
org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable
to serialize class:
org.slf4j.impl.Log4jLoggerAdapter
Field hierarchy is:
5 [class=info.jtrac.wicket.DashboardPage, path=5]
private java.lang.Object org.apache.wicket.MarkupContainer.children[class=[
Lorg.apache.wicket.Component;]
private java.lang.Object org.apache.wicket.MarkupContainer.children[0]
[class=info.jtrac.wicket.HeaderPanel, path=5:header]
protected final org.slf4j.Logger
info.jtrac.wicket.BasePanel.logger[class=
org.slf4j.impl.Log4jLoggerAdapter] <----- field that is not serializable
at org.apache.wicket.util.io.SerializableChecker.check(
SerializableChecker.java:347)
=================
Is this expected? Or is this something I need to change?
Thanks,
Peter.