Retrieval of XMLType data into a Java application via JDBC returns string instead of Binary in 11.2.0.4

(Doc ID 2200852.1)

Last updated on NOVEMBER 29, 2016

Applies to:

Oracle Database - Standard Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

Retrieving XMLType data from an 11.2.0.4 database that uses schema-based binary XML into a Java application via JDBC raises errors on the following lines of code:

BinXMLStream stream = xml.getBinXMLStream();
BinXMLDecoder decoder = stream.getDecoder();

The errors do not occur on an 11.2.0.3 database with the same data.

Changes

 Upgrade from 11.2.0.3 to 11.2.0.4

Cause

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