• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Java Stored Procedure Issue

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You ought to ventilate your mind and let the cobwebs out of it. Use this cup to catch the tiny ads:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic