Application connection failure

Which IIQ version are you inquiring about?

Version 8.2

Share all details related to your problem, including any error messages you may have received.

Hi Community,

We got a situation there is webservices connector which is working fine in lower environments but in production we are having below error on deploying the code to production.

Error: “Exception occurred in Test Connection. Error: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $”

Please extend your expertise in resolving the same.

check if this helps :
https://community.sailpoint.com/t5/IdentityNow-Forum/Web-Services-Connector-using-JWT-Token-Request/m-p/151464

1 Like

Hi @charan18,

Have you just moved the configuration from lower environment to higher environment or it is manually configured for the first time?

If it is first time move, please try to fill the details manually and see if it goes through.

Thanks

1 Like

Have you validated the connectivity in the production environment, like is there a proxy between IdentityIQ and the Web Service server?

Are you using any form of authentication?

Can you enable debug logging for classes below, to see what the response from the web application is:

  • org.apache.http
  • sailpoint.connector.webservices

– Remold

1 Like

Hi @ashutosh08 when I configure manually it works but when I import the same XML it doesn’t work.

Hi @charan18,

If what you are saying is already isolated, then can you check if there is any difference of any specific character or some other configuration mismatch which is causing this failure. If possible, please validated the credential is correct after being imported.

Thanks

I did all the mentioned validations you told but it’s still the same. I compared the xml line by line.

Hi @charan18,

If possible, can you share both the XML by removing your sensitive data.

Also please let me know how you are getting the XML?

Thanks

1 Like

Hi @ashutosh08 i have attached the xml please provide your inputs.

Not working.xml (9.2 KB)
Working Connection.xml (9.5 KB)

Hi @charan18,

I do not see any difference in both of these XML. Can you let me know how you are getting XML to import and create new application?

Thanks

i think the problem is the select devolve an invalid object, in this case you are expecting an object and the query come back a number.

1 Like

Hi and Hello,

The error message java.lang.IllegalStateException: Expected BEGIN_OBJECT but was NUMBER at line 1 column 2 path $ indicates that the JSON parser in your application expected to find a JSON object (which starts with a {) but instead found a number.
This discrepancy usually suggests that the response format from the web service in the production environment is different from what is expected.

  • Check the actual response returned by the web service in the production environment. Compare it with the response in lower environments to identify any discrepancies.
  • Use tools like curl, Postman, or your application logs to capture the exact response from the web service.

Regards,
Adam

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.