I was hoping that I was just doing something silly that could be easily
corrected. If nothing turns up then I guess digging into code is the
next step.
Meantime attached are files containing the failing XML, the stacktrace,
and the command + output.
Thanks,
Bryan
On 10/21/16 1:33 PM, Andrea Aime wrote:
Hi Bryan,
the GeoServer geopackage module is currently unsupported, so the best
answer to your question likely lies in fixing the code.
That said, share a request that _does not_ work, and the GeoServer
logs of the failure (from its log file, the full stack trace),
that might give us some clue as to what might be happening.
Cheers
Andrea
On Fri, Oct 21, 2016 at 6:21 PM, Bryan Moore <[email protected]
<mailto:[email protected]>> wrote:
I can successfully generate a GeoPackage file from the
"nurc:Arc_Sample" layer included with GeoServer but the other
raster layers (nurc:Pk50095, nurc:mosaic, nurc:Img_Sample,
sf:sfdem) fail.
Environment:
GeoServer v. 2.9.1, With WPS and GeoPackage extensions installed.
(geoserver-2.9-SNAPSHOT-geopkg-plugin.zip,
geoserver-2.9.1-wps-plugin.zip)
The attached xml file can be used successfully to ask GeoServer to
create a GeoPackage file. It requests the “nurc:Arc_Sample” raster.
Executing:
curl -u admin:geoserver -H 'Content-type: xml' -XPOST
-d@'workingGeoPackageRequest.xml'
http://localhost:8080/geoserver/wps
<http://localhost:8080/geoserver/wps>
Returns:
http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg
<http://localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionResult&executionId=56ebf82e-d111-4e3f-a287-ed5870fc2487&outputId=mygeopackage.gpkg>
Testing:
Put the above URL into browser and download the GeoPackage file.
Create a new Store -> GeoPackage(mosaic) using the downloaded file.
Publish the layer
Preview the layer.
This works great with the nurc:Arc_Sample layer but fails with
nurc:Pk50095, nurc:mosaic, nurc:Img_Sample, sf:sfdem or any of my
own GeoTiff layers.
nurc:mosaic and sf:sfdem return: exceptionCode="NoApplicableCode"
Process failed during execution java.lang.NullPointerException
nurc:Pk50095 and nurc_Img_Sample return Error rendering coverage
on the fast path java.lang.IllegalArgumentException: Band number
3 is not valid.
Any idea what is going wrong or can anyone create an xml file that
will successfully get the GeoPackage file for any of the other
raster layers.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
<https://lists.sourceforge.net/lists/listinfo/geoserver-devel>
--
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via di Montramito 3/A
55054 Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
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.
-------------------------------------------------------
21 Oct 13:39:13 INFO [geoserver.wps] -
Request: getServiceInfo
21 Oct 13:39:13 INFO [geoserver.wms] -
Request: getMap
Buffer = 0
Format = image/png
Width = 256
Height = 256
Time = []
FormatOptions = {format=image/png}
Bbox = Env[-180.0 : 0.0, -90.0 : 90.0]
Crs = GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Filter = null
Filters = null
RemoteOwsType = null
RemoteOwsURL = null
Env = {}
Angle = 0.0
CQLFilter = null
Elevation = []
FeatureId = null
StartIndex = null
ViewParams = null
BgColor = java.awt.Color[r=255,g=255,b=255]
Transparent = false
SldBody = null
Sld = null
Palette = null
Tiled = false
FeatureVersion = null
SRS = EPSG:4326
Styles = [StyleImpl[ name=dem]]
Layers = [org.geoserver.wms.MapLayerInfo@4cfda136]
MaxFeatures = null
StyleFormat = sld
ValidateSchema = false
StyleUrl = null
Interpolations = []
TilesOrigin = null
Version = null
BaseUrl = null
Request = GetMap
RawKvp = null
Get = false
RequestCharset = null
21 Oct 13:39:13 INFO [geoserver.wms] -
Request: getMap
Buffer = 0
Format = image/png
Width = 256
Height = 256
Time = []
FormatOptions = {format=image/png}
Bbox = Env[0.0 : 180.0, -90.0 : 90.0]
Crs = GEOGCS["WGS 84",
DATUM["World Geodetic System 1984",
SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]],
AUTHORITY["EPSG","6326"]],
PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]],
UNIT["degree", 0.017453292519943295],
AXIS["Geodetic longitude", EAST],
AXIS["Geodetic latitude", NORTH],
AUTHORITY["EPSG","4326"]]
Exceptions = SE_XML
StyleBody = null
SldVersion = null
StyleVersion = null
ScaleMethod = null
Filter = null
Filters = null
RemoteOwsType = null
RemoteOwsURL = null
Env = {}
Angle = 0.0
CQLFilter = null
Elevation = []
FeatureId = null
StartIndex = null
ViewParams = null
BgColor = java.awt.Color[r=255,g=255,b=255]
Transparent = false
SldBody = null
Sld = null
Palette = null
Tiled = false
FeatureVersion = null
SRS = EPSG:4326
Styles = [StyleImpl[ name=dem]]
Layers = [org.geoserver.wms.MapLayerInfo@4cfda136]
MaxFeatures = null
StyleFormat = sld
ValidateSchema = false
StyleUrl = null
Interpolations = []
TilesOrigin = null
Version = null
BaseUrl = null
Request = GetMap
RawKvp = null
Get = false
RequestCharset = null
Oct 21, 2016 1:39:13 PM org.geoserver.GeoserverInitStartupListener$1
errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.IllegalArgumentException: Sourc and Destination image must have the
same Bands
at
it.geosolutions.jaiext.piecewise.GenericPiecewiseOpImage.computeRect(GenericPiecewiseOpImage.java:249)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:969)
at
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at javax.media.jai.NullOpImage.computeTile(NullOpImage.java:162)
at
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2343)
at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2398)
at javax.media.jai.PlanarImage.getExtendedData(PlanarImage.java:2459)
at
com.sun.media.jai.opimage.MosaicOpImage.computeTile(MosaicOpImage.java:432)
at
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2085)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
at
it.geosolutions.imageio.plugins.png.ScanlineProviderFactory.getProvider(ScanlineProviderFactory.java:53)
at
it.geosolutions.imageio.plugins.png.PNGWriter.isScanlineSupported(PNGWriter.java:111)
at org.geoserver.wms.map.png.PNGJWriter.writePNG(PNGJWriter.java:42)
at
org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:104)
at
org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:123)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.toBytes(AbstractTilesGetMapOutputFormat.java:496)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.addTiles(AbstractTilesGetMapOutputFormat.java:278)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.addTiles(AbstractTilesGetMapOutputFormat.java:185)
at
org.geoserver.geopkg.GeoPackageGetMapOutputFormat.addTiles(GeoPackageGetMapOutputFormat.java:153)
at
org.geoserver.geopkg.wps.GeoPackageProcess.execute(GeoPackageProcess.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:549)
at
org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Oct 21, 2016 1:39:13 PM org.geoserver.GeoserverInitStartupListener$1
errorOccurred
INFO: Problem occurs when computing a tile by the owner.
java.lang.NullPointerException
at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2344)
at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2398)
at javax.media.jai.PlanarImage.getExtendedData(PlanarImage.java:2459)
at
com.sun.media.jai.opimage.MosaicOpImage.computeTile(MosaicOpImage.java:432)
at
com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
at javax.media.jai.OpImage.getTile(OpImage.java:1129)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2085)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2016)
at javax.media.jai.RenderedOp.getData(RenderedOp.java:2266)
at
it.geosolutions.imageio.plugins.png.ScanlineProviderFactory.getProvider(ScanlineProviderFactory.java:53)
at
it.geosolutions.imageio.plugins.png.PNGWriter.isScanlineSupported(PNGWriter.java:111)
at org.geoserver.wms.map.png.PNGJWriter.writePNG(PNGJWriter.java:42)
at
org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:104)
at
org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:123)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.toBytes(AbstractTilesGetMapOutputFormat.java:496)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.addTiles(AbstractTilesGetMapOutputFormat.java:278)
at
org.geoserver.tiles.AbstractTilesGetMapOutputFormat.addTiles(AbstractTilesGetMapOutputFormat.java:185)
at
org.geoserver.geopkg.GeoPackageGetMapOutputFormat.addTiles(GeoPackageGetMapOutputFormat.java:153)
at
org.geoserver.geopkg.wps.GeoPackageProcess.execute(GeoPackageProcess.java:349)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:549)
at
org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
21 Oct 13:39:13 ERROR [wps.executor] - Process execution failed
org.geotools.process.ProcessException: java.lang.NullPointerException
at
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:565)
at
org.geoserver.wps.executor.ProcessStartupFilter$ProcessStartupWrapper.execute(ProcessStartupFilter.java:51)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:201)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:169)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
21 Oct 13:39:13 INFO [geoserver.wps] -
Request: execute
service = WPS
version = 1.0.0
baseUrl = http://localhost:8080/geoserver/
identifier:
value = gs:GeoPackage
dataInputs:
input[0]:
identifier = net.opengis.ows11.impl.CodeTypeImpl@3e7ee661 (value:
contents, codeSpace: null)
data = net.opengis.wps10.impl.DataTypeImpl@107219a7
responseForm:
rawDataOutput:
identifier = net.opengis.ows11.impl.CodeTypeImpl@4cf6bd5a (value:
geopackage, codeSpace: null)
curl -u admin:geoserver -H 'Content-type: xml' -XPOST -d@'test.xml'
http://localhost:8080/geoserver/wps
<?xml version="1.0" encoding="UTF-8"?><wps:ExecuteResponse
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:wps="http://www.opengis.net/wps/1.0.0"
xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" service="WPS"
serviceInstance="http://localhost:8080/geoserver/ows?"
version="1.0.0"><wps:Process
wps:processVersion="1.0.0"><ows:Identifier>gs:GeoPackage</ows:Identifier><ows:Title>GeoPackage</ows:Title><ows:Abstract>Geopackage
Process</ows:Abstract></wps:Process><wps:Status
creationTime="2016-10-21T17:39:13.328Z"><wps:ProcessFailed><ows:ExceptionReport
version="1.1.0"><ows:Exception
exceptionCode="NoApplicableCode"><ows:ExceptionText>Process failed during
execution
java.lang.NullPointerException</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse>Bryans-MBP:~
bryanmoore$
<?xml version="1.0" encoding="UTF-8"?><wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd">
<ows:Identifier>gs:GeoPackage</ows:Identifier>
<wps:DataInputs>
<wps:Input>
<ows:Identifier>contents</ows:Identifier>
<wps:Data>
<wps:ComplexData mimeType="text/xml; subtype=geoserver/geopackage"><![CDATA[<geopackage name="mygeopackage" xmlns="http://www.opengis.net/gpkg">
<tiles name="mytileslayer" identifier="L02">
<description>Image Mosaic</description>
<srs>EPSG:4326</srs>
<bbox>
<minx>-180</minx>
<miny>-90</miny>
<maxx>180</maxx>
<maxy>90</maxy>
</bbox>
<layers>nurc:mosaic</layers>
<styles>dem</styles>
<format>image/png</format>
</tiles>
</geopackage>]]></wps:ComplexData>
</wps:Data>
</wps:Input>
</wps:DataInputs>
<wps:ResponseForm>
<wps:RawDataOutput>
<ows:Identifier>geopackage</ows:Identifier>
</wps:RawDataOutput>
</wps:ResponseForm>
</wps:Execute>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel