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

Regression: Cannot enable CMS for existing CA

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: EJBCA 7.0.0
    • Fix Version/s: EJBCA 7.0.1
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Another issue
    • Sprint:
      EJBCA Team Alice - 2019 w2, EJBCA Team Alice - 2019 w6

      Description

      Steps to reproduce:
      1. Edit an existing CA that hasn't had CMS enabled before.
      2. Next to "CMS Service", check "Activate"
      3. Press "Save"

      Expected:
      CMS should be activated, and a CMS certificate should be generated.

      Actual result:
      You get a strack trace:

      2019-01-11 07:28:25,809 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (default task-30) #{editCAsMBean.saveCa}: javax.ejb.EJBException: java.lang.NullPointerException: javax.faces.FacesException
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
              [...]
              at java.lang.Thread.run(Thread.java:748)
      Caused by: javax.faces.el.EvaluationException: javax.ejb.EJBException: java.lang.NullPointerException
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
              at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
              ... 61 more
      Caused by: javax.ejb.EJBException: java.lang.NullPointerException
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)
              [...]
              at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
              at org.ejbca.core.ejb.ca.caadmin.CAAdminSessionLocal$$$view509.editCA(Unknown Source)
              at org.ejbca.ui.web.admin.cainterface.CADataHandler.editCA(CADataHandler.java:132)
              at org.ejbca.ui.web.admin.ca.EditCAsMBean.saveCaInternal(EditCAsMBean.java:2092)
              at org.ejbca.ui.web.admin.ca.EditCAsMBean.saveCa(EditCAsMBean.java:1968)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [...]
              at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
              ... 62 more
      Caused by: java.lang.NullPointerException
              at org.ejbca.core.ejb.ca.caadmin.CAAdminSessionBean.editCA(CAAdminSessionBean.java:915)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [...]
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
              ... 111 more
      

        Attachments

          Activity

            People

            • Assignee:
              laurik_helmes Lauri Kongas
              Reporter:
              samuel Samuel Lidén Borell
              Verified by:
              Henrik Sunmark
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 days, 4 hours
                3d 4h