Bug 637 - globus error code not accessible in GramJobListeners when a job fails
: globus error code not accessible in GramJobListeners when a job fails
Status: RESOLVED FIXED
: CoG jglobus
gram
: 1.0a
: All All
: P2 major
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-01-24 09:31 by
Modified: 2005-12-05 17:07 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-01-24 09:31:01
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 );
------- Comment #1 From 2003-01-24 23:15:31 -------
Thanks for catching this. This is fixed now on the jglobus "jglobus-jgss" 
branch.