Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-2399

Extended enumeration type attribute cannot be used in expression as target (NPE)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.2 (Tycho)
    • Component/s: Model
    • Labels:
      None
    • Git Revision:
      git-v3.2devel-546-g3478355

      Description

      2015-06-11 12:39:27,891 [RESOURCE_OBJECT_CHANGE_LISTENER] [http-8080-7] ERROR (com.evolveum.midpoint.model.common.expression.script.ScriptExpression): Expression
       error: null
      java.lang.NullPointerException: null
              at com.evolveum.midpoint.model.common.expression.ExpressionUtil.convertValue(ExpressionUtil.java:159) ~[model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.convertScalarResult(Jsr223ScriptEvaluator.java:227) ~[model-common-3
      .2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.script.jsr223.Jsr223ScriptEvaluator.evaluate(Jsr223ScriptEvaluator.java:159) ~[model-common-3.2-SNAPSHOT
      .jar:na]
              at com.evolveum.midpoint.model.common.expression.script.ScriptExpression.evaluate(ScriptExpression.java:110) ~[model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.script.ScriptExpressionEvaluator.transformSingleValue(ScriptExpressionEvaluator.java:60) [model-common-3
      .2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator$1.process(AbstractValueTransformationExpression
      Evaluator.java:422) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator$1.process(AbstractValueTransformationExpression
      Evaluator.java:1) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:352) [util-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.util.MiscUtil.carthesian(MiscUtil.java:342) [util-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluateRelativeExpression(AbstractValueTransfo
      rmationExpressionEvaluator.java:442) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.evaluator.AbstractValueTransformationExpressionEvaluator.evaluate(AbstractValueTransformationExpressionE
      valuator.java:114) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.expression.Expression.evaluate(Expression.java:138) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.mapping.Mapping.evaluateExpression(Mapping.java:977) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.common.mapping.Mapping.evaluate(Mapping.java:516) [model-common-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.impl.lens.LensUtil.evaluateMapping(LensUtil.java:568) [model-impl-3.2-SNAPSHOT.jar:na]
              at com.evolveum.midpoint.model.impl.lens.projector.ObjectTemplateProcessor.collectTripleFromMappings(ObjectTemplateProcessor.java:301) [model-impl-3.2-SN
      APSHOT.jar:na]
              at com.evolveum.midpoint.model.impl.lens.projector.ObjectTemplateProcessor.collectTripleFromTemplate(ObjectTemplateProcessor.java:235) [model-impl-3.2-SN
      APSHOT.jar:na]
      

      The mapping was using expression returning the value that was expected to work, because it was the enumeration value from the extension attribute definition. The target was the extension attribute of enumeration type.

        Attachments

          Activity

            People

            Assignee:
            vix Ivan Noris
            Reporter:
            vix Ivan Noris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: