This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java Stored Procedure Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java Stored Procedure Issue" Watch "Java Stored Procedure Issue" New topic

Java Stored Procedure Issue

Gaurav Mac Mathur
Ranch Hand

Joined: Feb 19, 2002
Posts: 47
We are facing a problem in calling a java stored procedure from a PL/SQL procedure.
The issue is :-
ERROR :-29532
The Error message is RA-29532: Java call terminated by uncaught Java
exception: oracle.xml.sql.OracleXMLSQLException: Invalid context handle
ORA-04030: out of process memory when trying to allocate 36876 bytes
BEGIN sfa_xml_generator_proc; END;
ERROR at line 1:
ORA-04030: out of process memory when trying to allocate 4032 bytes (joxu heap
The PL/SQL procedure continuously listening to an Advance Queue for any messages and calls the Java Stored Procedure for each message.
We are getting this error when the messages in the queue exceed 80 (appx).
1) Is there any limitation in Oracle for calling Java Stored Procedure?
2) If Java Stored Procedure consumes more of process memory?
Oracle version we are using is
Any pointers welcomed.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

You are running out of memory. I guess that your java code is not allowing the garbage collector to release memory. I would say your code is causing a memory leak. But without seeing your code, I can only guess.
Obviously (assuming my guess is correct) you have to rewrite your code so that it does not cause a memory leak!
I agree. Here's the link:
subject: Java Stored Procedure Issue
jQuery in Action, 3rd edition