My Oracle Support Banner

SAXException at Parsing With JDK 17 (Doc ID 2954045.1)

Last updated on JUNE 07, 2023

Applies to:

Java SE JDK and JRE - Version 17 and later
Information in this document applies to any platform.

Symptoms

As part of migrating to JDK 17, SAXParseException is not being thrown while reading of DOM parser with secure_processing set to true and `ExpandEntityReferences` set to false.

Previously in JDK 8, even though `ExpandEntityReferences` was set to false, we were reading entity references which causes a SAXParseException when secure_processing was set to true.

In JDK1.8.0_361, you get the expected org.xml.sax.SAXParseException:

Changes

 Migration from JDK 8 to JDK 17.

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

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