Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-16046

Wrangler Jexl exception message doesn't have cause

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.3.0
    • Component/s: Data Prep
    • Rank:
      1|i00s5b:

      Description

      Have seen a pipeline fail with the following in the log:

      Caused by: io.cdap.wrangler.api.RecipeException: Error encountered while executing 'set-column' : Error encountered while executing 'AR_MONTHLY_VALUE_BEFORE * -1', at line '1' and column '1'. Make sure a valid jexl transformation is provided.
      	at io.cdap.wrangler.executor.RecipePipelineExecutor.execute(RecipePipelineExecutor.java:148) ~[wrangler-core-4.1.0.jar:na]
      	at io.cdap.wrangler.executor.RecipePipelineExecutor.execute(RecipePipelineExecutor.java:96) ~[wrangler-core-4.1.0.jar:na]
      	at io.cdap.wrangler.Wrangler.transform(Wrangler.java:424) ~[1571214226661-0/:na]
      	... 34 common frames omitted
      Caused by: io.cdap.wrangler.api.DirectiveExecutionException: Error encountered while executing 'set-column' : Error encountered while executing 'AR_MONTHLY_VALUE_BEFORE * -1', at line '1' and column '1'. Make sure a valid jexl transformation is provided.
      	at io.cdap.directives.transformation.ColumnExpression.execute(ColumnExpression.java:120) ~[na:na]
      	at io.cdap.directives.transformation.ColumnExpression.execute(ColumnExpression.java:54) ~[na:na]
      	at io.cdap.wrangler.executor.RecipePipelineExecutor.execute(RecipePipelineExecutor.java:128) ~[wrangler-core-4.1.0.jar:na]
      	... 36 common frames omitted
      Caused by: io.cdap.wrangler.expression.ELException: Error encountered while executing 'AR_MONTHLY_VALUE_BEFORE * -1', at line '1' and column '1'. Make sure a valid jexl transformation is provided.
      	at io.cdap.wrangler.expression.EL.execute(EL.java:104) ~[wrangler-core-4.1.0.jar:na]
      	at io.cdap.wrangler.expression.EL.execute(EL.java:121) ~[wrangler-core-4.1.0.jar:na]
      	at io.cdap.directives.transformation.ColumnExpression.execute(ColumnExpression.java:112) ~[na:na]
      	... 38 common frames omitted
      

      This is a largely unhelpful message because you don't know what the cause is. It looks like EL.java throws new exceptions without setting the cause, which makes it impossible to debug the actual issue.

        Attachments

          Activity

            People

            • Assignee:
              vinisha Vinisha Shah
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: