[Geoserver-devel] [JIRA] (GEOS-11007) NullPointerException raised with WFS queries on database

Nicolas Vila created an issue

GeoServer / BugGEOS-11007

NullPointerException raised with WFS queries on database

Issue Type:

BugBug

Affects Versions:

2.22.3

Assignee:

Unassigned

Attachments:

Erreur Geoserver.txt

Components:

WFS

Created:

01/Jun/23 4:25 PM

Environment:

  • GeoServer 2.22.0
  • Révision Git dbc9f525ed9f98d8ac5d128c1a765b8a37092f7d
  • Build Date 17-Nov-2022 18:23
  • GeoTools 28.0 (rev 93b0abe9bc755432862825e19306e8b8e7114c2d)
  • GeoWebCache 1.22.0 (rev 1.22.x/ba83cb90b873cb98b7f418f577a4ae8b3ec1adbf)

Priority:

MediumMedium

Reporter:

Nicolas Vila

Hi,

I’m facing a strange issue while sending request on a database table with WFS.

What I find out:

  • Removing the paging make it works but can send back unwanted features.
  • If I let the paging, it crashes
  • If I let the paging and manually add “sortBy” parameter in the WFS query, it seems to work.

I suspect the issue to be related to the database. The table does not contain a Primary Key. Maybe sorting depends on the primary key? Please find enclosed the Geoserver log and stacktrace.

The issue occurs in this class, at org.geotools.data.transform.TransformFeatureCollection.openIterator(TransformFeatureCollection.java:130)

https://github.com/geotools/geotools/blob/27.x/modules/extension/transform/src/main/java/org/geotools/data/transform/TransformFeatureCollection.java

Regards.

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#100225-sha1:40c4da4)

Atlassian logo