I trying to solve a issue from replaced data dir on GeoServer. When I choose a WMTS / TMS services in GeoServer's 2.16 GUI I see this:
and 400:null too for TMS: <ows:ExceptionText>No such operation gwc null service</ows:ExceptionText>
In the log an error begins from this:
ERROR [geowebcache.GeoWebCacheDispatcher] - Request failed
java.lang.NullPointerException
at org.geoserver.gwc.layer.StyleParameterFilter.setLayer(StyleParameterFilter.java:188)
at org.geoserver.gwc.layer.TileLayerInfoUtil.checkAutomaticStyles(TileLayerInfoUtil.java:162)
at org.geoserver.gwc.layer.TileLayerInfoUtil.checkAutomaticStyles(TileLayerInfoUtil.java:140)
at org.geoserver.gwc.layer.GeoServerTileLayer.getPublishedInfo(GeoServerTileLayer.java:358)
at org.geoserver.gwc.layer.GeoServerTileLayer.isEnabled(GeoServerTileLayer.java:280)
...
I tried to catch broken layers or styles after Tomcat's restart, but all looks ok, except this rows:
2019-10-01 12:27:16,107 INFO [storage.DefaultStorageFinder] - *** Reverting to java.io.tmpdir null for storage. Please set GEOWEBCACHE_CACHE_DIR. ***
2019-10-01 12:27:15,963 WARN [config.XMLConfiguration] - *** GWC configuration validation error: cvc-elt.1: Cannot find the declaration of element 'gwcConfiguration'.
2019-10-01 12:27:15,963 WARN [config.XMLConfiguration] - *** Will try to use configuration anyway. Please check the order of declared elements against the schema.
How can I fix it all and make wmts/tms gwc work? I have to do something with unobtained style/layer or something more using 2 last WARNs ?