|
venkatreddy puram wrote: > > I have a main rpgle program that calls a procedure which has calls > to Java method. For the first time when the main RPGLE calls the procedure, > The procedure the intialization where the java objects are instatiated with > calls to Constructer. > When the procedure is called the subsequent times, The java objects > that were instantiated in the intialization routine during the first call > are never there and the subsequent calls to methods fails saying ""JVM 1 has > ended" and Pointer not set for location referenced. Has anyone seen this > kind of errors. > The calls to methods in the procedure works great if the java > objects are instantiated everytime when the main rpgle calls the procedure. > I feel it is an overhead to instantiate java objects on every call to the > procedure... Are the object variables defined as static in the called procedure? Do you ever free any of your objects? If so, do you also make sure you set the object variable in RPG to *NULL?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.