[ 
https://issues.apache.org/jira/browse/WICKET-4175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zbigniew Ruchała updated WICKET-4175:
-------------------------------------

    Attachment: myproject.tgz
    
> AbstractTransformerBehavior: java.io.NotSerializableException: 
> org.apache.wicket.protocol.http.BufferedWebResponse
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-4175
>                 URL: https://issues.apache.org/jira/browse/WICKET-4175
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-devutils
>    Affects Versions: 1.5.2
>            Reporter: Zbigniew Ruchała
>            Priority: Trivial
>         Attachments: myproject.tgz
>
>
> 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;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to