Closed kr1zz closed 5 years ago
Any news? Anybody could reproduce this?
hi @kr1zz, I created a unit test based on your processdescription. It fails indeed in the parsing of LiteralData. There was a reference to a wrong Element name ("DefaultValue") which threw an exception. After the pull request is merged, it should work as expected!
@matthesrieke great! I'll try again ASAP and let you in case of issues. Thank you again.
When requesting
DescribeProcess
for process identifierGPODTEST
to the ESA's GPOD WPS interface, inWPSClientSession.java
, methodparseInputStreamToString(InputStream in)
catches an exception. It looks like the lib cannot parse the result of theGetDescription
(see XML below). I tried following the parse process with the debugger and it fails in classorg.n52.geoprocessing.wps.client.decoder.stream.DescribeProcess100ResponseDecoder
, in methodreadLiteralData(StartElement start, XMLEventReader reader, LiteralInputDescription input)
: when the execution reaches the line<DefaultValue>Test</DefaultValue>
of the XML response, the following equals returns false and the execution does not enter the if-body:but it enters instead the next one:
How can we fix it?
Here's the XML response (pretty printed, but it's taken live from my debugging session):