Services return the same message for all failures: Transaction Failure when committing changes
Description
Release Notes
Services now return the root cause of the error.
blocks
Activity
Show:
Sagar Kapare August 25, 2015 at 2:02 AM
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Sagar Kapare
Sagar KapareReporter
Andreas Neumann
Andreas NeumannAffects versions
Components
Fix versions
Priority
Created March 20, 2015 at 9:25 PM
Updated December 9, 2020 at 8:58 PM
Resolved August 25, 2015 at 9:35 PM
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.