Try to submit a seeding or truncate request, submit, and the browser is redirected to a URL like:
http://localhost:8080/geoserver/gwc/rest/seed/topp:states
which shows a “406, unacceptable”, with the following logs:
05 dic 17:42:31 WARN [geoserver.catalog] - Error while getting feature type, flushing cache and retrying: Error occurred building feature type
05 dic 17:44:24 WARN [annotation.ExceptionHandlerExceptionResolver] - Failed to invoke @ExceptionHandler method: public final org.springframework.http.ResponseEntity<java.lang.Object> org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler.handleException(java.lang.Exception,org.springframework.web.context.request.WebRequest)
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
at org.springframework.web.accept.ParameterContentNegotiationStrategy.handleNoMatch(ParameterContentNegotiationStrategy.java:82)
at org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.resolveMediaTypeKey(AbstractMappingContentNegotiationStrategy.java:78)
at org.springframework.web.accept.AbstractMappingContentNegotiationStrategy.resolveMediaTypes(AbstractMappingContentNegotiationStrategy.java:61)
at org.springframework.web.accept.ContentNegotiationManager.resolveMediaTypes(ContentNegotiationManager.java:123)
Just adding “.html” to the url seems to fix it. Do the GWC REST controllers have a concept of default format?
|