Hi Thomas,
I implemented your suggestion, and it worked after I assigned the argument to my execute method, documentDvo, to a final temp variable within the method:
Code:
final DocumentDVO finalDocDvo = documentDvo;
However, when I tested with a large xml document, approx. 6Mb, it threw the follow exception:
Code:
org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{call spt_update(?, ?, ?, ?, ?, ?, ?, ?)}]; SQL state [72000]; error code [20001]; ORA-20001: Error from ed.spt_update==>ORA-19011: Character string buffer too small
ORA-06512: at "SYS.XMLTYPE", line 163
ORA-06512: at "ETREMBIC.SPT_UPDATE", line 45
ORA-19011: Character string buffer too small
ORA-06512: at line 1
I was testing locally with OracleXE 10g, so it may be an Oracle configuration issue. I'll look into that and post what I find.
Cheers,
Ed