Your AjouterTableauWizardPage should not have a stream on it as a serializable field. If you need to have that field then you'll need to make it transient.
- Scott On Tue, Apr 15, 2008 at 12:14 PM, adrienleroy <[EMAIL PROTECTED]> wrote: > > Hello, > > I experience a serialization problem with one of my page, i have got a page > with a wizard in it, in this wizard i have a step with five uploadfield, in > most of the case i have got no error using my wizard, but sometime some user > report me an "internal error" message, and when i check the logfile , there > is the following message : > > ERROR - Objects - Error serializing object class > yetre.artiste.tableau.wizard.AjouterTableauWizardPage [object=[Page class = > yetre.artiste.tableau.wizard.AjouterTableauWizardPage, id = 3, version = 0]] > org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: > Unable to serialize class: > org.apache.wicket.util.io.DeferredFileOutputStream > Field hierarchy is: > 3 [class=yetre.artiste.tableau.wizard.AjouterTableauWizardPage, path=3] > private java.lang.Object org.apache.wicket.MarkupContainer.children > [class=[Ljava.lang.Object;] > protected org.apache.wicket.util.collections.MiniMap > org.apache.wicket.markup.html.link.BookmarkablePageLink.parameters[11] > [class=yetre.artiste.tableau.wizard.AjouterTableauWizard, > path=3:ajouterTableauWizard] > private java.lang.Object org.apache.wicket.MarkupContainer.children > [class=org.apache.wicket.markup.html.form.Form, > path=3:ajouterTableauWizard:form] > private java.lang.Object > org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] > private java.lang.Object > org.apache.wicket.MarkupContainer.children[0] > [class=org.apache.wicket.extensions.wizard.WizardStep$Header, > path=3:ajouterTableauWizard:form:header] > private final org.apache.wicket.extensions.wizard.WizardStep > org.apache.wicket.extensions.wizard.WizardStep$Header.this$0 > [class=yetre.artiste.tableau.wizard.AjouterTableauWizard$GalerieUploadStep, > path=3:ajouterTableauWizard:form:view] > private org.apache.wicket.extensions.wizard.IWizardModel > org.apache.wicket.extensions.wizard.WizardStep.wizardModel > [class=org.apache.wicket.extensions.wizard.WizardModel] > private java.util.List > org.apache.wicket.extensions.wizard.WizardModel.steps > [class=java.util.ArrayList] > private java.util.List > org.apache.wicket.extensions.wizard.WizardModel.steps[write:1] > [class=yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep, > path=view] > private java.util.Collection > yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads > [class=java.util.ArrayList] > private java.util.Collection > > yetre.artiste.tableau.wizard.AjouterTableauWizard$UploadTableauxStep.uploads[write:1] > [class=org.apache.wicket.markup.html.form.upload.FileUpload] > private final > org.apache.wicket.util.upload.FileItem > org.apache.wicket.markup.html.form.upload.FileUpload.item > [class=org.apache.wicket.util.upload.DiskFileItem] > private > org.apache.wicket.util.io.DeferredFileOutputStream > org.apache.wicket.util.upload.DiskFileItem.dfos > [class=org.apache.wicket.util.io.DeferredFileOutputStream] <----- field that > is not serializable > > The error seems to be in org.apache.wicket.util.io.DeferredFileOutputStream > which is not serialazable, > but i am note sure that making this class Serializable and recompiling > wicket will definitevly solve the problem. Have you got some advice? > > Thanks > -- > View this message in context: > http://www.nabble.com/Unable-to-serialize-class%3A-org.apache.wicket.util.io.DeferredFileOutputStream-tp16705385p16705385.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
