Unverified Commit 7909ed62 authored by Shishir Suman's avatar Shishir Suman Committed by GitHub
Browse files

Handling deserialization issue

Showing with 8 additions and 4 deletions
+8 -4
......@@ -116,10 +116,14 @@ public class PaymentServiceImpl implements PaymentService {
httpHeaders.set("x-authenticated-user-token", EXAMS_AUTH_TOKEN);
HttpEntity<String> entity = new HttpEntity<String>(referenceNo, httpHeaders);
logger.info("exam url - {}", FEE_STATUS_UPDATE_ENDPOINT);
ResponseEntity<ResponseDto> responseEntity = restTemplate.postForObject(FEE_STATUS_UPDATE_ENDPOINT, entity, ResponseEntity.class);
logger.info("Update student fee status - {}", responseEntity);
if(responseEntity != null && responseEntity.getStatusCode() == HttpStatus.OK) {
logger.info("Student Fee updated successfully");
try {
ResponseEntity responseEntity = restTemplate.postForObject(FEE_STATUS_UPDATE_ENDPOINT, entity, ResponseEntity.class);
logger.info("Update student fee status - {}", responseEntity);
if (responseEntity != null && responseEntity.getStatusCode() == HttpStatus.OK) {
logger.info("Student Fee updated successfully");
}
} catch (Exception e) {
logger.error("Error in processing request");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment