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 19:13:15 GMT
hi ludovic,

i've attached a patch to DELTASPIKE-426 -> you can test it with your demo.

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:58 GMT+01:00 Ludovic Pénet <l.penet@senat.fr>:

> I will do my best to provide this tomorrow.
>
> Thank you for your quick reply and for the workaround.
>
> Best regards
>
> Ludovix
>
>
> On 11 mars 2014 19:46:42 UTC+01:00, Gerhard Petracek <
> gerhard.petracek@gmail.com> wrote:
>>
>> hi ludovic,
>>
>> it would be great if you can provide a link to a demo which illustrates
>> the issue.
>>
>> for now you can provide a custom implementation of JsfModuleConfig (e.g.
>> via @Specializes)
>> which returns false in case of #isContainerManagedConvertersEnabled and
>> #isContainerManagedValidatorsEnabled
>>
>> 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:29 GMT+01:00 Ludovic Pénet <l.penet@senat.fr>:
>>
>>> 2.2.1.
>>>
>>> Thank you,
>>>
>>> Ludovic
>>>
>>> On 11 mars 2014 19:17:15 UTC+01:00, Gerhard Petracek <
>>> gerhard.petracek@gmail.com> wrote:
>>>
>>>> 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.
>>>>>  |
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>> --
>>> Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
>>>
>>> |
>>> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
>>> |
>>>
>>>
>>
> --
> Envoyé de mon téléphone Android avec K-9 Mail. Excusez la brièveté.
>
> |
> | AVANT D'IMPRIMER, PENSEZ A L'ENVIRONNEMENT.
> |
>
>

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