I would like to thank everyone that replied to this thread - we now have
the process working.

As I suspected the problem was really simple but it wasn't until I got
standard logging working that we were able to track the problem down.

Also did not help that the initial connection to the gateway, while
requiring all authentication strings to be passed did not actually
authenticate the values passed and it was not until we actually tried to
use a method to retrieve something the authentication would fail.

Ok the stupid mistake was I had the public key and the private key swapped
around - but getting a core dump because I was trying to access an object
that did not exist was all the initial information available.

So for the archives the following enabled me to get the necessary logs to
find the error.

I set up an initial program that sets the environment;

PGM

ADDENVVAR ENVVAR(QIBM_USE_DESCRIPTOR_STDIO) VALUE('Y')
ADDENVVAR ENVVAR(QIBM_RPG_JAVA_EXCP_TRACE) VALUE('Y')
ADDENVVAR ENVVAR(QIBM_RPG_JAVA_PROPERTIES) +
VALUE('-Dos400.stderr=file:/home/temp/myst+
derr.txt;-Dos400.stdout=file:/home/temp/my+
stdout.txt;')
CALL PGM(CHECKSTDIO)

ENDPGM

The source for CHECKSTDIO can be found at the following link;

http://www-01.ibm.com/support/docview.wss?uid=nas8N1014290

The error log clearly showed the java exception - here is a sample;

Exception in thread "main"
com.braintreegateway.exceptions.AuthenticationException
at
com.braintreegateway.util.Http.throwExceptionIfErrorStatusCode(Http.java:278)

at com.braintreegateway.util.Http.httpRequest(Http.java:120)
at com.braintreegateway.util.Http.post(Http.java:73)
at
com.braintreegateway.TransactionGateway.search(TransactionGateway.java:130)



Cheers

Don Brown




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