[ 
https://issues.apache.org/jira/browse/MYFACES-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082246#comment-17082246
 ] 

Thomas Andraschko edited comment on MYFACES-4306 at 4/13/20, 11:35 AM:
-----------------------------------------------------------------------

Its probably a chicken/egg problem.
 JSF (both Mojarra and MyFaces) are developed with the background that CDI has 
to be initialized before starting the servlet context.
 So it's IMO up to Wildfly as the initial deployment is also correct. Not sure 
whats wrong on restart/redeploy but thats really Wildfly related.

Will close it for now. Please create a issue on their side.


was (Author: tandraschko):
Its probably a chicken/egg problem.
JSF (both Mojarra and MyFaces) are developed with the background that CDI has 
to be initialized before starting the servlet context.
So it's IMO up to Wildfly as the initial deployment is also correct. Not sure 
whats wrong on restart/redeploy but thats really Wildfly related.

> Intermittent "Argument bean must not be null"
> ---------------------------------------------
>
>                 Key: MYFACES-4306
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4306
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.3.4
>         Environment: Wildfly 19
>            Reporter: Teresa Miyar
>            Priority: Major
>         Attachments: bundled-jsf.ear
>
>
> Intermittently getting the following stack trace:
> {code:java}
> Caused by: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: 
> Argument bean must not be nullCaused by: 
> org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument 
> bean must not be null at 
> org.jboss.weld.util.Preconditions.checkArgumentNotNull(Preconditions.java:40) 
> at 
> org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:708) 
> at 
> org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:64)
>  at 
> org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:87)
>  at org.apache.myfaces.cdi.util.CDIUtils.resolveInstance(CDIUtils.java:65) at 
> org.apache.myfaces.cdi.util.CDIUtils.lookup(CDIUtils.java:52) at 
> org.apache.myfaces.el.unified.ResolverBuilderBase.isReplaceImplicitObjectResolverWithCDIResolver(ResolverBuilderBase.java:232)
>  at 
> org.apache.myfaces.el.unified.ResolverBuilderForFaces.build(ResolverBuilderForFaces.java:108)
>  at 
> org.apache.myfaces.application.ApplicationImpl.createFacesResolver(ApplicationImpl.java:408)
>  at 
> org.apache.myfaces.application.ApplicationImpl.getELResolver(ApplicationImpl.java:389)
>  at 
> org.apache.myfaces.context.servlet.FacesContextImplBase.getELContext(FacesContextImplBase.java:230)
> {code}
> It works fine with MyFaces 2.0, the reason could be the one explained here 
> [https://issues.jboss.org/browse/WELD-1387]
>  
> to reproduce install wildfly 19, start/stop several times sometimes starts 
> with error and sometimes starts without a problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to