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 ?

Richard Schoen
Director of Document Management
e. richard.schoen@xxxxxxxxxxxxxxx
p. 952.486.6802


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.

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.

// 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 ;

// stand-alone fields
Dcl-s javaString object(*java : 'java.lang.String') ;


javaString = stringConstructor('A');
javaString = *null;

*inLR = *on;

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'}))

Cross-post to MIDRANGE-L & Ryver.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 by 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.