Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-11087

Backport OPENIDM-11024: NPE can be thrown if the authentication service comes up before the identityService

    Details

      Description

      From an environment in AWS this stack trace was thrown. 

      , service.vendor=ForgeRock AS., service.pid=org.forgerock.openidm.authentication, openidm.router.prefix=/authentication, connectionFactory.target=(service.pid=org.forgerock.openidm.router.internal), _rev=000000001d596b92, component.id=9, _id=org.forgerock.openidm.authentication, service.description=OpenIDM Authentication Service}
      May 24, 2018 9:10:19 PM org.forgerock.openidm.config.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.authnfilter [29] [org.forgerock.openidm.authentication(9)] The activate method has thrown an exception
      java.lang.NullPointerException
             at org.forgerock.openidm.auth.AuthenticationService.lambda$new$5(AuthenticationService.java:315)
             at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
             at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
             at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
             at java.util.stream.IntPipeline$4$1.accept(IntPipeline.java:250)
      

      Which is caused because the activate method inside of the authentication service attempts to register an identity provider to the identity provider service but the service is not up and ready yet.

      The @Reference on the IdentityProviderService is Dyanmic, UNARY_OPTIONAL perhaps it should be required..

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.offutt Mark Offutt [X] (Inactive)
                Reporter:
                mark.offutt Mark Offutt [X] (Inactive)
                QA Assignee:
                Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: