Details

    • Bug
    • Resolution: Done
    • Critical
    • xCM 5.0 SP4
    • xCM 5.0 SP4
    • None
    • SP4 21102

    Description

      Eroor while trying to perform a Nstep workflow on a group of page (two lang with one mandatory lang - some pages are only available in one lang). With root.

      I presume Sergiy this is the exception you mention to me this morning but I am putting it here to be sure that we are spakeing of the same one.

      [GC 193783K->128307K(1006592K), 0.0451815 secs]
      2008-06-12 12:35:54,484: INFO [org.jahia.services.search.lucene.fs.JahiaIndexSearcher] - Opening Searcher@e98251 main
      2008-06-12 12:35:54,484: INFO [org.jahia.services.search.lucene.AbstractLuceneSearchIndexer] - Finished processing 6 indexing orders in 188ms.
      2008-06-12 12:35:54,484: INFO [org.jahia.services.search.lucene.fs.JahiaIndexSearcher] - autowarming org.jahia.services.search.lucene.fs.JahiaIndexSearcher@e98251 from org.jahia.services.search.lucene.fs.JahiaIndexSearcher@19c56fe
      FilterCache

      {cumulative_inserts=0, hits=0, cumulative_evictions=0, inserts=2, cumulative_lookups=0, lookups=0, cumulative_hitratio=0.00, cumulative_hits=0, hitratio=0.00, evictions=0, size=2}
      2008-06-12 12:35:54,500: INFO [org.jahia.services.search.lucene.fs.JahiaIndexSearcher] - autowarming result for org.jahia.services.search.lucene.fs.JahiaIndexSearcher@e98251
      FilterCache{cumulative_inserts=0, hits=0, cumulative_evictions=0, inserts=2, cumulative_lookups=0, lookups=0, cumulative_hitratio=0.00, cumulative_hits=0, hitratio=0.00, evictions=0, size=2}

      2008-06-12 12:35:54,500: INFO [org.jahia.services.search.lucene.fs.LuceneCoreSearcher] - Registered new searcher org.jahia.services.search.lucene.fs.JahiaIndexSearcher@e98251
      2008-06-12 12:35:58,484: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/engineName/workflow/op/edit/home/nstep] user=[root] ip=[127.0.0.1] in [391ms]
      2008-06-12 12:35:58,562: INFO [org.jahia.services.scheduler.BackgroundJob] - execute Background job BackgroundJob-100f73d8-de04-4a40-90fa-57df7ee72b4b
      started @ Thu Jun 12 12:35:58 CEST 2008
      2008-06-12 12:35:59,062: WARN [org.jahia.workflow.nstep.NStepWorkflow] - Error during workflow of object ContentPage_14 in language de with process Three Validation Step Workflow
      java.lang.NullPointerException
      at org.jahia.services.workflow.WorkflowService.getRoleGroup(WorkflowService.java:364)
      at org.jahia.services.workflow.WorkflowService$$FastClassByCGLIB$$4fc46a68.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.workflow.WorkflowService$$EnhancerByCGLIB$$10ecde89.getRoleGroup(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.addActionToMailQueue(NStepWorkflow.java:1174)
      at org.jahia.workflow.nstep.NStepWorkflow.sendAction(NStepWorkflow.java:710)
      at org.jahia.services.workflow.ActivationJob.processWorkflow(ActivationJob.java:265)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:110)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:135)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2008-06-12 12:35:59,484: WARN [org.jahia.workflow.nstep.NStepWorkflow] - Error during workflow of object ContentPage_11 in language de with process Three Validation Step Workflow
      java.lang.NullPointerException
      at org.jahia.services.workflow.WorkflowService.getRoleGroup(WorkflowService.java:364)
      at org.jahia.services.workflow.WorkflowService$$FastClassByCGLIB$$4fc46a68.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.workflow.WorkflowService$$EnhancerByCGLIB$$10ecde89.getRoleGroup(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.addActionToMailQueue(NStepWorkflow.java:1174)
      at org.jahia.workflow.nstep.NStepWorkflow.sendAction(NStepWorkflow.java:710)
      at org.jahia.services.workflow.ActivationJob.processWorkflow(ActivationJob.java:265)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:110)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:135)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2008-06-12 12:35:59,671: WARN [org.jahia.workflow.nstep.NStepWorkflow] - Error during workflow of object ContentPage_12 in language fr with process Three Validation Step Workflow
      java.lang.NullPointerException
      at org.jahia.services.workflow.WorkflowService.getRoleGroup(WorkflowService.java:364)
      at org.jahia.services.workflow.WorkflowService$$FastClassByCGLIB$$4fc46a68.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.workflow.WorkflowService$$EnhancerByCGLIB$$10ecde89.getRoleGroup(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.addActionToMailQueue(NStepWorkflow.java:1174)
      at org.jahia.workflow.nstep.NStepWorkflow.sendAction(NStepWorkflow.java:710)
      at org.jahia.services.workflow.ActivationJob.processWorkflow(ActivationJob.java:265)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:110)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:135)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2008-06-12 12:35:59,890: WARN [org.jahia.workflow.nstep.NStepWorkflow] - Error during workflow of object ContentPage_9 in language de with process Three Validation Step Workflow
      java.lang.NullPointerException
      at org.jahia.services.workflow.WorkflowService.getRoleGroup(WorkflowService.java:364)
      at org.jahia.services.workflow.WorkflowService$$FastClassByCGLIB$$4fc46a68.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.workflow.WorkflowService$$EnhancerByCGLIB$$10ecde89.getRoleGroup(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.addActionToMailQueue(NStepWorkflow.java:1174)
      at org.jahia.workflow.nstep.NStepWorkflow.sendAction(NStepWorkflow.java:710)
      at org.jahia.services.workflow.ActivationJob.processWorkflow(ActivationJob.java:265)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:110)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:135)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2008-06-12 12:36:00,078: WARN [org.jahia.workflow.nstep.NStepWorkflow] - Error during workflow of object ContentPage_13 in language de with process Three Validation Step Workflow
      java.lang.NullPointerException
      at org.jahia.services.workflow.WorkflowService.getRoleGroup(WorkflowService.java:364)
      at org.jahia.services.workflow.WorkflowService$$FastClassByCGLIB$$4fc46a68.invoke(<generated>)
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
      at org.jahia.services.workflow.WorkflowService$$EnhancerByCGLIB$$10ecde89.getRoleGroup(<generated>)
      at org.jahia.workflow.nstep.NStepWorkflow.addActionToMailQueue(NStepWorkflow.java:1174)
      at org.jahia.workflow.nstep.NStepWorkflow.sendAction(NStepWorkflow.java:710)
      at org.jahia.services.workflow.ActivationJob.processWorkflow(ActivationJob.java:265)
      at org.jahia.services.workflow.ActivationJob.executeJahiaJob(ActivationJob.java:110)
      at org.jahia.services.scheduler.BackgroundJob.execute(BackgroundJob.java:135)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2008-06-12 12:36:00,078: INFO [org.jahia.services.scheduler.BackgroundJob] - Background job (of type workflow) ended with status successful executed in 1s
      2008-06-12 12:36:13,734: INFO [org.jahia.bin.Jahia] - Processed [/jahia/Jahia/op/edit/home/nstep] user=[root] ip=[127.0.0.1] in [0ms]

      TestRail: Results

        Attachments

          Activity

            [JAHIA-3214] SP4: Nstep: exception on getRoleGroup

            Discussed in pm-dm (https://jahia.slack.com/archives/CNRFEDYHX/p1728046393480479), closing, as Inactive, all issues that were last updated before January 2023 (22 months ago).
            Please re-open if necessary

            fgerthoffert@jahia.com Francois Gerthoffert added a comment - Discussed in pm-dm ( https://jahia.slack.com/archives/CNRFEDYHX/p1728046393480479 ), closing, as Inactive, all issues that were last updated before January 2023 (22 months ago). Please re-open if necessary

            Resolution: create ProcessingContext with the EDIT operation mode to correctly retrieve the page

            Fixed in 21140

            shyrkov Sergiy Shyrkov (Inactive) added a comment - Resolution: create ProcessingContext with the EDIT operation mode to correctly retrieve the page Fixed in 21140

            Yes, the NullPointerException occur now as a side effect of the JAHIA-3027 fix. Actually when a page does not have an active version (was never published) the JahiaPage is retrieved incorrectly now in the BackgroundJob.getProcessingContextFromBackgroundJobDataMap(JobDataMap), because the ContentPage.getPage(EntryLoadRequest, String, JahiaUser) method now returns 'null' that was not the case before.

            I will fix it and retest the behaviour and results (described in your second comment)

            Thank you!

            shyrkov Sergiy Shyrkov (Inactive) added a comment - Yes, the NullPointerException occur now as a side effect of the JAHIA-3027 fix. Actually when a page does not have an active version (was never published) the JahiaPage is retrieved incorrectly now in the BackgroundJob.getProcessingContextFromBackgroundJobDataMap(JobDataMap), because the ContentPage.getPage(EntryLoadRequest, String, JahiaUser) method now returns 'null' that was not the case before. I will fix it and retest the behaviour and results (described in your second comment) Thank you!

            After the exception, I am now getting (cf screenshot 1) strange workflow status.

            With root, I selected all the pages of this section (some mandatory lang (DE) are missing but root could bypass so the partial validation icon).

            After validation, my pages in FR have not been validated at all (red with lock status) and are still at level 1. Due to the eception? to something else? Why the home of the section which is available in all lang (or sub pages available in all lang) are not at step 2 now?

            scroisier Stephane Croisier (Inactive) added a comment - After the exception, I am now getting (cf screenshot 1) strange workflow status. With root, I selected all the pages of this section (some mandatory lang (DE) are missing but root could bypass so the partial validation icon). After validation, my pages in FR have not been validated at all (red with lock status) and are still at level 1. Due to the eception? to something else? Why the home of the section which is available in all lang (or sub pages available in all lang) are not at step 2 now?

            People

              shyrkov Sergiy Shyrkov (Inactive)
              scroisier Stephane Croisier (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases

                    Packages

                      Version Package
                      xCM 5.0 SP4