× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.