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

Improve error on python syntax error

    Details

    • Rank:
      1|i00kfz:

      Description

      The attached pipeline has some bad python syntax. When you try deploying the pipeline, all that comes back is an unhelpful error message that says:

      Error configuring stage 'Python': null

      I've attached a screenshot of the error.

      The root cause is a bad exception thrown by jython:

      Caused by: org.python.core.PySyntaxError: null
      	at org.python.core.ParserFacade.fixParseError(ParserFacade.java:92) ~[na:na]
      	at org.python.core.ParserFacade.parseExpressionOrModule(ParserFacade.java:130) ~[na:na]
      	at org.python.util.PythonInterpreter.compile(PythonInterpreter.java:259) ~[na:na]
      	at org.python.util.PythonInterpreter.compile(PythonInterpreter.java:256) ~[na:na]
      	at org.python.util.PythonInterpreter.compile(PythonInterpreter.java:250) ~[na:na]
      	at co.cask.hydrator.plugin.transform.PythonEvaluator.init(PythonEvaluator.java:413) ~[na:na]
      	at co.cask.hydrator.plugin.transform.PythonEvaluator.configurePipeline(PythonEvaluator.java:175) ~[na:na]
      	at co.cask.cdap.etl.spec.PipelineSpecGenerator.configurePlugin(PipelineSpecGenerator.java:337) ~[na:na]
      	... 37 common frames omitted
      

      But the plugin should at least be catching the PySyntaxError and telling the user that there is a syntax error, though what the error is can't be determined if jython isn't saying what it is.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: