[ https://issues.apache.org/jira/browse/MYFACES-4306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070003#comment-17070003 ]
Thomas Andraschko commented on MYFACES-4306: -------------------------------------------- {code:java} // 2020-03-28 20:01:32,428 SEVERE [org.apache.myfaces.webapp.AbstractFacesInitializer] (ServerService Thread Pool -- 122) An error occured while initializing MyFaces: WELD-001456: Argument bean must not be null: org.jboss.weld.exceptions.IllegalArgumentException: WELD-001456: Argument bean must not be null at org.jboss.weld.core@3.1.3.Final//org.jboss.weld.util.Preconditions.checkArgumentNotNull(Preconditions.java:40) at org.jboss.weld.core@3.1.3.Final//org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:708) at org.jboss.weld.core@3.1.3.Final//org.jboss.weld.util.ForwardingBeanManager.getReference(ForwardingBeanManager.java:64) at org.jboss.weld.core@3.1.3.Final//org.jboss.weld.bean.builtin.BeanManagerProxy.getReference(BeanManagerProxy.java:87) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.cdi.util.CDIUtils.resolveInstance(CDIUtils.java:65) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.cdi.util.CDIUtils.lookup(CDIUtils.java:52) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.flow.cdi.DefaultCDIFacesFlowProvider.getAnnotatedFlows(DefaultCDIFacesFlowProvider.java:52) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.flow.impl.AnnotatedFlowConfigurator.configureAnnotatedFlows(AnnotatedFlowConfigurator.java:42) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.config.FacesConfigurator.configureFlowHandler(FacesConfigurator.java:1713) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:619) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:456) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:70) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:190) at deployment.bundled-jsf.ear.bundled-jsf-webapp.war//org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:103) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:217) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:186) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1541) at io.undertow.servlet@2.0.30.Final//io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96) at org.wildfly.extension.undertow@19.0.0.Final//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.jboss.threads@2.3.3.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.3.3.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:834) at org.jboss.threads@2.3.3.Final//org.jboss.threads.JBossThread.run(JBossThread.java:485) {code} > 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)