Bugzilla – Bug 637
globus error code not accessible in GramJobListeners when a job fails
Last modified: 2005-12-05 17:07:09
You need to log in before you can comment on or make changes to this bug.
Two bugs prevent job listeners getting the error code of a failed job (with getError() of GramJob class): It is also true for 0.9.13 version... - in GramJob.java: setError(int code) does not update error member: /** * Sets the error code of the job. * Note: User should not use this method. * * @param code error code */ protected void setError(int code) { this.error = error; } This works better: protected void setError(int code) { this.error = code; } - in CallbackHandler.java, job listeners are notified of the status change before error is set: job.setStatus( hd.status ); job.setError( hd.failureCode ); as listeners are called in setStatus... This works better: job.setError( hd.failureCode ); job.setStatus( hd.status );
Thanks for catching this. This is fixed now on the jglobus "jglobus-jgss" branch.