Jose Macchi ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9ea9dee7-f96a-4937-b53b-bc7253b992dd
 ) *created* an issue

GeoServer ( 
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 ) / Bug ( 
https://osgeo-org.atlassian.net/browse/GEOS-9785?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 ) GEOS-9785 ( 
https://osgeo-org.atlassian.net/browse/GEOS-9785?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 ) Invalid argument type=null when trying to use gs:Download WPS identifier ( 
https://osgeo-org.atlassian.net/browse/GEOS-9785?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 )

Issue Type: Bug Affects Versions: 2.18.0 Assignee: Unassigned Components: WPS 
Created: 05/Nov/20 4:22 AM Priority: Low Reporter: Jose Macchi ( 
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A9ea9dee7-f96a-4937-b53b-bc7253b992dd
 )

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 ( 
https://github.com/geoserver/geoserver/blob/9dec8fa23e86893aba71a25e448803f80c7b580e/src/community/wps-download/src/main/java/org/geoserver/wps/gs/download/RasterEstimator.java#L220
 ) 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)

( 
https://osgeo-org.atlassian.net/browse/GEOS-9785#add-comment?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 ) Add Comment ( 
https://osgeo-org.atlassian.net/browse/GEOS-9785#add-comment?atlOrigin=eyJpIjoiZDYyNGQyNzgzMmQ5NGJjOWIwYWZmM2QwODdlMDc1MTgiLCJwIjoiaiJ9
 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( 
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
 ) or iOS ( 
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100149- 
sha1:4f621fb )
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to