XMLDom Package fails with ORA-29532: Java call terminated by uncaught Java exception
Hi,
i receive the following errormessage.
ORA-29532: Java call terminated by uncaught Java exception:
java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
ORA-06512: at "WF_OWNER.PKG_OUTBOUND", line 1023
What do i do?
I select Clobs from a table and put them into a xml document using the XML Dom package.
I use a plsql procedure running in a loop, as long as it can find a clob. It writes a maximum of 500 clobs into one xml document. Then it creates the next document containing 500 clobs at a max. After the creation of the fourth file, the error is raised.
I receive the same error when i put 1000 clobs into each xml document, but then i receive it after the creation of 2 files.
I tried to create only 1 file containg 2000 clobs. The error is the same, but this document is not created at all.
When i set serveroutput on, i get the following inforamtion:
...
...
...
The id is2146435072
The id is2146435073
The id is-2147483648
java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
at java.util.Vector.elementAt(Vector.java)
at oracle.xml.parser.plsql.XMLNodeCover.getDocument(XMLNodeCover.java:55)
at oracle.xml.parser.plsql.XMLDocumentCover.getDocumentElement(XMLDocumentCover.java:223)
begin PKG_OUTBOUND.CREATE_OUTBOUND_PIPE; end;
ORA-29554: unhandled Java out of memory condition
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ArrayIndexOutOfBoundsException: -2048 < 0
ORA-06512: at "WF_OWNER.PKG_OUTBOUND", line 853
Looking up where the string: "The id is xxxx" is generated,
i found that it is from a oracle plsql procedure in the xml dom package.
The only thing i can do, is close the session, open a new one and start the creation of the files again.
Then it will do another 2000 clobs.
Thanks for help in advance
Claus