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 pregeneralized data store from the UI

AlexGacon opened this issue · comments

With the RC26, which includes the bugfix I produced for making the pregeneralized datastore working with the JDBC resource store, I still cannot create such a datastore.

I got the following error message "java.io.IOException: Permission denied" : I think it occurs when the resource store tries to create a temporary local file from the content in database.

If I try to create the datastore with the REST API, the datastore is created without errors. I can see the datastore on the UI in the datastore list.

If I try to create a layer for this datastore from the UI:

  • The layers defined in the datastore are listed correctly
  • When I select a layer, I got an error message:
    Caused by: java.lang.NullPointerException: Cannot invoke "java.io.File.exists()" because "f" is null at org.geoserver.data.gen.DSFinderRepository.getURLForLocation(DSFinderRepository.java:46) at org.geotools.data.gen.DSFinderRepository.getMapFromPropetryLocation(DSFinderRepository.java:81) at org.geotools.data.gen.DSFinderRepository.dataStore(DSFinderRepository.java:114) at org.geoserver.data.gen.DSFinderRepository.dataStore(DSFinderRepository.java:69) at org.geotools.data.gen.PreGeneralizedFeatureSource.getBaseFeatureSource(PreGeneralizedFeatureSource.java:113) at org.geotools.data.gen.PreGeneralizedFeatureSource.getSchema(PreGeneralizedFeatureSource.java:357) at org.geotools.data.gen.PreGeneralizedFeatureSource.getSchema(PreGeneralizedFeatureSource.java:67) at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:341) at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:324) at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:421)

If I don't prefix the XML file with "file:", I manage to create the datastore without errors : I close the ticket.