Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3-next-M7, 4.0.0-RC2
-
None
-
None
Description
This problem is seen to occur with an EAR bundle (containing multiple faces war files).
Release is called twice during the setup, with the second call resulting in the NPE.
[12/14/22, 7:53:26:792 PST] 00000181 org.apache.myfaces.webapp.FacesInitializerImpl E An error occured while initializing MyFaces: null java.lang.NullPointerException at org.apache.myfaces.config.annotation.CdiAnnotationProviderExtension.release(CdiAnnotationProviderExtension.java:78) at org.apache.myfaces.config.annotation.CdiAnnotationProviderExtension$Proxy$_$$_WeldClientProxy.release(Unknown Source) at org.apache.myfaces.webapp.FacesInitializerImpl.cleanupAfterStartup(FacesInitializerImpl.java:281) at org.apache.myfaces.webapp.FacesInitializerImpl.initFaces(FacesInitializerImpl.java:251) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:54) at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:2466) at com.ibm.ws.webcontainer31.osgi.webapp.WebApp31.notifyServletContextCreated(WebApp31.java:510) at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:1064) at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:6704) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApp(DynamicVirtualHost.java:472) at com.ibm.ws.webcontainer.osgi.DynamicVirtualHost.startWebApplication(DynamicVirtualHost.java:467) ...
Release method added here:
https://github.com/apache/myfaces/commit/49352d8d6aa8036f345807ec910342db04c8970a
Attachments
Issue Links
- links to