[Geoserver-users] Geoserver GWC issue

Hi All,

I think this may already have been tackled.

I am using the embedded GWC (1.5.1) of Geoserver (2.5) on windows 7 (tomcat 6).

Using just a landsat image (downloaded from USGS) I can create a raster layer easily enough in geoserver. And then in the GWC set up page I specify I only want png and whatever levels of cache.

When I then try and seed the cache, I get a:

‘Problem communicating with GeoServer at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse’

error in the logs.

I added jpeg to the cache type and tried caching with that and it works fine.

I read somewhere that there is an issue with the ‘transparent’ keyword - but I am unsure how to change this (plus I’d quite like that to be on).

Any pointers?

Thanks

Toby

On Thu, May 8, 2014 at 10:27 AM, Tobias Reinicke <ramotswa@anonymised.com> wrote:

Hi All,

I think this may already have been tackled.

I am using the embedded GWC (1.5.1) of Geoserver (2.5) on windows 7
(tomcat 6).

Using just a landsat image (downloaded from USGS) I can create a raster
layer easily enough in geoserver. And then in the GWC set up page I specify
I only want png and whatever levels of cache.

When I then try and seed the cache, I get a:

'Problem communicating with GeoServer at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse'

Could you share the full stack trace form the geoserver logs?

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

-------------------------------------------------------

Yes. Should have done before.
Error here:

2014‒05‒08 10:59:09,360 INFO [geoserver.wms] -
Request: getMap
Time =
Filter = null
Buffer = 0
Format = image/png
Height = 256
Width = 256
SldBody = null
Sld = null
Filters = null
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”]]
RemoteOwsType = null
RemoteOwsURL = null
FormatOptions = {}
StartIndex = null
MaxFeatures = null
ViewParams = null
Exceptions = SE_XML
Bbox = SRSEnvelope[-180.0 : 0.0, -90.0 : 90.0]
Env = {}
Angle = 0.0
CQLFilter = null
Elevation =
FeatureId = null
BgColor = java.awt.Color[r=255,g=255,b=255]
Tiled = false
Palette = null
FeatureVersion = null
Layers = [org.geoserver.wms.MapLayerInfo@anonymised.com]
SRS = EPSG:4326
Styles = [StyleImpl[ name=raster]]
Transparent = true
ValidateSchema = false
SldVersion = null
TilesOrigin = null
Version = 1.1.1
Request = GetMap
Get = true
RequestCharset = UTF-8
RawKvp = {BBOX=-180.0,-90.0,0.0,90.0, SERVICE=WMS, HEIGHT=256, REQUEST=GetMap, STYLES=raster, WIDTH=256, EXCEPTIONS=SE_XML, TRANSPARENT=true, VERSION=1.1.1, FORMAT=image/png, GWC_SEED_INTERCEPT=true, LAYERS=test:LC82040222014126MTI00_B8, SRS=EPSG:4326}
BaseUrl = http://localhost:8080/geoserver/
2014‒05‒08 10:59:09,390 INFO [seed.GWCTask] - Thread group finished SEED task after 0.107 seconds
2014‒05‒08 10:59:09,390 ERROR [seed.MTSeeder] - Problem communicating with GeoServer
org.geowebcache.GeoWebCacheException: Problem communicating with GeoServer
at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:522)
at org.geoserver.gwc.layer.GeoServerTileLayer.seedTile(GeoServerTileLayer.java:711)
at org.geowebcache.seed.SeedTask.doActionInternal(SeedTask.java:136)
at org.geowebcache.seed.GWCTask.doAction(GWCTask.java:76)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:36)
at org.geowebcache.seed.MTSeeder.call(MTSeeder.java:25)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException: [[B cannot be cast to [[S
at com.sun.media.jai.opimage.BandMergeOpImage.shortLoop(BandMergeOpImage.java:346)
at com.sun.media.jai.opimage.BandMergeOpImage.computeRect(BandMergeOpImage.java:204)
at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:914)
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.StatisticsOpImage.getProperty(StatisticsOpImage.java:292)
at com.sun.media.jai.opimage.ExtremaOpImage.getProperty(ExtremaOpImage.java:100)
at javax.media.jai.RenderedOp$1.getProperty(RenderedOp.java:1808)
at javax.media.jai.PropertyEnvironment.getProperty(PropertyEnvironment.java:197)
at javax.media.jai.PropertySourceImpl.getProperty(PropertySourceImpl.java:277)
at javax.media.jai.WritablePropertySourceImpl.getProperty(WritablePropertySourceImpl.java:130)
at javax.media.jai.RenderedOp.getProperty(RenderedOp.java:1982)
at org.geotools.image.ImageWorker.getComputedProperty(ImageWorker.java:789)
at org.geotools.image.ImageWorker.getExtremas(ImageWorker.java:809)
at org.geotools.image.ImageWorker.rescaleToBytes(ImageWorker.java:999)
at org.geoserver.wms.map.RenderedImageMapResponse.applyPalette(RenderedImageMapResponse.java:171)
at org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:104)
at org.geoserver.gwc.layer.GeoServerMetaTile.writeTileToStream(GeoServerMetaTile.java:111)
at org.geowebcache.layer.TileLayer.saveTiles(TileLayer.java:622)
at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:520)
… 10 more

···

On 8 May 2014 10:52, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, May 8, 2014 at 10:27 AM, Tobias Reinicke <ramotswa@anonymised.com> wrote:

Hi All,

I think this may already have been tackled.

I am using the embedded GWC (1.5.1) of Geoserver (2.5) on windows 7 (tomcat 6).

Using just a landsat image (downloaded from USGS) I can create a raster layer easily enough in geoserver. And then in the GWC set up page I specify I only want png and whatever levels of cache.

When I then try and seed the cache, I get a:

‘Problem communicating with GeoServer at org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse’

Could you share the full stack trace form the geoserver logs?

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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


On Thu, May 8, 2014 at 11:54 AM, Tobias Reinicke <ramotswa@anonymised.com> wrote:

Yes. Should have done before.
Error here:
Caused by: java.lang.ClassCastException: [[B cannot be cast to [[S
at
com.sun.media.jai.opimage.BandMergeOpImage.shortLoop(BandMergeOpImage.java:346)

Ah, interesting... there seems to be a mismatch between data types here,
byte and short.
Do you have a link where we can download this landsat image?

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

-------------------------------------------------------

This specific one was downloaded from
https://landsat8portal.eo.esa.int/

but you can get the same from USGS earthexplorer I presume
http://earthexplorer.usgs.gov/

I’ve put it on dropbox too. Let me know if you can get it or not.

https://www.dropbox.com/s/mizttc6bo014u0a/LC82040222014126MTI00_B8.zip

Toby

···

On 8 May 2014 10:56, Andrea Aime <andrea.aime@anonymised.com> wrote:

On Thu, May 8, 2014 at 11:54 AM, Tobias Reinicke <ramotswa@anonymised.com> wrote:

Yes. Should have done before.
Error here:

Caused by: java.lang.ClassCastException: [[B cannot be cast to [[S

at com.sun.media.jai.opimage.BandMergeOpImage.shortLoop(BandMergeOpImage.java:346)

Ah, interesting… there seems to be a mismatch between data types here, byte and short.
Do you have a link where we can download this landsat image?

Cheers

Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

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

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