Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
Grievance
Commits
843334e1
Commit
843334e1
authored
1 year ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
bug fixes
parent
327eedd9
main
Escalate_ticket_send_mail_to_raiser
UAT
UPHRH_7903_mobile_otp
UPHRH_quartz_scheduler
admin_config_changes
github/fork/vky25/patch-1
rahu_test
shishir_dynamic_schedular
shishir_ticket_statistics_by_user
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+7
-1
.../upsmf/grievance/service/impl/IntegrationServiceImpl.java
with
7 additions
and
1 deletion
+7
-1
src/main/java/org/upsmf/grievance/service/impl/IntegrationServiceImpl.java
+
7
−
1
View file @
843334e1
package
org.upsmf.grievance.service.impl
;
import
com.fasterxml.jackson.core.JsonParseException
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.node.ArrayNode
;
...
...
@@ -114,7 +115,12 @@ public class IntegrationServiceImpl implements IntegrationService {
log
.
info
(
"Create user Response - {}"
,
response
);
if
(
response
.
getStatusCode
()
==
HttpStatus
.
OK
)
{
String
userContent
=
response
.
getBody
().
toString
();
JsonNode
responseNode
=
mapper
.
readTree
(
userContent
);
JsonNode
responseNode
=
null
;
try
{
responseNode
=
mapper
.
readTree
(
userContent
);
}
catch
(
JsonParseException
jp
)
{
log
.
error
(
"Error while parsing success response"
,
jp
);
}
if
(
responseNode
!=
null
){
if
(
responseNode
.
has
(
"errorMessage"
))
{
throw
new
RuntimeException
(
responseNode
.
get
(
"errorMessage"
).
textValue
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets