Project

General

Profile

glite-CREAM adaptor: jsaga-job-status bug?

Added by Frizziero Eric over 11 years ago

Hi,

I'm using the glite-CREAM adaptor included on the following version of JSAGA engine:
-----------------------------------------
jsaga-help.sh -v
JSAGA Engine
IN2P3 Computing Center

SAGA specification version: 1.0 RC.6
JSAGA implementation version: 0.9.15
-----------------------------------------

Starting from the following jdl script:
-----------------------------------------
Executable = "run_amber11.sh";
StdOutput = "std.out";
StdError = "std.err";
InputSandbox = {"./amber11.tgz","./run_amber11.sh"};
OutputSandbox = {"std.out", "std.err"};
OutputSandboxBaseDestURI="gsiftp://localhost";
-----------------------------------------

I have submitted a job using the jsaga command line (jsaga-job-run script) as follow:
----------------------------------------------------

jsaga-job-run.sh -b -Executable run_amber11.sh -Output std.out -Error std.err -FileTransfer 'gsiftp://localhost/out.out\<out.out  gsiftp://localhost/err.err\<err.err ./amber11.tgz\>amber11.tgz ./run_amber11.sh\>run_amber11.sh' -r cream://prod-ce-01.pd.infn.it:8443/cream-lsf-grid

[2013-03-07 13:57:05,614] INFO fr.in2p3.jsaga.adaptor.cream.job.CreamJobAdaptorAbstract : Connecting to prod-ce-01.pd.infn.it (interface version=2.1,service version=1.14 - EMI version: 2.6.1-1)
[cream://prod-ce-01.pd.infn.it:8443/cream-lsf-grid]-[CREAM219894746]
----------------------------------------------------

If I ask the job status using the EMI-UI, the output is the following:
----------------------------------------------------
glite-ce-job-status https://prod-ce-01.pd.infn.it:8443/CREAM219894746
2013-03-07 13:59:34,316 WARN - No configuration file suitable for loading. Using built-in configuration


Instead using the jsaga command line (jsaga-job-status.sh script), the output is the following:
----------------------------------------------------
jsaga-job-status.sh [cream://prod-ce-01.pd.infn.it:8443/cream-lsf-grid]-[CREAM219894746]
[2013-03-07 13:59:56,319] INFO fr.in2p3.jsaga.adaptor.cream.job.CreamJobAdaptorAbstract : Connecting to prod-ce-01.pd.infn.it (interface version=2.1,service version=1.14 - EMI version: 2.6.1-1)
Exception in thread "main" java.lang.NumberFormatException: For input string: "N/A"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.<init>(Integer.java:660)
at fr.in2p3.jsaga.adaptor.cream.job.CreamJobMonitorAdaptor.getExitCode(CreamJobMonitorAdaptor.java:75)
at fr.in2p3.jsaga.impl.job.instance.JobAttributes$5.getValue(JobAttributes.java:124)
at fr.in2p3.jsaga.impl.attributes.AbstractAttributesImpl.getAttribute(AbstractAttributesImpl.java:69)
at fr.in2p3.jsaga.impl.task.AbstractTaskImplWithAsyncAttributes.getAttribute(AbstractTaskImplWithAsyncAttributes.java:37)
at fr.in2p3.jsaga.command.JobStatus.main(JobStatus.java:98)
----------------------------------------------------

Is that a bug of the glite-CREAM adaptor?

Cheers,
E r i c.


Replies (1)

RE: glite-CREAM adaptor: jsaga-job-status bug? - Added by Schwarz Lionel over 11 years ago

Hi eric,
Yes this is a bug. JSAGA tries to convert the "N/A" exit code into an integer and this leads to this NumberFormatException. I have fixed this in the latest snapshot so that the exitcode is null and no exception is thrown anymore.
Regards
Lionel

    (1-1/1)