My Oracle Support Banner

Issue With REST Adapter (Doc ID 2334935.1)

Last updated on MARCH 26, 2018

Applies to:

Oracle Service Bus - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

REST Adapter is configured for JSON request and response type respectively .

Getting error while response from HCM Cloud via OSB BS

ERROR
-----------------------


An unexpected error occurred executing the test service: failed to unmarshal return type: interface com.bea.wli.sb.test.config.InvocationResultType; nested exception is:
java.io.IOException: error: Illegal XML character: 0x1f
If we check its successfully calling HCM cloud and creating new employee in HCM , but while mapping back response which is REST , we are getting unexpected error.
below is whole error :
An unexpected error occurred executing the test service: failed to unmarshal return type: interface com.bea.wli.sb.test.config.InvocationResultType; nested exception is:
java.io.IOException: error: Illegal XML character: 0x1f
org.apache.xmlbeans.impl.piccolo.io.IllegalCharException: Illegal XML character: 0x1f
at org.apache.xmlbeans.impl.piccolo.xml.XMLReaderReader.read(XMLReaderReader.java:169)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yy_refill(PiccoloLexer.java:3477)
at org.apache.xmlbeans.impl.piccolo.xml.PiccoloLexer.yylex(PiccoloLexer.java:3962)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yylex(Piccolo.java:1290)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.yyparse(Piccolo.java:1400)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:714)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3466)
at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:713)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:697)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:684)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208)
at org.apache.xmlbeans.impl.values.XmlObjectBase$SerializedRootObject.readObject(XmlObjectBase.java:2956)
at sun.reflect.GeneratedMethodAccessor605.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.

Or exception could be as following if content-type used is application/json instead of "application/vnd.oracle.adf.resourceitem+json"

Payload =
oracle.adf.internal.model.rest.core.exception.CannotParseContentException: The content type is not a ADFm REST entity. Content-Type: application/json

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Login to OSB Cconsole
2. Test the SendCandidateDetailsToHCM project
3. See the issue

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Not provided

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!


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