Could be because you're in the middle of a Python to RPG/Pase(XMLSERVICE) to RPG to Java love quadrangle. Too many layers of spawned jobs perhaps ?
Regards,
Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802
w. helpsystems.com
----------------------------------------------------------------------
message: 1
date: Fri, 7 Dec 2018 13:45:13 +0000
from: Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
subject: Re: [IBMiOSS] XMLSERVICE, RPGLE & Java error
For future reference, I've created a project that demonstrates this error.
Justin-E-Taylor/IBM-i-Python-to-RPG-Java<
https://github.com/Justin-E-Taylor/IBM-i-Python-to-RPG-Java.git>
From: Justin Taylor
Sent: Tuesday, October 02, 2018 2:21 PM
To: OpenSource-Midrange. com (opensource@xxxxxxxxxxxx) <opensource@xxxxxxxxxxxx>
Subject: XMLSERVICE, RPGLE & Java error
I'm trying to use XMLSERVICE/itoolkit to call RPG that calls Java. My JVM crashes immediately on startup. Has anyone seen this/have a work-around? I have created a simple test case that can replicate the issue.
RPGLE:
//--------------------------------------------------
// Procedure name: stringConstructor
// Purpose: Java String constructor
// Returns: Java String object
// Parameter: bytes => RPG character variable
//--------------------------------------------------
Dcl-pr stringConstructor object(*java : 'java.lang.String')
extProc(*java : 'java.lang.String' : *constructor) ;
bytes varchar(9999) const ;
End-pr;
//----------------------------------------------------------------------
// stand-alone fields
//----------------------------------------------------------------------
Dcl-s javaString object(*java : 'java.lang.String') ;
//-----------------------------------------------------------------------
javaString = stringConstructor('A');
javaString = *null;
*inLR = *on;
Return;
Python:
from itoolkit import iCmd, iData, iPgm, iToolKit from itoolkit.db2.idb2call import iDB2Call
itransport = iDB2Call()
itool = iToolKit()
itool.add(iPgm('my_key', 'STRJVM', {'lib':'QGPL'}))
itool.call(itransport)
Cross-post to MIDRANGE-L & Ryver.
TIA
As an Amazon Associate we earn from qualifying purchases.