× 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.



On 1/5/2017 4:08 AM, Don Brown wrote:
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
object..

Typically, when I'm doing a new Java thing, I do it on my PC first,
using the exact Java examples posted on the trading partner's web site.
That typically lets me iron out the problems I always seem to have with
CLASSPATH, firewalls, etc.

Once I have the bone stock Java examples running against the test
server, I move on to RPG; prototype the classes I need, etc. Now, any
failures are definitely in the IBM i environment, and not in the Java.

Things to check:
1) What JDK does Braintree expect?
2) What JDK is the RPG code using?
3) What do the Java classes look like?
4) What do the RPG prototypes look like?

I have learnt the hard way to never, not even once, ever test RPG-Java
code interactively. I always, every time, run it in batch. This way I
always get a new, clean JVM. I've stopped questioning whether the
problem I'm seeing is the result of the ghost of Christmas past haunting
my interactive environment.

If none of the above ideas get you any further, please post again
including the Java class definitions as well as the RPG prototypes.
Also, what version of IBM i you're on, and what JDK you are using.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.