From: Vesso N. <ve...@do...> - 2008-08-01 19:17:30
|
There's a problem with certain GridSAM Client installations. Symptoms: Using CLI from the Client side to send a valid JSDL through gridsam-submit results in an error returned with the message: "No jsdl:JobDefinition element can be found in the request. Please check your input and the namespace declarations." Reason: In the file GridSAMService.java the call to "... if(pRequest.selectPath(GridSAMSupport.XPATH_NAMESPACES_DECLARATION + "/gridsam:submitJob/gridsam:JobDescription/jsdl:JobDefinition").length == 0){ ..." fails as the XPath evaluation fails even though the JSDL is valid and the JobDefinition element is present. The failure is caused by the Body part of the SOAP message sent from the Client side containing duplicated 'sumbitJob' XML elements - i.e. effectively changing the path to the JobDefinition element: incorrect SOAP: " <soapenv:Body wsu:Id="id-29263633" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <submitJob xmlns="http://www.icenigrid.org/service/gridsam"> <submitJob> <submitJob startSuspended="false" xmlns:grid="http://www.icenigrid.org/service/gridsam"> <JobDescription> <JobDefinition xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl"> <JobDescription> <Application> <POSIXApplication xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix"> <Executable>/bin/echo</Executable> <Argument>hello world</Argument> </POSIXApplication> </Application> </JobDescription> </JobDefinition> </JobDescription> </submitJob> </submitJob> </submitJob> </soapenv:Body> " correct SOAP: " <soapenv:Body wsu:Id="id-4347715" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <grid:submitJob startSuspended="false" xmlns:grid="http://www.icenigrid.org/service/gridsam"> <grid:JobDescription> <JobDefinition xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl"> <JobDescription> <Application> <POSIXApplication xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix"> <Executable>/bin/echo</Executable> <Argument>hello world</Argument> </POSIXApplication> </Application> </JobDescription> </JobDefinition> </grid:JobDescription> </grid:submitJob> </soapenv:Body> " Cause: Undetermined yet! Fix: Not until the exact cause is determined! > -- > -------------------------------------------------------------------------------------------------------- > Vesso A. Novov -- Research > Assistant -- > -------------------------------------------------------------------------------------------------------- > London e-Science Centre http://www.lesc.doc.ic.ac.uk > Imperial College London, Department of Computing > 180 Queen's Gate, London SW7 2RH, UK > tel: +44 (0)207-594-8399 fax: +44 (0)207-581-8024 > --------------------------------------------------------------------------------------------------------- > > |