RSA Identity Governance and Lifecycle RESTful web service response: java.lang.IllegalStateException
Originally Published: 2016-10-17
Article Number
Applies To
RSA Version/Condition: 6.9.1
Platform (Other): Linux
Issue
Default Configuration
|
Headers |
Name Content Type Accept |
Value application/xml Accept | |
However, when AFX is processing the response from the RESTful Web Service, a message with the following properties and error message may be returned.
Message properties: INVOCATION scoped properties: INBOUND scoped properties: Connection=false Content-Length=389 Content-Type=application/xml; charset=UTF-8 Date=Wed, 12 Oct 2016 03:20:21 GMT Keep-Alive=falseThe below error may be logged during parsing of the http web service response:
<Response timestamp="2016-10-12T14:20:36.035+11:00">
<status>
<code>2</code>
<brief>Failure - Error processing RESTful web service response</brief>
<detailed>Error processing RESTful web service response: java.lang.IllegalStateException: Expected application/xml but received application/xml; charset=UTF-8</detailed>
</status>
</Response>Cause
The RESTful Web Wervice is providing a Content Type of: application/xml; charset=UTF-8, but the expected value is just: application/xml.
To enable AFX DEBUG, please review the following articles:
- Article 000033429 - How to turn on debug logging for a RSA Via Lifecycle and Governance Access Fulfillment Express (AFX) Connector 7.0, 6.9.1 and 6.8.1
- Article 000030219 - How to turn on debug logging for a RSA Via Lifecycle and Governance Access Fulfillment Express (AFX) Connector 7.0.1 and above
When AFX DEBUG is enabled, the following messages may also be returned in the Connector log:
2016-10-12 09:23:45.675 [DEBUG] org.mule.module.scripting.transformer.ScriptTransformer:125 - Object after transform: Error processing RESTful web service response: java.lang.IllegalStateException: Expected application/xml but received application/xml; charset=UTF-8
2016-10-12 09:23:45.703 [WARN] org.mule.transport.jms.JmsMessageUtils:269 - Header: Content-Type is not compliant with JMS specification (sec. 3.5.1, 3.8.1.1). It will cause problems in your and other applications. Please update your application code to correct this. Mule renamed it to Content_Type
NOTE
For AFX version 7.0.1 and above, the Connector logs are located in the $AVEKSA_HOME/AFX/esb/logs directory, and have the following prefix;
- esb.AFX-INIT.log
- esb.AFX-CONN-<connector name>.log
- esb.AFX-SETTINGS-<connector name>.log
For AFX versions 7.0.0 and 6.9, the Connector logs are located in the $AVEKSA_HOME/AFX/mule/logs directory, and have the following prefix;
- mule-ee.log
- mule.AFX-CONN-<connector name>.log
- mule.AFX-SETTINGS-<connector name>.log
Resolution
Content-Type=application/xml
instead of:
Content-Type=application/xml; charset=UTF-8
This is in accordance with the message:
org.mule.transport.jms.JmsMessageUtils:269 - Header: Content-Type is not compliant with JMS specification (sec. 3.5.1, 3.8.1.1). It will cause problems in your and other applications. Please update your application code to correct this. Mule renamed it to Content_Type
Workaround
To resolve the problem, update the Request Header Content-Type in the Connector Capabilities, so that is matches what is being sent by the RESTful Web Service; for example,
set Content-Type to: application/xml; charset=UTF-8
Related Articles
Manually applying the definition files to ClamAV for RSA Authentication Manager 8.x 626Number of Views Incompatibility with Encoding of Private Key causes various issues on an RSA SecurID Access Identity Router running SLES12… 202Number of Views Error during migration: Error: Failed to massage migrated data org.postgresql.util.PSQLException: ERROR: update or delete… 57Number of Views Windows Agent failing to authenticate local Group Membership with 30 Secs timeout 123Number of Views RSA Authentication Manager 8.1 SP 1 patch 1 backups to a Windows Shared Folder are failing after software upgrade 244Number of Views
Trending Articles
Downloading RSA Authentication Manager license files or RSA Software token seed records RSA MFA Agent 2.3.6 for Microsoft Windows Installation and Administration Guide Quick Setup Guide - Passwordless Authentication in Windows MFA Agent for Active Directory Mandatory Certificate Upgrade Required by 6th October 2025 for RSA MFA Agent for PAM, RSA MFA Agent for Apache, and Third … RSA Authentication Manager 8.9 Release Notes (January 2026)
Don't see what you're looking for?