Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-9017

Not possible to save Administrator Preferences

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not needed to fix
    • Affects Version/s: EJBCA 6.15.2.5
    • Fix Version/s: None
    • Component/s: CA GUI
    • Labels:
      None
    • Issue discovered during:
      Community

      Description

      It is not possible to save Administrator Preferences. And an error "Internal Server Error" was displayed.

      This bug only exists within EJBCA 6.15.2.5, not in trunk (future 7.4).

      Reproduce:
      1. Install EJBCA CE 6.15.2.5 (e.g. Debian 9, OpenJDK JDK 8, WildFly 18, PostgreSQL 9.6),
      2. Go to System Configuration > Administrator Preferences,
      3. Just click on button "Save".
       

      Error in web page:


      Internal Server Error


      Error in WildFly log:


      2020-03-30 18:29:57,959 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-5) /sysconfig/systemconfiguration.jsp(475,5) '#

      {systemConfigMBean.availableThemes}' java.lang.NullPointerException: org.apache.jasper.el.JspELException: /sysconfig/systemconfiguration.jsp(475,5) '#{systemConfigMBean.availableThemes}

      ' java.lang.NullPointerException

      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:123)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:170)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:157)
      at javax.faces.component.UISelectItems.getValue(UISelectItems.java:108)
      at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:187)
      at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:112)
      at java.util.Iterator.forEachRemaining(Iterator.java:115)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.getDisabledSelectItemValues(MenuRenderer.java:886)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.decodeUISelectOne(MenuRenderer.java:866)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.decode(MenuRenderer.java:175)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:509)
      at javax.faces.component.UIInput.decode(UIInput.java:798)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:886)
      at javax.faces.component.UIInput.processDecodes(UIInput.java:692)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:196)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:1009)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:55)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:76)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
      at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
      at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:52)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.ejbca.ui.web.admin.NoCacheFilter.doFilter(NoCacheFilter.java:68)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.owasp.filters.ContentSecurityPolicyFilter.doFilter(ContentSecurityPolicyFilter.java:216)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.ejbca.ui.web.admin.ProxiedAuthenticationFilter.doFilter(ProxiedAuthenticationFilter.java:104)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      at org.ejbca.ui.web.admin.configuration.SystemConfigMBean.getAvailableThemes(SystemConfigMBean.java:1660)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:186)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:156)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:184)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:115)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:179)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:202)
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:115)
      ... 85 more

      2020-03-30 18:29:57,965 ERROR [io.undertow.request] (default task-5) UT005023: Exception handling request to /ejbca/adminweb/sysconfig/systemconfiguration.jsf: javax.servlet.ServletException: /sysconfig/systemconfiguration.jsp(475,5) '#

      {systemConfigMBean.availableThemes}' java.lang.NullPointerException


      at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:725)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
      at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
      at io.opentracing.contrib.jaxrs2.server.SpanFinishingFilter.doFilter(SpanFinishingFilter.java:52)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.ejbca.ui.web.admin.NoCacheFilter.doFilter(NoCacheFilter.java:68)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.owasp.filters.ContentSecurityPolicyFilter.doFilter(ContentSecurityPolicyFilter.java:216)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:357)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at org.ejbca.ui.web.admin.ProxiedAuthenticationFilter.doFilter(ProxiedAuthenticationFilter.java:104)
      at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
      at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
      at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
      at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
      at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
      at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
      at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
      at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:132)
      at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
      at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
      at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
      at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
      at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
      at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
      at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
      at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
      at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
      at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:269)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:78)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:133)
      at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:130)
      at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
      at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
      at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1504)
      at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)
      at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:78)
      at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:99)
      at io.undertow.server.Connectors.executeRootHandler(Connectors.java:376)
      at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
      at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: org.apache.jasper.el.JspELException: /sysconfig/systemconfiguration.jsp(475,5) '#{systemConfigMBean.availableThemes}

      ' java.lang.NullPointerException
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:123)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:170)
      at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:157)
      at javax.faces.component.UISelectItems.getValue(UISelectItems.java:108)
      at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:187)
      at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:112)
      at java.util.Iterator.forEachRemaining(Iterator.java:115)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.getDisabledSelectItemValues(MenuRenderer.java:886)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.decodeUISelectOne(MenuRenderer.java:866)
      at com.sun.faces.renderkit.html_basic.MenuRenderer.decode(MenuRenderer.java:175)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:509)
      at javax.faces.component.UIInput.decode(UIInput.java:798)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:886)
      at javax.faces.component.UIInput.processDecodes(UIInput.java:692)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:196)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:881)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:1009)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:55)
      at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:76)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
      at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:707)
      ... 63 more
      Caused by: java.lang.NullPointerException
      at org.ejbca.ui.web.admin.configuration.SystemConfigMBean.getAvailableThemes(SystemConfigMBean.java:1660)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at javax.el.BeanELResolver.getValue(BeanELResolver.java:186)
      at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:156)
      at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:184)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:115)
      at com.sun.el.parser.AstValue.getValue(AstValue.java:179)
      at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:202)
      at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:115)
      ... 85 more


        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dcarella David Carella
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: