[Geoserver-users] Troubleshooting NETCDF Z index load errors

I am attempting to expose a layer (height) from this netcdf file : http://54.183.9.182/wrf.nc that has a Z index as well as a time dimension. I am able to load and view this layer in the netcdf tools UI grid viewer, but when I attempt to expose it in GeoServer, I get an exception. Any advice on resolving this would be greatly appreciated. Thanks in advance.

The stack trace is :

Caused by: java.io.IOException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:442)

at org.geotools.imageio.GeoSpatialImageReader.getImageIndex(GeoSpatialImageReader.java:151)

at org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:252)

at org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:146)

at org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)

at org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:486)

at org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:143)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:974)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)

at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)

… 98 more

Caused by: java.lang.NullPointerException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:433)

Steve Ferguson

Hi Steve,
do you have any chance to open a JIRA and attach the sample (or a reference if that source isn’t temporary) to the JIRA?
I did a quick check of your sample data and I think I have found the issue.
I would like to investigate and solve it in the next days.

Best Regards,
Daniele

···

On Fri, Nov 6, 2015 at 8:50 PM, Ferguson, Steve -FS <sferguson@anonymised.com…> wrote:

I am attempting to expose a layer (height) from this netcdf file : http://54.183.9.182/wrf.nc that has a Z index as well as a time dimension. I am able to load and view this layer in the netcdf tools UI grid viewer, but when I attempt to expose it in GeoServer, I get an exception. Any advice on resolving this would be greatly appreciated. Thanks in advance.

The stack trace is :

Caused by: java.io.IOException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:442)

at org.geotools.imageio.GeoSpatialImageReader.getImageIndex(GeoSpatialImageReader.java:151)

at org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:252)

at org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:146)

at org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)

at org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:486)

at org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:143)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:974)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)

at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)

… 98 more

Caused by: java.lang.NullPointerException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:433)

Steve Ferguson



Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.

I’ve created Jira issue GEOS-7307. Thanks for your help!

···

Hi Steve,

do you have any chance to open a JIRA and attach the sample (or a reference if that source isn’t temporary) to the JIRA?

I did a quick check of your sample data and I think I have found the issue.

I would like to investigate and solve it in the next days.

Best Regards,

Daniele

On Fri, Nov 6, 2015 at 8:50 PM, Ferguson, Steve -FS <sferguson@…102…> wrote:

I am attempting to expose a layer (height) from this netcdf file : http://54.183.9.182/wrf.nc that has a Z index as well as a time dimension. I am able to load and view this layer in the netcdf tools UI grid viewer, but when I attempt to expose it in GeoServer, I get an exception. Any advice on resolving this would be greatly appreciated. Thanks in advance.

The stack trace is :

Caused by: java.io.IOException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:442)

at org.geotools.imageio.GeoSpatialImageReader.getImageIndex(GeoSpatialImageReader.java:151)

at org.geotools.coverage.io.netcdf.NetCDFResponse.processRequest(NetCDFResponse.java:252)

at org.geotools.coverage.io.netcdf.NetCDFResponse.createResponse(NetCDFResponse.java:146)

at org.geotools.coverage.io.netcdf.NetCDFSource.read(NetCDFSource.java:65)

at org.geotools.coverage.io.netcdf.NetCDFReader.read(NetCDFReader.java:486)

at org.geoserver.catalog.SingleGridCoverage2DReader.read(SingleGridCoverage2DReader.java:143)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:974)

at org.geoserver.catalog.CatalogBuilder.buildCoverage(CatalogBuilder.java:855)

at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:346)

… 98 more

Caused by: java.lang.NullPointerException

at org.geotools.coverage.io.catalog.CoverageSlicesCatalog.getGranules(CoverageSlicesCatalog.java:433)

Steve Ferguson



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy’s New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.