sensorweb-server-helgoland
sensorweb-server-helgoland copied to clipboard
HTTP 500 error when requesting endpoints with `image/png`
Requesting an endpoint with an Accept: image/png or other not supported MimeType for that endpoint results in an HTTP 500 error, saying no appropriate rendering view could be found. So this leads to a spring configuration problem.
javax.servlet.ServletException: Could not resolve view with name 'v1/services' in servlet with name 'rest-dispatcher'
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1190)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:992)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:939)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)