Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Fetching SRV using InitialDirContext failing on Java 14 and below

User_ND8AEJul 5 2021

We are making use of getAttributes method on javax.naming.directory.InitialDirContext for SRV record, this is being attempted from local laptop connected to company VPN through Global Protect 5.2.6-87 version. The below lines of code works absolutely fine from Oracle Java 15 onwards, however it fails on Oracle Java 14 and below throwing exception highlighted below
Capture.PNGThe API documentation for javax.naming.directory.InitialDirContext does not have significant difference from Java 14 to Java 15. Looking at any inputs to figure out the reason, why the above lines of code works from Java 15 onwards and fails below Java 15 ?
Thank You.

Comments
Post Details
Added on Jul 5 2021
0 comments
220 views