Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Stored Procedure Issue

 
Gaurav Mac Mathur
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
specified.
ORA-04030: out of process memory when trying to allocate 36876 bytes
(callheap,kllcqgf:k
BEGIN sfa_xml_generator_proc; END;
*
ERROR at line 1:
ORA-04030: out of process memory when trying to allocate 4032 bytes (joxu heap
init,ioc_allocate_pal)
********************************************
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 8.1.7.2
Any pointers welcomed.
TIA,
Gaurav
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gaurav,
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!
Avi.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic