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

External RA PKCS12 request gives NPE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 4.0.0
    • Fix Version/s: EJBCA 4.0.2
    • Component/s: Legacy External RA
    • Labels:
      None

      Description

      There was a switch in 4.0 in how the external RA workers get their ejbs. This does not work properly for the PKCS12 request and gives NPE. We must use lazy loeading to check for usekeyrecovery instead.

      org.ejbca.extra.caservice.ConfigurationException: Error instansiating Session Beans:
      at org.ejbca.extra.caservice.processor.PKCS12RequestProcessor.<init>(PKCS12RequestProcessor.java:64)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
      at java.lang.Class.newInstance0(Class.java:372)
      at java.lang.Class.newInstance(Class.java:325)
      at org.ejbca.extra.caservice.processor.MessageProcessor.processSubMessage(MessageProcessor.java:131)
      at org.ejbca.extra.caservice.ExtRACAServiceWorker.processWaitingMessages(ExtRACAServiceWorker.java:255)
      at org.ejbca.extra.caservice.ExtRACAServiceWorker.work(ExtRACAServiceWorker.java:94)
      at org.ejbca.core.ejb.services.ServiceSessionBean.executeServiceInNoTransaction(ServiceSessionBean.java:570)

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: