HTTP Status 500 – Internal Server Error


Type Exception Report

Message Request processing failed; nested exception is org.springframework.web.client.RestClientException: The rest template call failed with error code :503

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.web.client.RestClientException: The rest template call failed with error code :503
 Reason :<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
	edu.umich.icpsr.AppDispatcherServlet.service(AppDispatcherServlet.java:42)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
	edu.umich.icpsr.commons.oauth.filter.KeycloakAuthenticationFilter.doFilter(KeycloakAuthenticationFilter.java:75)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Root Cause

org.springframework.web.client.RestClientException: The rest template call failed with error code :503
 Reason :<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>

	edu.umich.icpsr.commons.util.RestTemplateResponseErrorHandler.handleError(RestTemplateResponseErrorHandler.java:32)
	org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:615)
	org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:573)
	org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529)
	org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:329)
	edu.umich.icpsr.commons.dao.FusekiDAO.queryForJson(FusekiDAO.java:768)
	edu.umich.icpsr.commons.dao.FusekiDAO.getTriples(FusekiDAO.java:792)
	edu.umich.icpsr.commons.web.bibliography.service.StudyCitationService.buildCSLItemData(StudyCitationService.java:222)
	edu.umich.icpsr.commons.web.bibliography.service.StudyCitationService.retrieveCSLItemData(StudyCitationService.java:141)
	edu.umich.icpsr.commons.web.bibliography.service.StudyCitationService.retrieveCSLItemData(StudyCitationService.java:127)
	edu.umich.icpsr.commons.web.bibliography.service.StudyCitationService.getStudyCitation(StudyCitationService.java:73)
	edu.umich.icpsr.commons.web.bibliography.controller.StudyCitationController.getStudyCitationAsENW(StudyCitationController.java:99)
	sun.reflect.GeneratedMethodAccessor667.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:215)
	org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
	org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:781)
	org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:721)
	org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)
	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
	edu.umich.icpsr.AppDispatcherServlet.service(AppDispatcherServlet.java:42)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
	com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
	edu.umich.icpsr.commons.oauth.filter.KeycloakAuthenticationFilter.doFilter(KeycloakAuthenticationFilter.java:75)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/7.0.109