geoserver / geoserver-cloud

Cloud Native GeoServer is GeoServer ready to use in the cloud through dockerized microservices.

Home Page:http://geoserver.org/geoserver-cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to create a layer from a pregeneralized datastore

AlexGacon opened this issue · comments

When I try to create a layer from a pregeneralized datastore, the creation fails with errors.

REST API
If I use the REST API, I got the following error in logs
java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "f" is null at org.geoserver.data.gen.DSFinderRepository.getURLForLocation(DSFinderRepository.java:46) ~[gs-feature-pregeneralized-2.21.0-CLOUD.jar:2.21.0-CLOUD]

If I try to create a new layer from the datastore in the admin UI, the layer is marked as "Published" but it is not visible in the Layers page. But if I send a GET request for the layer, I managed to have a definition of the layer.

ADMIN UI
If I try to do the creation from the admin UI, I got exactly the same error message but the REST API doesn't list the layer as in the first case

The behaviors for the REST API and the admin UI are confirmed with a GS Cloud instance using a data_dir instead of the JDBC stores.

@AlexGacon where can I get a sample pregeneralized store's data and definition to replicate?

The behaviors for the REST API and the admin UI are confirmed with a GS Cloud instance using a data_dir instead of the JDBC stores.

what do you mean confirmed? that it works with the datadir catalog backend but fails with the jdbcconfig one?

Tested on GeoServer Vanilla with JDBC config and resource store : I managed to create the layer but the overview of it is not working.
image

I will create an issue in GeoServer (and probably GeoTools) JIRA.