myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julián García <jgar...@unionsoluciones.com.co>
Subject Re: t:saveState makes NotSerializableException
Date Thu, 01 Dec 2005 15:46:44 GMT
userBean has to implement the Serializable interface so it can be 
serialized....

GAVE Enguerrand Ext ROSI/SIFAC wrote:
> Hi all,
> when using <t:saveState value="#{userBean}" /> in my JSP, a got the
> error below.
> Has anyone a brillant idea on what is going on ?
> I am using "client" STATE_SAVING_METHOD and if I don't put the
> <t:saveState...> into
> my JSP page, I don't get the error, but my backing bean is not saved.
> 
> Thanks, E.G.
> 
> [piwi] FATAL [http-8080-Processor25] StateUtils.encode64(42) | Cannot
> encode Object with Base64
> java.io.NotSerializableException:
> org.apache.catalina.session.StandardSessionFacade
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
>  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
>  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.writeArray(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.writeArray(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject(Unknown Source)
>  at java.util.ArrayList.writeObject(Unknown Source)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>  at java.lang.reflect.Method.invoke(Unknown Source)
>  at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
>  at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
>  at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.writeArray(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>  at java.io.ObjectOutputStream.writeObject(Unknown Source)
>  at org.apache.myfaces.util.StateUtils.encode64(StateUtils.java:33)
>  at
> org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(Ht
> mlResponseStateManager.java:104)
>  at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspSta
> teManagerImpl.java:268)
>  at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:160)
>  at
> org.apache.jsp.userInsertForm_jsp._jspx_meth_f_view_0(org.apache.jsp.use
> rInsertForm_jsp:213)
>  at
> org.apache.jsp.userInsertForm_jsp._jspService(org.apache.jsp.userInsertF
> orm_jsp:131)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:322)
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j
> ava:39)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
> her.java:672)
>  at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
> nDispatcher.java:463)
>  at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
> atcher.java:398)
>  at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
> cher.java:301)
>  at
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(S
> ervletExternalContextImpl.java:415)
>  at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
> HandlerImpl.java:234)
>  at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352
> )
>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
> onsFilter.java:92)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.manest.piwi.webapp.filter.MessageFilter.doFilter(MessageFilter.java:
> 52)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
> onsFilter.java:92)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.manest.piwi.webapp.filter.MessageFilter.doFilter(MessageFilter.java:
> 52)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
> onsFilter.java:122)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.manest.piwi.webapp.filter.MessageFilter.doFilter(MessageFilter.java:
> 52)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.
> java:118)
>  at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j
> ava:52)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.manest.piwi.webapp.filter.GZIPFilter.doFilter(GZIPFilter.java:51)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFi
> lter.java:125)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(
> CharacterEncodingFilter.java:75)
>  at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ
> estFilter.java:76)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.opensymphony.clickstream.ClickstreamFilter.doFilter(ClickstreamFilte
> r.java:42)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> com.manest.piwi.webapp.filter.ActionFilter.doFilter(ActionFilter.java:12
> 0)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFil
> terInternal(OpenSessionInViewFilter.java:174)
>  at
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ
> estFilter.java:76)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
> ilterChainProxy.java:292)
>  at
> net.sf.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Filt
> erSecurityInterceptor.java:84)
>  at
> net.sf.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(Se
> curityEnforcementFilter.java:182)
>  at
> net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
> ilterChainProxy.java:303)
>  at
> net.sf.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFil
> ter(AnonymousProcessingFilter.java:153)
>  at
> net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
> ilterChainProxy.java:303)
>  at
> net.sf.acegisecurity.wrapper.ContextHolderAwareRequestFilter.doFilter(Co
> ntextHolderAwareRequestFilter.java:50)
>  at
> net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
> ilterChainProxy.java:303)
>  at
> net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilte
> r(HttpSessionContextIntegrationFilter.java:226)
>  at
> net.sf.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(F
> ilterChainProxy.java:303)
>  at
> net.sf.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.jav
> a:173)
>  at
> net.sf.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.j
> ava:125)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:213)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> e.java:178)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> java:107)
>  at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
> 48)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
> 8)
>  at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
> essConnection(Http11BaseProtocol.java:663)
>  at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
> .java:527)
>  at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
> erWorkerThread.java:80)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> .java:684)
>  at java.lang.Thread.run(Unknown Source)
> 
> 
> *********************************
> Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et
etablis a l'intention exclusive de
> ses destinataires.
> Toute utilisation ou diffusion non autorisee est interdite.
> Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline
toute responsabilite au titre de
> ce message s'il a ete altere, deforme ou falsifie.
> Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et
d'avertir l'expediteur.
> *********************************
> This message and any attachments (the "message") are confidential and intended solely
for the addressees. Any unauthorised
> use or dissemination is prohibited.
> Messages are susceptible to alteration. France Telecom Group shall not be liable for
the message if altered, changed or
> falsified.
> If you are not the intended addressee of this message, please cancel it immediately and
inform the sender.
> ********************************


Mime
View raw message