My Oracle Support Banner

CMP Entity Bean Cannot Write XMLTYPE More Than 4KB (SQLXML) Fails with ORA-01461 (Doc ID 1427152.1)

Last updated on AUGUST 18, 2023

Applies to:

Oracle WebLogic Server - Version 10.3.3 to 10.3.6
Information in this document applies to any platform.


This is a follow up problem after Bug 10432742.

When calling setXmldata() (which maps Java String to Oracle XMLTYPE via SQLXML mapping) on the CMP EJB with a short string, it works okay.

But when trying with a String >4kb it fails with:

From the documentation at

it would be the "LongString" mapping type that can deal with more than 4K.

But according to bug 10432742, we have to use SQLXML. So the SQLXML type seems to be missing support for data >4kb.


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.