Dx Gateway 400 Bad Request

book

Article ID: 197905

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

 
 

Trying to integrate a 3rd party  ticket management system with DX -SAAS OI to push alarms from OI to ticket management system.

Error seen when executing batch file running DX gateway

 

 ERROR o.s.boot.SpringApplication - Application run failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
 at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:816)
 at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:797)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:324)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)
 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)
 at com.doi.alarms.integration.OnPremIntegrationApplication.main(OnPremIntegrationApplication.java:51)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
 at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
 at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
 at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: org.springframework.messaging.MessageHandlingException: nested exception is org.springframework.messaging.MessageHandlingException: HTTP request execution failed for URI [https://axa.dxi-na1.saas.broadcom.com/ess/security/v1/token]; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 , failedMessage=GenericMessage [payload={password=, grant_type=password, username=Required to run OnPremITSM/OnPremGtw/RESTmon}, headers={Authorization=Basic UmVxdWlyZWQgdG8gcnVuIE9uUHJlbUlUU00vT25QcmVtR3R3L1JFU1Rtb24=, id=4355e6bf-f72f-c9bf-b0c8-a27a1765e150, Content-Type=application/x-www-form-urlencoded, timestamp=1597923027826}]
 at org.springframework.integration.handler.MethodInvokingMessageProcessor.processMessage(MethodInvokingMessageProcessor.java:109)
 at org.springframework.integration.handler.ServiceActivatingHandler.handleRequestMessage(ServiceActivatingHandler.java:93)
 at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:123)
 at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:162)
 at org.springframework.integration.dispatcher.AbstractDispatcher.tryOptimizedDispatch(AbstractDispatcher.java:115)
 at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:132)
 at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:105)
 at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:73)
 at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:453)
 at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:401)
 at com.doi.alarms.integration.outbound.doi.DoiGatewayStartupService.run(DoiGatewayStartupService.java:44)
 at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:813)

Other errors in DX Gateway log

INFO DxApplication: JSONObject["userCohort"] not found.

INFO DxApplication: Please check the DX Credentials. Exiting............

INFO DxApplication: Encryption of password started

 

Environment

Release : 20.2

Component : CA DOI Foundations

Resolution

 
 

Related to using older version of DX Gateway, using 1.02 instead of 1.03

In the latest version of dx gateway:

1. In generic_config.json file, dxsaas_url(doi url) is not correct.
2. In onprem_gateway.properties file, doi.env.alarmUri is incorrect (Updated /mdo/v2/aoanalytics/ with /oi/v3/oianalytics/ ) 

 

Additional Information