[Geoserver-devel] [JIRA] (GEOS-10935) WPS Failed to retrieve value for input features Could not locate {catalog}layer in catalog

Mehmet Emin Yalçın created an issue

GeoServer / BugGEOS-10935

WPS Failed to retrieve value for input features Could not locate {catalog}layer in catalog

Issue Type:

BugBug

Affects Versions:

2.21.4, 2.22.0, 2.22.2

Assignee:

Unassigned

Components:

WPS

Created:

13/Apr/23 9:48 AM

Priority:

HighHigh

Reporter:

Mehmet Emin Yalçın

Wps requests related to wfs layer give this message when there is more than one catalog in Geoserver. I think its because of requests that sended by wps to wfs service. I don’t know maybe its exists but there sould be an attribute for wfs url for the request

for example default wfs url http://172.15.50.130:30201/geoserver/wps but when there is more than one catalog wfs doesn’t return result by this url. If there is more than one catalog you should specify catalog in url like this

http://172.15.50.130:30201/geoserver/iller/wfs

for example in my case

url : http://172.15.50.130:30201/geoserver/wps

post :

<?xml version=“1.0” encoding=“UTF-8”?><wps:Execute version=“1.0.0” service=“WPS” xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
[ows:Identifier|ows:Identifier]gs:Unique</ows:Identifier>
[wps:DataInputs|wps:DataInputs]
[wps:Input|wps:Input]
[ows:Identifier|ows:Identifier]features</ows:Identifier>
<wps:Reference mimeType=“text/xml” xlink:href="http://geoserver/wfs" method=“POST”>
[wps:Body|wps:Body]
<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2” xmlns:iller=“iller”>
<wfs:Query typeName=“iller:iller”/>
</wfs:GetFeature>
</wps:Body>
</wps:Reference>
</wps:Input>
[wps:Input|wps:Input]
[ows:Identifier|ows:Identifier]attribute</ows:Identifier>
[wps:Data|wps:Data]
[wps:LiteralData|wps:LiteralData]bolge_adi</wps:LiteralData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
[wps:ResponseForm|wps:ResponseForm]
<wps:RawDataOutput mimeType=“application/json”>
[ows:Identifier|ows:Identifier]result</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>

result :

<?xml version=“1.0” encoding=“UTF-8”?>
<wps:ExecuteResponse
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang=“en” service=“WPS” serviceInstance="http://172.15.50.130:30201/geoserver/ows?" version=“1.0.0”>
<wps:Process wps:processVersion=“1.0.0”>
[ows:Identifier|ows:Identifier]gs:Unique</ows:Identifier>
[ows:Title|ows:Title]Unique</ows:Title>
[ows:Abstract|ows:Abstract]Returns the unique values of a given attribute in a feature collection.</ows:Abstract>
</wps:Process>
<wps:Status creationTime=“2023-04-13T07:20:01.154Z”>
[wps:ProcessFailed|wps:ProcessFailed]
<ows:ExceptionReport version=“1.1.0”>
<ows:Exception exceptionCode=“NoApplicableCode”>
[ows:ExceptionText|ows:ExceptionText]Failed to retrieve value for input features
Could not locate

{iller}

iller in catalog.</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
</wps:ProcessFailed>
</wps:Status>
</wps:ExecuteResponse>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100221-sha1:5609d8c)

Atlassian logo