[Geoserver-devel] [JIRA] (GEOS-10956) GeoServer 2.22.x ImageMosaic w/ datastore.properties pointing to PostGIS fails (null crs)

Ashley Mort created an issue

GeoServer / BugGEOS-10956

GeoServer 2.22.x ImageMosaic w/ datastore.properties pointing to PostGIS fails (null crs)

Issue Type:

BugBug

Affects Versions:

2.22.0, 2.22.1, 2.22.2, 2.23.0

Assignee:

Unassigned

Attachments:

datastore.properties, geoserver2.21.4-debug.png, geoserver2.22.2-debug.png, postgisStore.PNG, seedImage.jgw, seedImage.jpg, webError.PNG

Components:

image mosaic

Created:

27/Apr/23 6:23 PM

Environment:

windows 10 or linux (rhel)

Priority:

MediumMedium

Reporter:

Ashley Mort

I am manually creating an ImageMosaic from the GeoServer web interface pointing to a folder containing:
seedImage.jpg
seedImage.jgw
datastore.properties

datastore.properties points to a basic local PostGIS database.

In GeoServer 2.22.0+ my crs will be null and I’ll get an error and can’t proceed.

27 Apr 11:21:00 WARN   [gce.imagemosaic] - Unable to close indexingnull
java.lang.NullPointerException
        at org.geotools.gce.imagemosaic.RasterManager$SpatialDomainManager.prepareCoverageSpatialElements(RasterManager.java:236)
        at org.geotools.gce.imagemosaic.RasterManager$SpatialDomainManager.<init>(RasterManager.java:217)
        at org.geotools.gce.imagemosaic.RasterManager.initialize(RasterManager.java:1581)
        at org.geotools.gce.imagemosaic.RasterManager.initialize(RasterManager.java:1542)
        at org.geotools.gce.imagemosaic.ImageMosaicConfigHandler.indexingPostamble(ImageMosaicConfigHandler.java:1082)
        at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker$MosaicDirectoryWalker.<init>(ImageMosaicDirectoryWalker.java:139)
        at org.geotools.gce.imagemosaic.ImageMosaicDirectoryWalker.run(ImageMosaicDirectoryWalker.java:218)
        at org.geotools.gce.imagemosaic.Utils.createMosaicInternal(Utils.java:576)
        at org.geotools.gce.imagemosaic.Utils.createMosaic(Utils.java:525)
        at org.geotools.gce.imagemosaic.Utils.checkSource(Utils.java:1656)
        at org.geotools.gce.imagemosaic.ImageMosaicReader.initReaderFromURL(ImageMosaicReader.java:264)
        at org.geotools.gce.imagemosaic.ImageMosaicReader.<init>(ImageMosaicReader.java:217)
        at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:563)
        at org.geotools.gce.imagemosaic.ImageMosaicFormat.getReader(ImageMosaicFormat.java:104)
        at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1593)
        at org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.java:1533)
        at org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader(CoverageStoreInfoImpl.java:57)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

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:02266b8)

Atlassian logo