[Geoserver-users] GetFeature, viewparams & 2 layers

Hi list,

Using the demo requests page of geoserver I’m trying to send a GetFeature request with viewparams. When the request contains just 1 query, a feature collection is returned. But when I add another query (to get features of another layer) I get an exception.

The request:

<wfs:GetFeature xmlns:wfs=“http://www.opengis.net/wfs

service=“WFS”

version=“1.0.0”

viewParams=“param:value”

xsi:schemaLocation="http://www.opengis.net/wfs

http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd"

xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”>

<wfs:Query typeName=“workspace:layer1”>

</wfs:Query>

<wfs:Query typeName=“workspace:layer2”>

</wfs:Query>

</wfs:GetFeature>

The returned exception:

org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=1, size=1 index=1, size=1

A snippet of the stack trace of geoserver:

2014-04-23 15:17:46,131 INFO [geoserver.wfs] -

Request: getFeature

service = WFS

version = 1.0.0

baseUrl = http://tgeoproc1:8080/geoserver/

query[0]:

filter = Filter.INCLUDE

typeName[0] = {GEOFICHE}punten

outputFormat = GML2

resultType = results

viewParams[0] = {DOSSIER=11}

2014-04-23 15:23:19,960 INFO [geoserver.wfs] -

Request: getServiceInfo

2014-04-23 15:23:19,991 ERROR [geoserver.ows] -

org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=1, size=1

at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)

at org.geoserver.wfs.GetFeature.run(GetFeature.java:469)

at org.geoserver.wfs.DefaultWebFeatureService.getFeature(DefaultWebFeatureService.java:121)

at sun.reflect.GeneratedMethodAccessor321.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

I tried it on both geoserver 2.4.0 as a geoserver 2.5 snapshot. Both requests result in the above mentioned exception. Is this a known issue/bug?

Kind regards,

Roel De Nijs

@javaroe

Senior Java Developer


Volg Aquafin op Facebook | Twitter | YouTube | LinkedIN

Disclaimer: zie www.aquafin.be P Denk aan het milieu. Druk deze mail niet onnodig af.