My Oracle Support Banner

Getting An Error As "java.net.UnknownHostException"While Deploying An Application Which Uses Apache HTTPClient (Doc ID 2542673.1)

Last updated on NOVEMBER 19, 2020

Applies to:

Oracle Java Cloud Service - SaaS Extension - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms


Getting an error as "java.net.UnknownHostException"while deploying an application which uses Apache HTTPClient


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

Error Redirected Throwable
java.net.UnknownHostException:<IDD_NAME>.fa.em2.oraclecloud.com
at oracle.cloud.jcs.scanning.impl.extension.network.InetAddressGetAllByNameHandler.invoke


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a application which make REST API calls using Apache HTTPClient 4.x
2. It will work fine outside JCS-SX
3. Fails to resolve the destination host


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!


In this Document
Symptoms
Cause
Solution
References


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