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

NullPointerException when using Certificate Transparency with direct publishing

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:

      Description

      When using Certificate Transparency with a publisher configured with direct publishing enabled, you get an NullPointerException:

      2019-06-12 08:17:12,173 ERROR [org.jboss.as.ejb3.invocation] (default task-2) WFLYEJB0034: EJB Invocation failed on component CertificateStoreSessionBean for method public abstract java.util.List org.cesecore.certificates.certificate.CertificateStoreSession.getCertificateChain(org.cesecore.certificates.certificate.CertificateInfo): javax.ejb.EJBException: java.lang.NullPointerException
      	at org.jboss.as.ejb3@14.0.1.Final//org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:223)
      	[...]
      	at deployment.ejbca.ear.cesecore-ejb.jar//org.cesecore.certificates.certificate.CertificateStoreSessionLocal$$$view148.getCertificateChain(Unknown Source)
      	at deployment.ejbca.ear//org.ejbca.core.model.ca.publisher.CTCustomPublisher.storeCertificate(CTCustomPublisher.java:110)
      	at deployment.ejbca.ear//org.ejbca.core.model.ca.publisher.CustomPublisherContainer.storeCertificate(CustomPublisherContainer.java:212)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.publisher.PublisherQueueSessionBean.publishCertificateNonTransactional(PublisherQueueSessionBean.java:439)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.publisher.PublisherQueueSessionBean.publishCertificateNonTransactionalInternal(PublisherQueueSessionBean.java:508)
      	[...]
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.publisher.PublisherQueueSessionLocal$$$view156.publishCertificateNonTransactionalInternal(Unknown Source)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.publisher.PublisherSessionBean.storeCertificate(PublisherSessionBean.java:175)
      	[...]
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.publisher.PublisherSessionLocal$$$view173.storeCertificate(Unknown Source)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.sign.SignSessionBean.postCreateCertificate(SignSessionBean.java:1361)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.sign.SignSessionBean.createCertificate(SignSessionBean.java:1282)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.sign.SignSessionBean.createCertificate(SignSessionBean.java:586)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.sign.SignSessionBean.createCertificate(SignSessionBean.java:354)
      	[...]
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ca.sign.SignSessionLocal$$$view210.createCertificate(Unknown Source)
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ra.KeyStoreCreateSessionBean.generateOrKeyRecoverToken(KeyStoreCreateSessionBean.java:262)
      	[...]
      	at deployment.ejbca.ear.ejbca-ejb.jar//org.ejbca.core.ejb.ra.KeyStoreCreateSessionLocal$$$view202.generateOrKeyRecoverToken(Unknown Source)
      	at deployment.ejbca.ear.publicweb.war//org.ejbca.ui.web.pub.RequestInstance.doPost(RequestInstance.java:356)
      	at deployment.ejbca.ear.publicweb.war//org.ejbca.ui.web.pub.CertReqServlet.doPost(CertReqServlet.java:121)
      	[...]
      Caused by: java.lang.NullPointerException
      	at deployment.ejbca.ear.cesecore-ejb.jar//org.cesecore.certificates.certificate.CertificateStoreSessionBean.getCertificateChain(CertificateStoreSessionBean.java:1036)
      	[...]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samuel Samuel Lidén Borell
              Reporter:
              samuel Samuel Lidén Borell
              Verified by:
              Ulf Undmark
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  3h
                  Logged:
                  Time Spent - 1 hour Remaining Estimate - 3 hours
                  1h