Initializing DatagramSocket Class In Java Stored Procedure Fails With "bad file descriptor" In

(Doc ID 2366493.1)

Last updated on MAY 19, 2018

Applies to:

Oracle Database - Standard Edition - Version to [Release 12.2]
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


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