My Oracle Support Banner

Fetching CLOB From an XML Object Shows a NULL Character at the LOB Prefetch Boundary (Doc ID 1547905.1)

Last updated on FEBRUARY 03, 2019

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


JDBC programs that read an XMLType object from a table using the ResultSet.getString() method receive a NULL character at the 4000th byte.  This causes XML file corruption or truncation.

This behavior appears to manifest with the use of some character sets.


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.