Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10178

Don't have Fn.getEmails crash on null value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF02, 5.7.1
    • Component/s: Automation

      Description

      We see ERRORs in the logs due to:

      Caused by: [Error: Fn.getEmails(Context["document.routing.task.actors"]): null]
      [Near : {... Unknown ....}]
                   ^
      [Line: 1, Column: 0]
      	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:388)
      	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:135)
      	at org.mvel2.optimizers.dynamic.DynamicOptimizer.optimizeAccessor(DynamicOptimizer.java:66)
      	at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:139)
      	at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
      	at org.mvel2.MVEL.executeExpression(MVEL.java:1057)
      	at org.nuxeo.ecm.automation.core.scripting.MvelExpression.eval(MvelExpression.java:38)
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.inject(OperationTypeImpl.java:164)
      	at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.newInstance(OperationTypeImpl.java:155)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:114)
      	at org.nuxeo.ecm.automation.core.impl.InvokableIteratorMethod.doInvoke(InvokableIteratorMethod.java:111)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:132)
      	... 142 more
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:987)
      	at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:326)
      	... 153 more
      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.automation.features.PlatformFunctions.getEmails(PlatformFunctions.java:139)
      	at org.nuxeo.ecm.automation.features.PlatformFunctions.getEmails(PlatformFunctions.java:123)
      	... 159 more
      

        Attachments

          Activity

            People

            • Assignee:
              fguillaume Florent Guillaume
              Reporter:
              fguillaume Florent Guillaume
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.