WaCoDiS / javaps-wacodis-backend

javaPS backend for WaCoDiS processing tools
Apache License 2.0
0 stars 2 forks source link

unparsable process description for landcover classification algorithm #1

Closed arnevogt closed 5 years ago

arnevogt commented 5 years ago

Result of DescribeProcess request for process _de.hsbo.wacodis.land_coverclassification cannot be parsed with 52North wps-client-lib

2019-03-11 14:50:53,943 [main] ERROR org.n52.geoprocessing.wps.client.WPSClientSession: Could not fetch processdescription for process: de.hsbo.wacodis.land_cover_classification org.n52.geoprocessing.wps.client.WPSClientException: Could not decode Inputstream. at org.n52.geoprocessing.wps.client.WPSClientSession.parseInputStreamToString(WPSClientSession.java:551) ~[classes/:na] at org.n52.geoprocessing.wps.client.WPSClientSession.retrieveResponseOrExceptionReportInpustream(WPSClientSession.java:491) ~[classes/:na] at org.n52.geoprocessing.wps.client.WPSClientSession.retrieveDescriptionViaGET(WPSClientSession.java:564) ~[classes/:na] at org.n52.geoprocessing.wps.client.WPSClientSession.describeProcess(WPSClientSession.java:290) ~[classes/:na] at org.n52.geoprocessing.wps.client.WPSClientSession.getProcessDescription(WPSClientSession.java:229) ~[classes/:na] at org.n52.geoprocessing.wps.client.WPSClientExample.requestDescribeProcess(WPSClientExample.java:161) [test-classes/:na] at org.n52.geoprocessing.wps.client.WPSClientExample.testExecute(WPSClientExample.java:60) [test-classes/:na] at org.n52.geoprocessing.wps.client.WPSClientExample.main(WPSClientExample.java:176) [test-classes/:na]

This issue does not appear with the other algorithms, e.g. de.hsbo.wacodis.snap.s2togeotiff or org.n52.javaps.service.TestAlgorithm. The issue could also be caused by 52North wps-client-lib.

Easiest way to reproduce:

  1. run wps web app with wacodis backend locally
  2. edit variables wpsURL and processID in class org.n52.geoprocessing.wps.client.WPSClientExample.java of 52North wps-client-lib
  3. run org.n52.geoprocessing.wps.client.WPSClientExample.java (exception is already raised when retrieving process description).

Manually retrieving process description:

unparsable response for _de.hsbo.wacodis.land_coverclassification: DescribeProcess `<?xml version="1.0" encoding="UTF-8"?>

Land Cover Classification Perform a land cover classification for optical images. de.hsbo.wacodis.land_cover_classification Optical images source type The type of the source for the optical images OPTICAL_IMAGES_TYPE Aerial_Image Sentinel-2 string Sentinel-2 Reference data type The type of the reference data REFERENCE_DATA_TYPE ATKIS MANUAL string ATKIS Optical images sources Sources for the optical images OPTICAL_IMAGES_SOURCES string Sentinel-2 PRODUCT PRODUCT string ` **parsable** response for _org.n52.javaps.service.TestAlgorithm_: [DescribeProcess](http://localhost:8080/wps/service?service=WPS&request=DescribeProcess&identifier=org.n52.javaps.service.TestAlgorithm&version=2.0.0) ` org.n52.javaps.service.TestAlgorithm org.n52.javaps.service.TestAlgorithm input2 input2 string input1 input1 string output2 output2 string output1 output1 string `
SebaDro commented 5 years ago

The cause for the described issue is not located in this repository. Since the used wps-client-lib contains unimplemented support for ows:AllowedValues, the issue is regarding to https://github.com/52North/wps-client-lib/. The issue has been solved by WaCoDiS/wps-client-lib@f39057e and thus can be closed.