[jira] [Commented] (MYFACES-4634) Exception when processing attribute-extension property in faces-config.xml
[ https://issues.apache.org/jira/browse/MYFACES-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772619#comment-17772619 ] Thomas Andraschko commented on MYFACES-4634: same here a PR for branches with the same codebase (4.1, 4.0, 2.3-next) would be great > Exception when processing attribute-extension property in faces-config.xml > -- > > Key: MYFACES-4634 > URL: https://issues.apache.org/jira/browse/MYFACES-4634 > Project: MyFaces Core > Issue Type: Bug >Reporter: James McLeod >Priority: Major > Attachments: faces-config_xml-exception.patch > > > The exception is > Oct 03, 2023 8:58:01 A.M. > org.apache.myfaces.config.DefaultFacesConfigurationProvider > getWebAppFacesConfig > INFO: Reading config /WEB-INF/faces-config.xml > Oct 03, 2023 8:58:01 A.M. org.apache.myfaces.webapp.FacesInitializerImpl > initFaces > SEVERE: An error occured while initializing MyFaces: > java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" > because "this.attributeExtensions" is null > jakarta.faces.FacesException: java.lang.NullPointerException: Cannot invoke > "java.util.List.add(Object)" because "this.attributeExtensions" is null > at > org.apache.myfaces.config.impl.FacesConfigUnmarshallerImpl.getFacesConfig(FacesConfigUnmarshallerImpl.java:180) > at > org.apache.myfaces.config.impl.FacesConfigUnmarshallerImpl.getFacesConfig(FacesConfigUnmarshallerImpl.java:77) > at > org.apache.myfaces.config.DefaultFacesConfigurationProvider.getWebAppFacesConfig(DefaultFacesConfigurationProvider.java:399) > at > org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:76) > at > org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:468) > at > org.apache.myfaces.webapp.FacesInitializerImpl.buildConfiguration(FacesInitializerImpl.java:382) > at > org.apache.myfaces.webapp.FacesInitializerImpl.initContainerIntegration(FacesInitializerImpl.java:709) > at > org.apache.myfaces.webapp.FacesInitializerImpl.initFaces(FacesInitializerImpl.java:179) > at > org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:54) > at > org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1046) > at > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:624) > at > org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:983) > at > org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:740) > at > org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392) > at > org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1305) > at > org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:902) > at > org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306) > at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:533) > at > org.eclipse.jetty.maven.plugin.MavenWebAppContext.doStart(MavenWebAppContext.java:294) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at org.eclipse.jetty.server.Server.start(Server.java:470) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at org.eclipse.jetty.server.Server.doStart(Server.java:415) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.maven.plugin.JettyEmbedder.doStart(JettyEmbedder.java:223) > at > org.eclipse.jetty.util.component.AbstractLifeCy
[jira] [Commented] (MYFACES-4634) Exception when processing attribute-extension property in faces-config.xml
[ https://issues.apache.org/jira/browse/MYFACES-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772620#comment-17772620 ] James McLeod commented on MYFACES-4634: --- Shall do; will complete by sometime next week (possibly earlier). > Exception when processing attribute-extension property in faces-config.xml > -- > > Key: MYFACES-4634 > URL: https://issues.apache.org/jira/browse/MYFACES-4634 > Project: MyFaces Core > Issue Type: Bug >Reporter: James McLeod >Priority: Major > Attachments: faces-config_xml-exception.patch > > > The exception is > Oct 03, 2023 8:58:01 A.M. > org.apache.myfaces.config.DefaultFacesConfigurationProvider > getWebAppFacesConfig > INFO: Reading config /WEB-INF/faces-config.xml > Oct 03, 2023 8:58:01 A.M. org.apache.myfaces.webapp.FacesInitializerImpl > initFaces > SEVERE: An error occured while initializing MyFaces: > java.lang.NullPointerException: Cannot invoke "java.util.List.add(Object)" > because "this.attributeExtensions" is null > jakarta.faces.FacesException: java.lang.NullPointerException: Cannot invoke > "java.util.List.add(Object)" because "this.attributeExtensions" is null > at > org.apache.myfaces.config.impl.FacesConfigUnmarshallerImpl.getFacesConfig(FacesConfigUnmarshallerImpl.java:180) > at > org.apache.myfaces.config.impl.FacesConfigUnmarshallerImpl.getFacesConfig(FacesConfigUnmarshallerImpl.java:77) > at > org.apache.myfaces.config.DefaultFacesConfigurationProvider.getWebAppFacesConfig(DefaultFacesConfigurationProvider.java:399) > at > org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:76) > at > org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:468) > at > org.apache.myfaces.webapp.FacesInitializerImpl.buildConfiguration(FacesInitializerImpl.java:382) > at > org.apache.myfaces.webapp.FacesInitializerImpl.initContainerIntegration(FacesInitializerImpl.java:709) > at > org.apache.myfaces.webapp.FacesInitializerImpl.initFaces(FacesInitializerImpl.java:179) > at > org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:54) > at > org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1046) > at > org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:624) > at > org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:983) > at > org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:740) > at > org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:392) > at > org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1305) > at > org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:902) > at > org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:306) > at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:533) > at > org.eclipse.jetty.maven.plugin.MavenWebAppContext.doStart(MavenWebAppContext.java:294) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:121) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:171) > at org.eclipse.jetty.server.Server.start(Server.java:470) > at > org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) > at > org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:89) > at org.eclipse.jetty.server.Server.doStart(Server.java:415) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:93) > at > org.eclipse.jetty.maven.plugin.JettyEmbedder.doStart(JettyEmbedder.java:223) > at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.jav