[Hippo-cms7-user] Hunting down a NotSerializableException

Bart van der Schans b.vanderschans at onehippo.com
Tue Dec 29 11:46:00 CET 2009

Hi Niels,

Can you post the complete stack trace?


On Tue, Dec 29, 2009 at 10:19 AM, nvankampenhout
<nvankampenhout at yahoo.co.uk> wrote:
> This is maybe a generic Java question, but in a Hippo CMS context. I am
> having trouble tracking down a NotSerializableException.
> I created a Xinha plugin that opens a dialog. I extended AbstractXinhaDialog
> for this. The dialog itself contains an IFrame, and the IFrame contains an
> upload field. The IFrame is a necessary evil to keep the Ajax context of the
> dialog. Upload fields do not support Ajax so cannot be placed directly in
> the dialog.
> Inside the IFrame is a Wicket page extending WebPage. Because of the IFrame,
> Wicket thinks a new window has been opened, and tries to clone the page
> object. The page class has an implicit reference to the dialog, and through
> the dialog, references to who knows what else.
> I am getting the following error:
> 29.12.2009 10:10:03 ERROR
> [org.apache.wicket.markup.html.WebPage.onNewBrowserWindow():312] Page [Page
> class = com.findlaw.hippo.cms.frontend.plugins.xinha.UploadXinhaDialog$1$1,
> id = 3, version = 0] couldn't be cloned to move to another pagemap
> org.apache.wicket.WicketRuntimeException: Internal error cloning object
>        at org.apache.wicket.util.lang.Objects.cloneObject(Objects.java:529)
> [.....]
> Caused by: java.io.NotSerializableException:
> org.hippoecm.repository.decorating.checked.NodeDecorato
> r
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> [.....]
> The dialog including the iframe appears and works correctly so it's not a
> blocking problem, I just get a huge stacktrace in the logs. (Possibly this
> affects the system if it runs clustered?)
> Anyway I have been crawling through the objects in the Eclipse debugger but
> for the life of me can't find the dreaded NodeDecorator. I spotted a few but
> they are in transient attributes and/or loadable-detachable models.
> Does anyone in the CMS team maybe have some good tips for this kind of
> debugging? A tool perhaps to search in the object graph? There are dialogs
> in the CMS that contain an upload field (e.g. image upload) so chances are
> someone ran into this problem before.
> Any help is much appreciated :)
> Thanks,
> Niels
> --
> View this message in context: http://n2.nabble.com/Hunting-down-a-NotSerializableException-tp4227031p4227031.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html

Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
http://www.onehippo.com   -  info at onehippo.com

More information about the Hippo-cms7-user mailing list