Oracle Access Manager 11g (OAM 11.1.2.3.x) Policy Admin REST API Java Client Returns "MessageBodyReader not found for media type=text/plain, type=class test.jaxb.ApplicationDomain"
(Doc ID 2461666.1)
Last updated on NOVEMBER 28, 2023
Applies to:
Oracle Access Manager - Version 11.1.2.3.180116 and laterInformation in this document applies to any platform.
Symptoms
- OAM 11.1.2.3.180116
- OAM Policy Admin REST API to configure application domain resources in OAM
- Steps
OAM-policyadmin-11.1.2.0.0.xsd file, java classes were compiled using the xjc utility
Then using JAXB were able to invoke the services programmatically using java.
The REST calls have been successful in that the resources have either been created or deleted, depending upon the method being used.
* Where the issue occurs is on a POST or DELETE method for the class in use.
For example, if the code performs a POST using the InvocationBuilder like this passing an XML file as input:
Invocation.Builder invocationBuilder = appDomainTarget.request(MediaType.APPLICATION_XML);
ApplicationDomain resp = invocationBuilder.post(Entity.xml(loadXMLFile(xml)), ApplicationDomain.class);
The call is successful, however, it fails when attempting to process the response with an exception similar to the one below
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |