I wrote a Java class that has methods implementing calls to the Anet Java API for processing basic credit card transactions. Works fine when calling it from a web app, and I get valid responses back from Anet. However, when trying to call it from Java running in Oracle DB then I get the following errors:
When trying an AUTH_ONLY_TRANSACTION or AUTH_CAPTURE_TRANSACTION:
The FIRST time it runs, it throws this error:
Dec 21, 2016 3:08:45 PM net.authorize.util.HttpUtility postData
SEVERE: Execution error for http post Message: 'java.lang.ExceptionInInitializerError'
The SECOND time and after it throws this error:
Dec 21, 2016 3:40:28 PM net.authorize.util.HttpUtility postData
SEVERE: Execution error for http post Message: 'java.lang.NoClassDefFoundError'
No further info is given on where the static initializer error is occurring, or on what class it can't find.
I'm using anet-java-sdk-1.9.2.jar, and loading it (plus all dependency jars) into Oracle, although perhaps I am missing some dependency???
Don't know where to go from here, as it works from my web environment, but not from Oracle.