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 https://download.oracle.com/docs/cd/E17904_01/web.1111/e13719/cmp_jar_ref.htm#EJBPG905
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