My Oracle Support Banner

Getting HTTP-504 from OC4J to External HTTP or SOAP Resources (Doc ID 336351.1)

Last updated on JUNE 30, 2022

Applies to:

Oracle Containers for J2EE - Version to [Release AS10g to AS10gR2]
Information in this document applies to any platform.
Oracle Containers for J2EE - Version: to
This problem can occur on any platform.


You have java code running in Oracle Containers for J2EE (OC4J) that is perhaps invoked by a Servlet, JSP or Enterprise Java Bean (EJB).
That code in turn accesses a further remote web server, possibly using java networking classes (e.g. URL, HttpClient etc.)
or possibly a remote WebService accessed via Simple Object Access Protocol (SOAP).

The code results in an error similar to the following:



If you have multiple applications running in the container, you may receive the error intermittently in both applications.
The errors can be triggered by the deployment of a new application or the arrival of request load (or more frequent requests) for a newly deployed or infrequently used application.


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

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