"java.lang.RuntimeException: Unknown media type : text/plain; charset=utf-8" exception when invoking a REST service from SOA Suite 12.1.3 (Doc ID 2074332.1)

Last updated on MAY 10, 2017

Applies to:

Oracle SOA Suite - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3.0.0 version, BPEL Service Engine

While invoking external REST service, call fails with the below error.

java.lang.RuntimeException: Unknown media type : text/plain; charset=utf-8
  at oracle.integration.platform.blocks.rest.bc.translator.wsdl.RestTranslatorFactory.getTranslator(RestTranslatorFactory.java:73)
  at oracle.integration.platform.blocks.rest.bc.reference.wsdl.WsdlReference.getRestTranslator(WsdlReference.java:246)
  at oracle.integration.platform.blocks.rest.bc.reference.wsdl.WsdlReference.buildResponse(WsdlReference.java:204)
  at oracle.integration.platform.blocks.rest.bc.reference.RestReference.request(RestReference.java:285)
  at oracle.integration.platform.blocks.rest.bc.reference.RestReferenceBindingComponent.request(RestReferenceBindingComponent.java:215)
  at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:151)
  at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:213)
  at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:275)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)





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