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

Services return the same message for all failures: Transaction Failure when committing changes

    XMLWordPrintableJSON

    Details

    • Release Notes:
      Services now return the root cause of the error.
    • Rank:
      1|hzypjr:

      Description

      My Service handler throws an NPE. But the service returns a misleading error message:

      [andreas@Andreass-Pro training]$ cdap-cli.sh call service Training.PurchaseService GET customers/orange
      Successfully connected CDAP instance at http://127.0.0.1:10000
      Error: 500: Transaction failure when committing changes. Aborted transaction.

      The Service runner should distinguish better what kinds of errors happened.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sagar Sagar Kapare
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: