gxp_featuremanager nextpage throws Cannot do natural order without a primary key, ple

المشرف العام

Administrator
طاقم الإدارة
I am using geoserver and boundless to build web mapping apps.

I have a feature grid that displays the selected layers' geometry/features.On load it shows the first 100 features, maxFeatures Number default is 100 - as per the documentation.So no issue there, the first 100 fetures are loaded and displayed on the map. However, when I click the button to show/retrieve the next 100 features I receive this response:

Status: 200

java.lang.RuntimeException: java.io.IOExceptionjava.io.IOExceptionCannot do natural order without a primary key, please add it or specify a manual sort over existing attributes

It does not load any more features, but returns status 200.

The DB table I used does have valid geometry and a primary key. Can anybody please explain why this is happening or how I can fix this?

Thank you.



أكثر...
 
أعلى