Automation for java actions in ERROR state

@bug W-2263677@
@rev lhong@
Merging origin/tbliss/master-pending-java-action-error-automation into master