My Oracle Support Banner

Oracle Access Manager 11g (OAM 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 and later
Information in this document applies to any platform.


OAM-policyadmin- 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 =, ApplicationDomain.class);

The call is successful, however, it fails when attempting to process the response with an exception similar to the one below




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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.