For what it’s worth: I noticed the same behavior in geoserver 2.4.0
Is there some kind of workaround? Or is not tying the style to the workspace
the best option you have?
Van: Shane StClair [mailto:sh...@axiomalaska.com]
Verzonden: dinsdag 8 april 2014 20:33
Aan: geoserver-users@lists.sourceforge.net; Gabriel Roldan
CC: markv...@co.lyon.mn.us
Onderwerp: Re: [Geoserver-users] Issue with GeoWebCache when GeoServer style is
tied to a workspace. GS 2.5B
I just ran into this myself, and can confirm the behavior. GWC presumably uses
the global WMS endpoint to generate tiles. Since workspace styles aren't
visibly in the global endpoints, rendering fails due to not finding the
workspace style.
GWC throws the following:
08 Apr 11:18:11 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.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.IllegalStateException: Expected: RenderedImageMap, got null
at
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:575)
at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:517)
... 9 more
and previously in the logs, the underlying GetMap exception:
08 Apr 11:18:11 ERROR [geoserver.ows] -
org.geoserver.platform.ServiceException: No such style: the_style
at
org.geoserver.wms.map.GetMapKvpRequestReader.parseStyles(GetMapKvpRequestReader.java:1386)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:318)
at
org.geoserver.wms.map.GetMapKvpRequestReader.read(GetMapKvpRequestReader.java:80)
at org.geoserver.ows.Dispatcher.parseRequestKVP(Dispatcher.java:1412)
at org.geoserver.ows.Dispatcher.dispatch(Dispatcher.java:622)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:263)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.geoserver.gwc.GWC.dispatchOwsRequest(GWC.java:1162)
at
org.geoserver.gwc.layer.GeoServerTileLayer.dispatchGetMap(GeoServerTileLayer.java:572)
at
org.geoserver.gwc.layer.GeoServerTileLayer.getMetatilingReponse(GeoServerTileLayer.java:517)
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.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)
GeoServer specs:
Bug submitted to GWC GitHub repo here:
https://github.com/GeoWebCache/geowebcache/issues/232
Thanks,
Shane
On Mon, Feb 10, 2014 at 7:59 AM, Rahkonen Jukka (Tike)
<jukka.rahko...@mmmtike.fi<mailto:jukka.rahko...@mmmtike.fi>> wrote:
Hi,
Perhaps it is the same issue as here
http://thread.gmane.org/gmane.comp.gis.geoserver.devel/24109
Try if your landrecords namespace endpoint works with the namespace tied style.
-Jukka Rahkonen-
Mark Volz wrote:
> Hello,
>
> I may have run into a possible bug in GS 2.5. Could someone confirm this for
> me. Here is what I noticed:
>
> I created a style named parcelstyle and added it to my landrecords workspace.
> Next, I created a parcel layer in the landrecords workspace, and added the
> parcelstyle style to the layer as the default. The GeoServer demo worked
> fine.
> The GeoWebCache demo did not. GWC complained it could not communicate
> with GeoServer. I removed the parcelstyle style from my layer and replaced it
> with the generic polygon style. The polygon style worked in both GeoServer
> and
> GeoWebCache. After some testing I added parcelstyle back to GeoServer, I did
> not tie the style to a workspace. When parcelstyle was not attached to a
> workspace both the GeoServer and GeoWebCache demos worked fine.
>
> Resolution / Possible bug:
> GeoServer may not create tiles for GeoWebCache when the reference style is
> tied to a workspace.
>
> Environment:
> Layer: The parcel layer is from a shapefile.
> OS: Windows
> Java: 7
>
> Thanks
>
>
> Mark Volz, GISP
> GIS Specialist
>
>
> ------------------------------------------------------------------------------
> Managing the Performance of Cloud-Based Applications Take advantage of
> what the Cloud has to offer - Avoid Common Pitfalls.
> Read the Whitepaper.
> http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktr
> k
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Shane StClair
Software Engineer
Axiom Consulting & Design
http://www.axiomalaska.com
________________________________
Volg Aquafin op Facebook<https://www.facebook.com/AquafinNV> |
Twitter<https://twitter.com/aquafinnv> |
YouTube<http://www.youtube.com/channel/UCk_4P5BJ-MtEEDCkCsR_KqQ?feature=mhee> |
LinkedIN<http://www.linkedin.com/company/aquafin/products>
Disclaimer: zie www.aquafin.be<http://www.aquafin.be> P Denk aan het milieu.
Druk deze mail niet onnodig af.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users