Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12773

NPE on startup during execution of past scheduled (de)publications

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 13.1.0, 12.6.3, 14.7.3
    • 14.7.14, 15.2.2
    • repository
    • None
    • 3
    • Flagged
    • Orion
    • Pulsar 287 - Cycle 3 Cooldown, Orion.Cycle1.Sprint1, Orion.Cycle1.Sprint2

    Description

      On startup, a query is done for outstanding publication requests. If the trigger timestamp is in the past, workflow is tried to be executed but it fails during session switch to workflowuser session AbstractGroupManager.session is null.

      Reproduction

      • On 13.1.0, on 12.6.3, schedule a document to be published in 3 minutes time
      • Stop the CMS and wait 4 minutes
      • Start the CMS

      Expected: document has been published
      Actual: there's a NullPointerException, the document is NOT published and the request for publication is gone.

      Stack trace:

      INFO 02.05.2019 14:32:09 ERROR Hippo JCR Quartz Job Scheduler_Worker-1 [ScheduleWorkflowTask$WorkflowJob.execute:134] Execution of scheduled workflow operation null on null failed
      INFO javax.jcr.LoginException: LoginModule could not perform authentication: null
      INFO at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1527) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO at org.hippoecm.repository.jackrabbit.RepositoryImpl.login(RepositoryImpl.java:373) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.apache.jackrabbit.core.SessionImpl.impersonate(SessionImpl.java:784) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO at org.hippoecm.repository.impl.SessionDecorator.impersonate(SessionDecorator.java:191) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.impl.SessionDecorator.impersonate(SessionDecorator.java:86) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.onehippo.repository.scheduling.RepositoryJobExecutionContext.createSession(RepositoryJobExecutionContext.java:62) ~[hippo-repository-api-13.1.0.jar:13.1.0]
      INFO at org.onehippo.repository.documentworkflow.task.ScheduleWorkflowTask$WorkflowJob.execute(ScheduleWorkflowTask.java:121) [hippo-repository-workflow-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.quartz.RepositoryJobJob.execute(RepositoryJobJob.java:50) [hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.2.3.jar:?]
      INFO at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.2.3.jar:?]
      INFO Caused by: javax.security.auth.login.LoginException: LoginModule could not perform authentication: null
      INFO at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:95) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1499) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO ... 9 more
      INFO Caused by: java.lang.NullPointerException
      INFO at org.hippoecm.repository.security.group.AbstractGroupManager.getMembershipIds(AbstractGroupManager.java:301) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.security.group.AbstractGroupManager.getMembershipIds(AbstractGroupManager.java:295) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.security.SecurityManager.getMemberships(SecurityManager.java:353) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.security.SecurityManager.assignGroupPrincipals(SecurityManager.java:577) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.security.SecurityManager.assignPrincipals(SecurityManager.java:561) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.hippoecm.repository.security.HippoLoginModule.login(HippoLoginModule.java:107) ~[hippo-repository-engine-13.1.0.jar:13.1.0]
      INFO at org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:86) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1499) ~[jackrabbit-core-2.16.2-h3.jar:2.16.2-h3]
      INFO ... 9 more
       

      Attachments

        Activity

          People

            jhoffman Jeroen Hoffman
            jhoffman Jeroen Hoffman
            Hippo Helpdesk Hippo Helpdesk
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: