|
I was seeing heap operation errors a couple of months ago on some http stuff. I applied the latest HTTP, database and group ptfs and it seemed to fix it. At least I haven't seen it since. This was on V5R3. HTH -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Michael_Schutte@xxxxxxxxxxxx Sent: Thursday, October 05, 2006 10:19 AM To: rpg400-l@xxxxxxxxxxxx Subject: Free Java Objects In RPG Good morning all, I'm having trouble with one of CGI Web RPG programs. This particular web program is using java to get data from a windows machine. At the start of the program, I start my grouping of java objects. temp = BldJavaStr('a'); env = getJniEnv(); beginObjGroup (env : 10000); Then go on to execute my custom java apps to retrieve the data. When finished, I free my object group. endObjGroup (env); freeLocalRef (env : temp); This works most of the time, however there are times when I get the following messages in the job log... The requested heap space operation is invalid. The pointer parameter passed to free or realloc is not valid. These don't stop the program from running, however, there are times a system error will pop up (this doesn't occur on every run) and cause the program to stop running. Additional Message Information Message ID . . . . . . : RNQ0299 Severity . . . . . . . : 99 Message type . . . . . : Sender copy Date sent . . . . . . : 10/05/06 Time sent . . . . . . : 10:36:47 Message . . . . : The RPG dump failed due to error (C). Cause . . . . . : The dump of the RPG procedure was halted because of a system error. Recovery . . . : Check the status of service program QRNXIE and file QPPGMDMP. Possible choices for replying to message . . . . . . . . . . . . . . . : C -- Cancel processing S -- Obtain system dump Bottom Reply . . . : S Press Enter to continue. The message before this error message is on that I listed before. Pointer not set for location referenced. Additional Message Information Message ID . . . . . . : MCH3601 Severity . . . . . . . : 40 Message type . . . . . : Escape Date sent . . . . . . : 10/05/06 Time sent . . . . . . : 10:36:47 Message . . . . : Pointer not set for location referenced. Cause . . . . . : A pointer was used, either directly or as a basing pointer, that has not been set to an address. Bottom Press Enter to continue. F3=Exit F6=Print F9=Display message details F12=Cancel F21=Select assistance level Does anyone have experience with this error message? I thought it had something to do with the temp variable (temp = BldJavaStr('a');) when passed to the freelocalref procedure. I just can't seem to figure out what's going on. Michael Schutte Dig in! Bob Evans New Knife & Fork Sandwiches - This much homestyle goodness demands a Knife & Fork!
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.