A aplicação http://book-payment.herokuapp.com/payment está fora do ar?
Estou recebendo erro 500 ao finalizar a compra.
Sep 21, 2017 2:24:35 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet dispatcher threw exception
org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:607)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:565)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:521)
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:348)
at br.com.casadocodigo.loja.controllers.PagamentoController.lambda$0(PagamentoController.java:43)
at org.springframework.web.context.request.async.WebAsyncManager$4.run(WebAsyncManager.java:322)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
Sep 21, 2017 2:24:35 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/casadocodigo] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error] with root cause
org.springframework.web.client.HttpServerErrorException: 500 Internal Server Error
at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:94)
at org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate.java:607)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:565)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:521)
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:348)
at br.com.casadocodigo.loja.controllers.PagamentoController.lambda$0(PagamentoController.java:43)
at org.springframework.web.context.request.async.WebAsyncManager$4.run(WebAsyncManager.java:322)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.lang.Thread.run(Thread.java:745)
UPDATE: acabei de testar e está funcionando... mas não sei qual o problema da minha requisição. Alguém com a mesma dificuldade?
UPDATE: encontrei o erro na classe de dadosPagamento. Problema resolvido!