Hi Justin. According to the java documentation, a System.exit should kill the JVM.
Have you tried submitting the RPG in a separate job? I think then it will create a new JVM each time it runs.
-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: 27 November 2015 16:16
To: rpg400-l@xxxxxxxxxxxx
Subject: RPGLE call Java throws MCH74A5
I have an RPGLE program that calls a 3rd party Java app. Right now it does a handful of RUNJVA using QCMDEXC. I'm trying to call the Java directly from RPGLE because I think I'll get better performance on repeat calls. Running interactively, the first Java call seems to work, but I get this MCH74A5 error:
Message . . . . : The Java Virtual Machine has ended.
Cause . . . . . : Java Virtual Machine 1 has ended because of reason 1. The
reason codes are defined as follows:
01- A Java program called the java.lang.System.exit method with a zero
status code.
From what I can find, a 0 code means success, so I'm not sure why it's killing my JVM.
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
Consider the environment and think before you print this email.
Proud partner of The Ageas Bowl and the Ageas Salisbury International Arts Festival.
Registered Address: Ageas House, Hampshire Corporate Park, Templars Way, Eastleigh, Hampshire, SO53 3YA Registered Number: 354568 England
Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority
This e-mail together with any attachments are intended for the addressee only and may be private and confidential. If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, you must not open any attachments, or copy, disclose, distribute, retain or use this e-mail, including any attachments, in any way whatsoever; please return it to us immediately using the reply facility on e-mail.
Consider the environment and think before you print this email.
As an Amazon Associate we earn from qualifying purchases.