pass java error to task