The definition of result is;

D result S O Class(*JAVA:'com.braintreegateway.-
D ResourceCollection')

I thought the problem may have been java version related but I have now
tried it on 1.7 64 bit and exactly the same error.

Don Brown

MSD Information Technology

Suite 5/29 McDougall Street Milton Q 4064
( 07 3368 7888
+ PO Box 1629 MILTON Q 4054
Ê 07 3368 7877
* Don.Brown@xxxxxxxxxx
È 0408 751 644

I am a proud supporter of THE REFERRAL NETWORK and recommend the services
of the other member businesses. For more information please checkout the

From: Jon Paris <>
To: Java400 <java400-l@xxxxxxxxxxxx>
Date: 07/01/2017 12:52 AM
Subject: Re: ILERPG call to Java get list fails and generates core
Sent by: "JAVA400-L" <java400-l-bounces@xxxxxxxxxxxx>

What is the definition of the object result?

Jon Paris

On Jan 5, 2017, at 11:56 PM, Don Brown <DBrown@xxxxxxxxxx> wrote:

I posted this on the Midrange-L list and it was suggested I post it

I am hoping someone can point me in the right direction with this one.

Java is crashing when I use a method that should return a java list

I checked the class using the javap -s command in qsh I get the details
about the class; (All class details from this are included below)

The method I am using is gstIds
public java.util.List getIds();
Signature: ()Ljava/util/List;

I have the prototype defined in my program as follows;

D getIds PR O ExtProc(*JAVA:
D 'com.braintreegateway.-
D ResourceCollection':'getIds')
D Class(*JAVA:'java.util.List')

D listIdJ S O Class(*JAVA:'java.util.List')

The following code snippet precedes the error but running in debug all
statements complete normally

// Create search request
transReqJ = transReqC();
dateParamsJ = dateParams(transReqJ);
transreqJ = setRange(dateParamsJ: startJ: endJ);
transGatewayJ = transGateway(gateway);

// Retrieve the transactions
result = search(transGatewayJ: transReqJ);

When the following line is executed it results in a gpf and system dump.

There is a stack trace showing on the screen but is meaningless to me -
See below.

listIdJ = getIds(result);

The joblog shows error MSG:RNX0301 Java exception received when calling
Java method.
Cause . . . . . : RPG procedure STTAPP100R in program XAPSW/STTAPP100R

received Java exception "**UNKNOWN ERROR**" when calling method

with signature "()Ljava.util.List;" in class

Results from javap -s

javap -s com.braintreegateway.ResourceCollection

The java.version property was detected as input. This property is used
output only and has no effect on JVM initialization.
Compiled from ""
public class com.braintreegateway.ResourceCollection extends
java.lang.Object implements java.lang.Iterable{


public int getMaximumSize();
Signature: ()I
public java.util.Iterator iterator();
Signature: ()Ljava/util/Iterator;
public java.lang.Object getFirst();
Signature: ()Ljava/lang/Object;
public java.util.List getIds();
Signature: ()Ljava/util/List;
static java.util.List

Signature: (Lcom/braintreegateway/ResourceCollection;)Ljava/util/List;

Stack Trace from screen when error occurs

----------- Stack Backtrace -----------
gpProtectedRunCallInMethod+0x24 (0xD07F3BC0 [])
signalProtectAndRunGlue+0x14 (0xD080F090 [])
j9sig_protect+0x138 (0xD0872F54 [])
gpProtectAndRun+0xc4 (0xD080F19C [])
gpCheckCallin+0x44 (0xD07F4398 [])
callVirtualObjectMethodA+0x38 (0xD07F8538 [])
J9_i5OS_CallObjectMethodA+0xac (0xD054C8B0 [])

Don Brown

This is the Java Programming on and around the IBM i (JAVA400-L) mailing
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

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.