deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: Problem with @ViewAccessScoped
Date Tue, 11 Mar 2014 18:31:02 GMT
@thomas:
the wrapper itself should never be part of the state.
we are using the same trick in myfaces-core itself (the implementation is
almost the same).

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2014-03-11 19:22 GMT+01:00 Thomas Andraschko <andraschko.thomas@gmail.com>:

> Hmm, how can it work with enabled serialization gerhard?
> IMHO Converter/ValidationWrapper needs an default constructor.
>
>
> 2014-03-11 19:17 GMT+01:00 Gerhard Petracek <gerhard.petracek@gmail.com>:
>
> > hi ludovic,
> >
> > please provide the version of myfaces-core you are using.
> >
> > regards,
> > gerhard
> >
> > http://www.irian.at
> >
> > Your JSF/JavaEE powerhouse -
> > JavaEE Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
> >
> >
> > 2014-03-11 19:04 GMT+01:00 l.penet@senat.fr <l.penet@senat.fr>:
> >
> > > Dear all,
> > >
> > > I tried DeltaSpike 0.6 snapshot from 20140311 (various times from 13:57
> > to
> > > 13:59).
> > >
> > > I have special interest in @ViewAccessScoped
> > >
> > > I regularly have the exception whose call stack is pasted below.
> > >
> > > Hope this helps...
> > >
> > > Ludovic
> > >
> > >
> > > java.lang.RuntimeException: Could not restore StateHolder of type
> > > org.apache.deltaspike.jsf.impl.injection.ConverterWrapper (missing
> > > no-args constructor?)
> > >     at javax.faces.component.UIComponentBase.restoreAttachedState(
> > > UIComponentBase.java:1902)
> > >     at javax.faces.component.UIOutput.restoreState(UIOutput.java:256)
> > >     at javax.faces.component.UIComponentBase.processRestoreState(
> > > UIComponentBase.java:1630)
> > >     at javax.faces.component.UIComponentBase.processRestoreState(
> > > UIComponentBase.java:1674)
> > >     at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagement
> > > Strategy$AddComponentCallback.invokeContextCallback(
> > > DefaultFaceletsStateManagementStrategy.java:567)
> > >     at javax.faces.component.UIData.invokeOnComponent(UIData.java:333)
> > >     at javax.faces.component.UIComponent.invokeOnComponent(
> > > UIComponent.java:265)
> > >     at javax.faces.component.UIComponentBase.invokeOnComponent(
> > > UIComponentBase.java:1170)
> > >     at javax.faces.component.UIComponent.invokeOnComponent(
> > > UIComponent.java:265)
> > >     at javax.faces.component.UIComponentBase.invokeOnComponent(
> > > UIComponentBase.java:1170)
> > >     at javax.faces.component.UIComponent.invokeOnComponent(
> > > UIComponent.java:265)
> > >     at javax.faces.component.UIComponentBase.invokeOnComponent(
> > > UIComponentBase.java:1170)
> > >     at javax.faces.component.UIComponent.invokeOnComponent(
> > > UIComponent.java:265)
> > >     at javax.faces.component.UIComponentBase.invokeOnComponent(
> > > UIComponentBase.java:1170)
> > >     at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagement
> > > Strategy.handleDynamicAddedRemovedComponents(
> > > DefaultFaceletsStateManagementStrategy.java:491)
> > >     at org.apache.myfaces.view.facelets.DefaultFaceletsStateManagement
> > > Strategy.restoreView(DefaultFaceletsStateManagementStrategy.java:431)
> > >     at org.apache.myfaces.application.StateManagerImpl.
> > > restoreView(StateManagerImpl.java:133)
> > >     at org.apache.myfaces.shared.view.ViewDeclarationLanguageBase.
> > > restoreView(ViewDeclarationLanguageBase.java:104)
> > >     at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage
> > > .restoreView(FaceletViewDeclarationLanguage.java:2134)
> > >     at org.apache.myfaces.application.ViewHandlerImpl.
> > > restoreView(ViewHandlerImpl.java:336)
> > >     at javax.faces.application.ViewHandlerWrapper.restoreView(
> > > ViewHandlerWrapper.java:81)
> > >     at javax.faces.application.ViewHandlerWrapper.restoreView(
> > > ViewHandlerWrapper.java:81)
> > >     at org.omnifaces.viewhandler.RestorableViewHandler.restoreView(
> > > RestorableViewHandler.java:66)
> > >     at javax.faces.application.ViewHandlerWrapper.restoreView(
> > > ViewHandlerWrapper.java:81)
> > >     at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(
> > > RestoreViewExecutor.java:168)
> > >     at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(
> > > LifecycleImpl.java:196)
> > >     at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
> > > LifecycleImpl.java:143)
> > >     at org.apache.deltaspike.jsf.impl.listener.request.
> > > DeltaSpikeLifecycleWrapper.execute(DeltaSpikeLifecycleWrapper.java:89)
> > >     at javax.faces.lifecycle.LifecycleWrapper.execute(
> > > LifecycleWrapper.java:46)
> > >     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:196)
> > >     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:305)
> > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:210)
> > >     at fr.senat.faces.filters.HibernateNoCacheFilter.doFilter(
> > > HibernateNoCacheFilter.java:118)
> > >     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:243)
> > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:210)
> > >     at
> > fr.senat.faces.filters.HibernateSessionConversationFilter.doFilter(
> > > HibernateSessionConversationFilter.java:70)
> > >     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:243)
> > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:210)
> > >     at
> fr.senat.faces.filters.HibernateUserFromPrincipalFilter.doFilter(
> > > HibernateUserFromPrincipalFilter.java:32)
> > >     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:243)
> > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:210)
> > >     at org.apache.catalina.core.StandardWrapperValve.invoke(
> > > StandardWrapperValve.java:222)
> > >     at org.apache.catalina.core.StandardContextValve.invoke(
> > > StandardContextValve.java:123)
> > >     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> > > AuthenticatorBase.java:581)
> > >     at org.apache.catalina.core.StandardHostValve.invoke(
> > > StandardHostValve.java:171)
> > >     at org.apache.catalina.valves.ErrorReportValve.invoke(
> > > ErrorReportValve.java:99)
> > >     at org.apache.catalina.valves.AccessLogValve.invoke(
> > > AccessLogValve.java:947)
> > >     at org.apache.catalina.core.StandardEngineValve.invoke(
> > > StandardEngineValve.java:118)
> > >     at org.apache.catalina.connector.CoyoteAdapter.service(
> > > CoyoteAdapter.java:408)
> > >     at org.apache.coyote.http11.AbstractHttp11Processor.process(
> > > AbstractHttp11Processor.java:1009)
> > >     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.
> > > process(AbstractProtocol.java:589)
> > >     at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.
> > > run(JIoEndpoint.java:312)
> > >     at java.util.concurrent.ThreadPoolExecutor.runWorker(
> > > ThreadPoolExecutor.java:1145)
> > >     at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > > ThreadPoolExecutor.java:615)
> > >     at java.lang.Thread.run(Thread.java:744)
> > > Caused by: java.lang.InstantiationException: org.apache.deltaspike.jsf.
> > > impl.injection.ConverterWrapper
> > >     at java.lang.Class.newInstance(Class.java:359)
> > >     at javax.faces.component.UIComponentBase.restoreAttachedState(
> > > UIComponentBase.java:1898)
> > >     ... 54 more
> > >
> > > |
> > > | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> > > |
> > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message