[Geoserver-devel] [JIRA] (GEOS-9370) NPE with multidimensional GRIB2 file with time and custom dimension

Torben Barsballe created an issue

GeoServer / ImprovementGEOS-9370

NPE with multidimensional GRIB2 file with time and custom dimension

Issue Type:

ImprovementImprovement

Assignee:

Unassigned

Components:

Grib, NetCDF

Created:

18/Oct/19 12:28 AM

Priority:

MediumMedium

Reporter:

Torben Barsballe

When loading GRIB2 files downloaded from the National Hurricane Center forcast data ( https://ftp.nhc.ncep.noaa.gov/wsp/ ), I get a NPE from within the NetCDF parser:

Caused by: java.lang.NullPointerException
    at org.geotools.coverage.io.netcdf.NetCDFResponse.loadRaster(NetCDFResponse.java:772)
    at org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:299)
    at org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:145)
    at org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)
    at org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:506)
    at org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:146)
    at org.geoserver.catalog.CatalogBuilder.getCoverageSampleDimensions(CatalogBuilder.java:1154)
    at org.geoserver.catalog.CatalogBuilder.buildCoverageInternal(CatalogBuilder.java:1030)
    at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:951)
    at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:900)
    at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:410)
    ... 122 more

This most often happens when first loading the layer into GeoServer, but I’ve also encountered it when trying to view any time dimension other then the first.

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#100113-sha1:b2b9d89)

Atlassian logo