>
> Can you request tiles from the source directly?
>
Yes. I can use the Tile in the Source Geoserver in Openlayers however not
in QGIS.
When I tried the WMTS from source in QGIS I can getCapabilities succesfully
but the layer is not loaded in the Map Canvas.
Next check if the requests being made work in the browser.
Yes the request works in the broiwser but retuns the black image still
Kind regards,
Steve Omondi
On Tue, Mar 27, 2018 at 10:16 PM, Ian Turton <[email protected]> wrote:
> Can you request tiles from the source directly? Next check if the requests
> being made work in the browser.
>
> Ian
>
> On Tue, 27 Mar 2018, 14:46 Steve Omondi, <[email protected]>
> wrote:
>
>> Hi guys,
>>
>> Does anyone have experience with Cascading secured WMTS Services in
>> Geoserver?
>>
>> I can seem to get it to work. WMS cascading work perfectly, but I want to
>> cascade WMTS instead.
>>
>> I'm using Authkey for Authentication in the Origin Geoserver (i.e. WMTS
>> Source Geoserver).
>> When I preview in the Cascaded Layer as WMS I get this
>>
>>
>> *Here are the Logs*
>> 2018-03-27 16:30:29,018 DEBUG [wms.map] - Writing png image ...
>> 2018-03-27 16:30:29,022 DEBUG [config.impl] - Could not locate service of
>> type interface org.geoserver.wms.WMSInfo in workspace
>> WorkspaceInfoImpl[test], available services were [WMTSInfoImpl[WMTS],
>> WMSInfoImpl[WMS], WFSInfoImpl[WFS], WCSInfoImpl[WCS]]
>> 2018-03-27 16:30:29,022 DEBUG [geotools.styling] - number of fts set 1
>> 2018-03-27 16:30:29,508 DEBUG [wms.map] - Writing png image ... done!
>> 2018-03-27 16:30:29,508 DEBUG [geoserver.filters] - Not compressing
>> output for mimetype: image/png
>> 2018-03-27 16:30:29,508 DEBUG [resources.image] - Failed to clear
>> rendered image adapters field to null. Not a problem per se, but if the
>> finalizer thread is not fast enough, this might result in a OOM
>> java.lang.NoSuchFieldException: theImage
>> at java.lang.Class.getDeclaredField(Class.java:2070)
>> at org.geotools.resources.image.ImageUtilities.cleanField(
>> ImageUtilities.java:1314)
>> at org.geotools.resources.image.ImageUtilities.
>> disposeSinglePlanarImage(ImageUtilities.java:1292)
>> at org.geotools.resources.image.ImageUtilities.
>> disposePlanarImageChain(ImageUtilities.java:814)
>> at org.geotools.resources.image.ImageUtilities.
>> disposePlanarImageChain(ImageUtilities.java:822)
>> at org.geotools.resources.image.ImageUtilities.
>> disposePlanarImageChain(ImageUtilities.java:822)
>> at org.geotools.resources.image.ImageUtilities.
>> disposePlanarImageChain(ImageUtilities.java:798)
>> at org.geoserver.wms.RasterCleaner.disposeImage(
>> RasterCleaner.java:88)
>> at org.geoserver.wms.RasterCleaner.disposeImages(
>> RasterCleaner.java:79)
>> at org.geoserver.wms.RasterCleaner.finished(
>> RasterCleaner.java:65)
>> at org.geoserver.ows.Dispatcher.fireFinishedCallback(
>> Dispatcher.java:306)
>> at org.geoserver.ows.Dispatcher.handleRequestInternal(
>> Dispatcher.java:282)
>> at org.springframework.web.servlet.mvc.AbstractController.
>> handleRequest(AbstractController.java:174)
>>
>> *The Source Geoserver Logs look like this*
>>
>> 2018-03-27 16:30:29,003 DEBUG
>> [security.IncludeQueryStringAntPathRequestMatcher]
>> - Matched Path: /gwc/service/wmts, QueryString: authkey=e18d97d7-b43e-4fd2-
>> 85c4-da9d0045542e?request=getTile&tilematrixset=EPSG%
>> 3A3857&TileRow=2063&service=WMTS&format=image%2Fpng&style=
>> &TileCol=2467&version=1.0.0&layer=aerial%3AAERIAL_2015&TileMatrix=EPSG%3A3857%3A12&
>> with /**
>> 2018-03-27 16:30:29,003 DEBUG [geoserver.filters] - Creating a new http
>> session inside the web UI (normal behavior)
>> java.lang.Exception: Full stack trace for the session creation path
>> at org.geoserver.filters.SessionDebugFilter$SessionDebugWrapper.
>> getSession(SessionDebugFilter.java:92)
>> at org.geoserver.filters.SessionDebugFilter$SessionDebugWrapper.
>> getSession(SessionDebugFilter.java:70)
>> at javax.servlet.http.HttpServletRequestWrapper.getSession(
>> HttpServletRequestWrapper.java:240)
>> at org.geoserver.security.filter.GeoServerSecurityContextPersis
>> tenceFilter$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:50)
>> at org.geoserver.security.filter.GeoServerCompositeFilter$
>> NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
>> at org.geoserver.security.filter.GeoServerCompositeFilter.
>> doFilter(GeoServerCompositeFilter.java:92)
>> at org.springframework.security.web.FilterChainProxy$
>> VirtualFilterChain.doFilter(FilterChainProxy.java:330)
>> at
>>
>> Anyone has an idea how I can go about this?
>>
>> Kind regards,
>> Steve Omondi
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot______
>> _________________________________________
>> Geoserver-users mailing list
>>
>> Please make sure you read the following two resources before posting to
>> this list:
>> - Earning your support instead of buying it, but Ian Turton:
>> http://www.ianturton.com/talks/foss4g.html#/
>> - The GeoServer user list posting guidelines: http://geoserver.org/comm/
>> userlist-guidelines.html
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-
>> requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this
list:
- Earning your support instead of buying it, but Ian Turton:
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines:
http://geoserver.org/comm/userlist-guidelines.html
If you want to request a feature or an improvement, also see this:
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users