cancel
Showing results for 
Search instead for 
Did you mean: 

NULL RESPONSE returned from Java SDK call

My web app is in Java and deployed to Linux server, When I tested Credit Card payment, I always got "null response" from authorize.net.

The problem is, if I ran the app on my PC (windows), the payment was successfully processed. Then I ran a curl command as below on two environments -- Linux and windows

         curl  -v  https://api.authorize.net/xml/v1/request.api

The difference is the order of the following two lines. On Linux, the order is #1, #2. On windows, the order is #2, #1.

1. Connection #0 to host api2.authorize.net left intact
2. {"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}]}}

On Linux, null response is always returned. But on windows, the transaction works. Any idea?

alphenix
Member
1 REPLY 1


@alphenix wrote:

My web app is in Java and deployed to Linux server, When I tested Credit Card payment, I always got "null response" from authorize.net.

The problem is, if I ran the app on my PC (windows), the payment was successfully processed. Then I ran a curl command as below on two environments -- Linux and windows

         curl  -v  https://api.authorize.net/xml/v1/request.api

 

The difference is the order of the following two lines. On Linux, the order is #1, #2. On windows, the order is #2, #1.

1. Connection #0 to host api2.authorize.net left intact
2. {"messages":{"resultCode":"Error","message":[{"code":"E00001","text":"Error reading JToken from JsonReader. Path '', line 0, position 0."}]}}

On Linux, null response is always returned. But on windows, the transaction works. Any idea?


Thankful for the little by little useful exercise. Has conclusively the ordinary impact.

Duncan
New Member