While Creating REST Connection With OAuth Two Legged Authentication, It Fails With Error "oracle.cloud.connector.api.RemoteApplicationAuthenticationException: 401"

(Doc ID 2381571.1)

Last updated on APRIL 17, 2018

Applies to:

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

Symptoms

When trying to create an integration using a connection with OAuth Custom Two Legged Flow configured.

Connection created with success, but when the integration runs It fails with the errors below.

OSB-380001 Error sending bytes: java.lang.IllegalArgumentException: java.net.MalformedURLException

 

[2018-03-22T17:57:42.732+00:00] [ics_server2] [ERROR] [] [oracle.soa.adapter] [tid: [ACTIVE].ExecuteThread: '27' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: test] [ecid: 005Q0GAZUcvA9T3_Rlt1id0007Ft00004o,1:20086:70] [APP: Service Bus JCA Transport Provider] [oracle.soa.tracking.FlowId: 800046] [oracle.soa.tracking.InstanceId: 10284] [oracle.soa.tracking.SCAEntityId: 10814] [composite_name: Project!01.00.0000] [FlowId: 0000M9EqwlBECSF_R1XBid1QQF4r00003x] Was unable to process multipart Response due to: 401[[
oracle.cloud.connector.api.RemoteApplicationAuthenticationException: 401
at oracle.cloud.connector.impl.RESTFaultGenerator.errorResponseException(RESTFaultGenerator.java:125)
at oracle.cloud.connector.impl.RESTEndpoint.handleHttpResponse(RESTEndpoint.java:597)
at oracle.cloud.connector.impl.RESTEndpoint.createResponseMessage(RESTEndpoint.java:457)
at oracle.cloud.connector.impl.RESTEndpoint.invoke(RESTEndpoint.java:168)
at oracle.cloud.connector.impl.CloudOperationImpl.invoke(CloudOperationImpl.java:82)
at oracle.tip.adapter.cloud.CloudAdapterInteraction.sendMessageToCloudProvider(CloudAdapterInteraction.java:443)
at oracle.tip.adapter.cloud.CloudAdapterInteraction.execute(CloudAdapterInteraction.java:166)
at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.performOperation(WSIFOperation_JCA.java:616)
at oracle.tip.adapter.sa.impl.fw.wsif.jca.WSIFOperation_JCA.executeOperation(WSIFOperation_JCA.java:382)



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create REST connection with 2 legged OAuth
2. Create integration and invoke the endpoint.
 

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