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 AUGUST 26, 2022

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


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

Changes

 

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
Changes
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.