# Web Services - Java error

**URL:** <https://developer.sailpoint.com/discuss/t/web-services-java-error/139170>\
**Category:** SHF Discussion and Questions\
**Tags:** webservice-connector, sailpoint-identity-security\
**Created:** [May 28, 2025, 6:19pm UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170 "2025-05-28T18:19:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ts\_fpatterson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ts_fpatterson/32/26704_2.png) [@ts\_fpatterson](https://developer.sailpoint.com/discuss/u/ts_fpatterson)\
**Post date:** [May 28, 2025, 6:19pm UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170/1 "2025-05-28T18:19:08Z")

</div>

I am implementing a webservices connector and once I had the authentication piece configured where an accesstoken was generated, I received the below lower level java error.

I had some rules in place initially which I have since removed. I also limited the HTTP requests in the configuration to be simplified. I have restarted the cluster and confirmed the VAs are updated. We recieve the error when doing a test on the connection.

Error Received:

class sailpoint.tools.xml.PersistentHashMap cannot be cast to class java.lang.String (sailpoint.tools.xml.PersistentHashMap is in unnamed module of loader ‘app’; java.lang.String is in module java.base of loader ‘bootstrap’)

Anybody seen this error? Any ideas on where to start?

I have requested the customer to open a ticket with support

---

<div class="post-metadata">

**Author:** ![ManvithaNalabolu06](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/manvithanalabolu06/32/26315_2.png) [@ManvithaNalabolu06](https://developer.sailpoint.com/discuss/u/ManvithaNalabolu06)\
**Post date:** [May 29, 2025, 5:44am UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170/2 "2025-05-29T05:44:43Z")

</div>

Just check if theres any **mismatch** in your SailPoint Web Services connector configuration, where the system expects a String but instead receives a PersistentHashMap

---

<div class="post-metadata">

**Author:** ![sidharth\_tarlapally](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sidharth_tarlapally/32/26178_2.png) [@sidharth\_tarlapally](https://developer.sailpoint.com/discuss/u/sidharth_tarlapally)\
**Post date:** [May 29, 2025, 5:56am UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170/3 "2025-05-29T05:56:48Z")

</div>

@ts_fpatterson  
Could you please share the rule code (make sure to mask any sensitive data)? The error seems to be caused by treating a value of type `HashMap` as a `String` , which is likely resulting in a parsing issue.

---

<div class="post-metadata">

**Author:** ![ts\_fpatterson](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ts_fpatterson/32/26704_2.png) [@ts\_fpatterson](https://developer.sailpoint.com/discuss/u/ts_fpatterson)\
**Post date:** [May 29, 2025, 7:49pm UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170/4 "2025-05-29T19:49:45Z")

</div>

Looks to have been an issue with the authentication parameters. Authorization had two parameters listed under it, under the header.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 28, 2025, 7:49pm UTC](https://developer.sailpoint.com/discuss/t/web-services-java-error/139170/5 "2025-07-28T19:49:52Z")

</div>

Closed on July 28, 2025, 7:49pm UTC

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