Dear All,
I would like to ask you how I can pass a valid GPMultiValue with GPRasterDataLayer inside to the Local GP Service in ArcGIS Runtime 10.2.4.
My REST parameters are below:

When I run my sample app, geoprocessing service starts. After I submit my jobs, it fails. There is nothing I can read from the job info. The job output is below.

Below you find my Java code for defining input parameters.
List<GPParameter> parameters = new ArrayList<>();
inputRasters = new GPMultiValue<GPParameter>("input_rasters");
GPLong bands = new GPLong("nmb_bands");
bands.setValue(3);
GPRasterDataLayer ras1 = new GPRasterDataLayer();
ras1.setRasterDataUrl("http://127.0.0.1/zdjecia/lot1.tif");
ras1.setFormat("tif");
GPRasterDataLayer ras2 = new GPRasterDataLayer();
ras2.setRasterDataUrl("http://127.0.0.1/zdjecia/lot2.tif");
ras2.setFormat("tif");
GPRasterDataLayer ras3 = new GPRasterDataLayer();
ras3.setRasterDataUrl("http://127.0.0.1/zdjecia/lot3.tif");
ras3.setFormat("tif");
GPRasterDataLayer ras4 = new GPRasterDataLayer();
ras4.setRasterDataUrl("http://127.0.0.1/zdjecia/lot4.tif");
ras4.setFormat("tif");
inputRasters.addValue(bands);
inputRasters.addValue(ras1);
inputRasters.addValue(ras2);
inputRasters.addValue(ras3);
inputRasters.addValue(ras4);
parameters.add(inputRasters);
parameters.add(bands);
String gpUrl = MosiacService.getUrlGeoprocessingService() + "/MosaicToRaster";
MosaicGP = new Geoprocessor(gpUrl);
MosaicGP.submitJobAndGetResultsAsync(parameters, null,new String[]{"mosaic_out"}, new GPCallback());
According to the documentation, if GPRasterDataLayer is an input, I should pass a JSON like this:
{
"paramName" : "<paramName>",
"dataType" : "<GPRasterDataLayer | GPFeatureRecordSetLayer>",
"value" :
{
"mapImage" :
{
"href" : "<href>",
"width" : <width>,
"height" : <height>,
"extent" : {<envelope>},
"scale" : <scale>
}
}
}But there are only methods to add URL and Format to GPRasterDataLayer. BTW, adding input rasters using URL is not a convenient way for me. Is it a way to add rasters using local paths? As far as I know the uploads are not currently supported by ArcGIS Runtime GP, so there is no option to pass itemId as an input.
Best Regards,
Adam