Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.5.2
-
None
Description
AbstractTransformerBehavior#originalResponse is not serializable what causes the following exception while trying to use DebugBar component (sizeOf(object)).
WARN - WicketObjects - Unable to determine object size: [Page class = com.mycompany.HomePage, id = 0, render count = 1]
java.io.NotSerializableException: org.apache.wicket.protocol.http.BufferedWebResponse
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)
...
at org.apache.wicket.util.lang.WicketObjects$SerializingObjectSizeOfStrategy.sizeOf(WicketObjects.java:124)
at org.apache.wicket.util.lang.WicketObjects.sizeof(WicketObjects.java:416)
The simplest solution would be to add 'transient'
private transient Response originalResponse;