SOACS Rest Adapter Throwing Java.lang.RuntimeException: Unknown Media Type : Text/html;charset=utf-8

(Doc ID 2383601.1)

Last updated on APRIL 13, 2018

Applies to:

SOA Suite Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version, Core SOA Product Issues

When calling REST services from SOA CS Environment, it fails with error.

ERROR
-----------------------
java.lang.RuntimeException: Unknown media type : text/html;charset=utf-8
at oracle.integration.platform.blocks.rest.bc.reference.wsdl.WsdlReference.buildResponse(WsdlReference.java:212)
at oracle.integration.platform.blocks.rest.bc.reference.RestReference.request(RestReference.java:297)
at oracle.integration.platform.blocks.rest.bc.reference.RestReferenceBindingComponent.request(RestReferenceBindingComponent.java:245)
at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:151)
at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:217)
at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:283)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Call REST Service from SOA.
 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms