We recently abandoned our 1 RPG program that was written this way as we had a similar problem when a customer upgraded.
Spent a week messing around to no avail.
In our case we re-engineered the entire program as a Java class.
Personally I like this better anyway as you can wrap Java class calls with a CL quite easily.
Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------
message: 4
date: Sun, 19 Aug 2012 07:02:42 -0700 (PDT)
from: Nathan Andelin <nandelin@xxxxxxxxx>
subject: Re: You Got To Love Troubleshooting RPG calls To Java using
EXTPROC(*JAVA)
From: Scott Klement
Is it possible that your Java installation is hosed?
It makes one wonder. Several web links at IBM say to contact your service provider about message ID "JVMJ9VM020". And that's about it! IBM i 7.1 has been available for quite a while. One would think that others would have run into this problem.
On the other hand, the Java class runs fine and produces expected results when run through qsh. System i Navigator and other IBM i administrative interfaces use Java extensively, and they're working fine.?The box is a new 720. I downloaded and installed CUME PTFs. The only problem seems to be with the RPG => Java interface.
But, since you appear to?be pointing at jdk60, I guess that isn't a problem for you??
qsh reports:
java -version ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
java version "1.6.0" ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
Java(TM) SE Runtime Environment (build pap3260sr10-20111208_01(SR10)) ? ? ? ?
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 OS/400 ppc-32 jvmap3260sr10-201112
08 (JIT enabled, AOT enabled) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
J9VM - 20111207_096808 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
JIT ?- r9_20111107_21307ifx1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
GC ? - 20110519_AA) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
JCL ?- 20111220_01 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
?I used the same?environment variables that you mention (JAVA_HOME, CLASSPATH, and?QIBM_RPG_JAVA_PROPERTIES)
One problem is that I can't find any references that say what to set those environment variables to under 7.1 I finally decided to?set?JAVA_HOME to?'/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit', just prior to calling the RPG program. The Job Log indicates that a JVM starts. Then errors out.
I didn't have to do anything differently at 7.1...
That's kind of reassuring, but still a PUZZLEMENT.
Thanks,
-Nathan.
------------------------------
As an Amazon Associate we earn from qualifying purchases.