My Oracle Support Banner

Initializing DatagramSocket Class In Java Stored Procedure Fails With "bad file descriptor" In (Doc ID 2366493.1)

Last updated on MARCH 04, 2022

Applies to:

Oracle Database - Standard Edition - Version to [Release 12.2]
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


Initializing DatagramSocket Class in a Java Stored Procedure (JSP) fails with below error at run time.

ORA-29532: Java call terminated by uncaught Java exception: close() failed, errno = 9
Bad file descriptor

Issue can be reproduced with below sample code:



Database Upgraded to


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.