[Geoserver-devel] [JIRA] (GEOS-9785) Invalid argument type=null when trying to use gs:Download WPS identifier

Jose Macchi created an issue

GeoServer / BugGEOS-9785

Invalid argument type=null when trying to use gs:Download WPS identifier

Issue Type:

BugBug

Affects Versions:

2.18.0

Assignee:

Unassigned

Components:

WPS

Created:

05/Nov/20 4:22 AM

Priority:

LowLow

Reporter:

Jose Macchi

When trying to run WPS-Download community module example mentioned at this link
https://docs.geoserver.org/stable/en/user/community/wps-download/rawDownload.html#sample-request

got following error:

04 nov. 23:53:57 ERROR [wps.executor] - Process execution failed
org.geotools.process.ProcessException: java.lang.IllegalArgumentException: Argumento invalido: “type=null”.
at org.geoserver.wps.gs.download.DownloadProcess.execute(DownloadProcess.java:472)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:621)
at org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:50)
at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:224)
at org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:1)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.lang.IllegalArgumentException: Argumento invalido: “type=null”.
at org.geotools.coverage.TypeMap.map(TypeMap.java:404)
at org.geotools.coverage.TypeMap.getSize(TypeMap.java:350)
at org.geoserver.wps.gs.download.RasterEstimator.execute(RasterEstimator.java:220)
at org.geoserver.wps.gs.download.DownloadEstimatorProcess.execute(DownloadEstimatorProcess.java:188)
at org.geoserver.wps.gs.download.DownloadProcess.execute(DownloadProcess.java:299)
… 12 more

Based on debug, error is generated in line 220 at this file since coverageDimensionInfoList.get.getDimensionType() value is null, so then getSize() call fails.

Based on testing using default geoserver data_dir, it’s required to update the bands definitions on the raster files referenced by gs:Download, in order to make it work. For some reason, those values are not correct when trying to use the mentioned module (which attempts to calculate size based on that values)

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#100149-sha1:4f621fb)

Atlassian logo