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.