Locating execution errors from the console output
This recipe shows that the often complex errors returned by Java can, in the main, be located fairly easily if you know how.
If you are already familiar with Java, this exercise is trivial; however, if you are not then Java errors can often seem very intimidating.
Getting ready
Open the jo_cook_ch10_0020_findExecutionError
job.
How to do it...
The steps for locating execution errors from the console output are as follows:
Run the job. It will fail with a null pointer error. Note the line number from the first line of the list of lines; 2636.
Open the Code tab and press CTRL + L.
Type
2636
as the line number, and you will be taken to the following line:This is the line that caused the job to fail. There is null data in the
customer.age
field.
How it works...
It is fairly obvious from the message that the error occurred in tMap_1
, but it's not so obvious unless you know Java error messages. Unlike compilation errors, Talend does not list the error in...