Hi, just as a short feedback: in my case, the problem went away after i deleted the whole directory for the layer in question from the GEOWEBCACHE_CACHE_DIR.
Regards, Johannes Am 07.04.2015 um 17:31 schrieb Ivan Price: > Hello there > > we also have had some problems upgrading a geoserver instance from 2.2 to 2.7 > > we copied the data dir from one to the other and everything worked except for > the cached layers… they gave the error below: Current styles of layer not > available > > we saw that manually going to the layer in the web admin and clicking save > fixed it.. and then looking in the (gwc) layer file in the config we see that > a new section has been added: > > <parameterFilters> > <styleParameterFilter> > <key>STYLES</key> > <defaultValue></defaultValue> > <availableStyles class="sorted-set"/> > <defaultStyle>raster</defaultStyle> > </styleParameterFilter> > </parameterFilters> > > we then wrote a little python script to GET the layer xml to a file, then > POST the same XML back, which appears to have simulated cliking save on each > layer and it is mostly working now.. except for a different GWC bug which I > will now write a different email for. > > so get the list of layers using: > curl -u admin:xxxx "http:// localhost:8080/geoserver/gwc/rest/layers/" > # write XM to a file > curl -u admin: xxxx > "http://localhost:8080/geoserver/gwc/rest/layers/workspace:layer.xml" > > xml.xml > # post xml back to simulate save > curl -u admin: xxxx -XPOST -H "Content-type: text/xml" -d @xml.xml > "http://localhost:8080/geoserver/gwc/rest/layers/workspace:layer.xml " > > maybe this helps someone > > -i > > > > De : Kevin Smith [mailto:[email protected]] > Envoyé : mercredi 1 avril 2015 20:38 > À : Andrea Aime > Cc : Johannes Engel; GeoServer Mailing List List > Objet : Re: [Geoserver-users] GWC 400: Current styles of layer not available > > Sorry about taking so long to respond. I'd hoped to find some time to look > into it in a bit of depth but I've been rather busy. I can't think of > anything in particular that would cause this beyond, as Andrea said, the > setLayer method not being called or the state of the filter being cleared > after having been set. Figuring out why that's happening (or not happening) > would require replicating it and doing some debugging. > > On 26 March 2015 at 09:36, Andrea Aime > <[email protected]<mailto:[email protected]>> wrote: > On Thu, Mar 26, 2015 at 4:15 PM, Johannes Engel > <[email protected]<mailto:[email protected]>> wrote: > Hi, > > after upgrade to GeoServer 2.7.0 (running under Tomcat > 6.0.41-2+squeeze6, Oracle Java 1.7.0.76, Linux Debian 64bit) I have > problems with a layer that used to work with 2.6.2. > > The layer is accessed using the global /gwc/service/gmaps Service. > Example: > http://<server>/geoserver/gwc/service/gmaps?layers=naturpark:v_np_border&zoom=9&x=267&y=178&format=image/png8 > > Shortly after a restart of Tomcat everything is working as expected. > After some time (30min) a status 400-Page (text/html) is returned: >> GeoWebCache >> 400: Current styles of layer not available. > > The error persists until the next server restart. > > This is what is in the log for a failed request (DEBUG Logging): >> 2015-03-26 14:40:21,917 DEBUG [ows.OWSHandlerMapping] - Matching patterns >> for request [/gwc/service/gmaps] are [/gwc/service/**] >> 2015-03-26 14:40:21,917 DEBUG [ows.OWSHandlerMapping] - URI Template >> variables for request [/gwc/service/gmaps] are {} >> 2015-03-26 14:40:21,918 DEBUG [ows.OWSHandlerMapping] - Mapping >> [/gwc/service/gmaps] to HandlerExecutionChain with handler >> [org.geoserver.ows.Dispatcher@330860c5] and 1 interceptor >> 2015-03-26 14:40:21,928 ERROR [geowebcache.GeoWebCacheDispatcher] - Current >> styles of layer not available. http://<server>/geoserver/gwc/service/gmaps >> 2015-03-26 14:40:21,928 DEBUG [geowebcache.GeoWebCacheDispatcher] - Current >> styles of layer not available. > > This is actually an exception throw by the StyleParameterFilter class, it > seems the setLayer method > never got called... but I don't know why. Kevin, do you have any clue? > > Cheers > Andrea > > -- > == > GeoServer Professional Services from the experts! Visit > http://goo.gl/NWWaa2 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<tel:%2B39%200584%20962313> > fax: +39 0584 1660272<tel:%2B39%200584%201660272> > mob: +39 339 8844549<tel:%2B39%20%C2%A0339%208844549> > > 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. > > ------------------------------------------------------- > > > > -- > > Kevin Smith > > Software Engineer | Boundless<http://boundlessgeo.com/> > > [email protected]<mailto:[email protected]> > > +1-778-785-7459 > > @boundlessgeo<http://twitter.com/boundlessgeo/> > > > <http://twitter.com/boundlessgeo/> > > [Image supprimée par l'expéditeur. http://boundlessgeo.com/] > <http://boundlessgeo.com/> > > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
