[Geoserver-devel] [JIRA] (GEOS-10952) Pregeneralized feature type using non shapefile datastore not working with JDBC config+resource store

Alexandre Gacon created an issue

GeoServer / BugGEOS-10952

Pregeneralized feature type using non shapefile datastore not working with JDBC config+resource store

Issue Type:

BugBug

Affects Versions:

2.23.0

Assignee:

Alexandre Gacon

Components:

Features pregeneralized

Created:

23/Apr/23 1:31 PM

Environment:

GeoServer with JDBC config store, JDBC resource store, Pregeneralized Features DataStore extensions

The Pregen Datastore references non file based datastore (for example tables in database)

Priority:

MediumMedium

Reporter:

Alexandre Gacon

On an environment matching the one described, when you try to publish a layer from a Pregen Datastore referencing DB tables, the creation fails with the following stack:

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:342) at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:325) at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:421) ... 119 more

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#100223-sha1:bddbaa2)

Atlassian logo