I am attempting to create a cache for a layer using the GeoServer Cloud REST API and GeoWebCache. Despite following the configuration steps, I am encountering an java.lang.IllegalStateException error related to ambiguous handler methods when trying to seed the cache.
Accessing the endpoint directly in the browser or using the API results in an XML file without any style information, showing only <long-array-array/>.
The logs display the following error:
java.lang.IllegalStateException: Ambiguous handler methods mapped for '/geoserver/gwc/rest/seed/workspace:layer.xml': {public org.springframework.http.ResponseEntity org.geowebcache.rest.controller.SeedController.seedOrTruncateWithXmlPayload(javax.servlet.http.HttpServletRequest,java.io.InputStream,java.lang.String), public org.springframework.http.ResponseEntity org.geowebcache.rest.controller.SeedController.doPost(javax.servlet.http.HttpServletRequest,java.io.InputStream,java.lang.String,java.util.Map)}
The error inside the Terminal after running the curl command:
<Map><timestamp>1722926495200</timestamp><status>500</status><error>Internal Server Error</error><path>/gwc/rest/seed/workspace:layer.xml</path></Map>
Description:
I am attempting to create a cache for a layer using the GeoServer Cloud REST API and GeoWebCache. Despite following the configuration steps, I am encountering an java.lang.IllegalStateException error related to ambiguous handler methods when trying to seed the cache.
Environment:
GeoServer Cloud: 1.8.9 GeoWebCache version: 1.25
Steps to Reproduce:
My geowebcache.xml configuration is as follows:
I use the following CURL command to initiate the caching:
Accessing the endpoint directly in the browser or using the API results in an XML file without any style information, showing only
<long-array-array/>
.The logs display the following error:
java.lang.IllegalStateException: Ambiguous handler methods mapped for '/geoserver/gwc/rest/seed/workspace:layer.xml': {public org.springframework.http.ResponseEntity org.geowebcache.rest.controller.SeedController.seedOrTruncateWithXmlPayload(javax.servlet.http.HttpServletRequest,java.io.InputStream,java.lang.String), public org.springframework.http.ResponseEntity org.geowebcache.rest.controller.SeedController.doPost(javax.servlet.http.HttpServletRequest,java.io.InputStream,java.lang.String,java.util.Map)}
<Map><timestamp>1722926495200</timestamp><status>500</status><error>Internal Server Error</error><path>/gwc/rest/seed/workspace:layer.xml</path></Map>