You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference
#3
Open
Jayden-ais opened this issue
Jun 4, 2024
· 0 comments
I am using com.heartlandpaymentsystems:globalpayments-android-sdk:1.1.35 this library but this is not working i am getting below error
java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.okhttp.internal.http.HttpStream.writeRequestHeaders(com.android.okhttp.Request)' on a null object reference
12:38:41.835 W at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:606)
12:38:41.835 W at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
12:38:41.835 W at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
12:38:41.835 W at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
12:38:41.835 W at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106)
12:38:41.835 W at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30)
12:38:41.836 W at com.global.api.gateways.Gateway.sendRequest(Gateway.java:172)
12:38:41.836 W at com.global.api.gateways.RestGateway.doTransaction(RestGateway.java:20)
12:38:41.836 W at com.global.api.gateways.GpApiConnector.getAccessToken(GpApiConnector.java:184)
12:38:41.836 W at com.global.api.gateways.GpApiConnector.signIn(GpApiConnector.java:123)
12:38:41.836 W at com.global.api.gateways.GpApiConnector.processAuthorization(GpApiConnector.java:256)
12:38:41.836 W at com.global.api.builders.AuthorizationBuilder.execute(AuthorizationBuilder.java:947)
12:38:41.836 W at com.global.api.builders.AuthorizationBuilder.execute(AuthorizationBuilder.java:28)
12:38:41.836 W at com.global.api.builders.BaseBuilder.execute(BaseBuilder.java:22)
12:38:41.836 W at com.familyentertainment.app.ui.fragments.CheckOutFragment.initView(CheckOutFragment.java:75)
12:38:41.836 W at com.familyentertainment.app.ui.fragments.CheckOutFragment_.onViewChanged(CheckOutFragment_.java:98)
12:38:41.836 W at org.androidannotations.api.view.OnViewChangedNotifier.notifyViewChanged(OnViewChangedNotifier.java:41)
12:38:41.836 W at com.familyentertainment.app.ui.fragments.CheckOutFragment_.onViewCreated(CheckOutFragment_.java:67)
12:38:41.836 W at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3148)
12:38:41.837 W at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:600)
12:38:41.837 W at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:278)
12:38:41.837 W at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2103)
12:38:41.837 W at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1998)
12:38:41.837 W at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1941)
12:38:41.837 W at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:661)
12:38:41.837 W at android.os.Handler.handleCallback(Handler.java:938)
12:38:41.837 W at android.os.Handler.dispatchMessage(Handler.java:99)
12:38:41.837 W at android.os.Looper.loopOnce(Looper.java:210)
12:38:41.837 W at android.os.Looper.loop(Looper.java:299)
12:38:41.837 W at android.app.ActivityThread.main(ActivityThread.java:8302)
12:38:41.837 W at java.lang.reflect.Method.invoke(Native Method)
12:38:41.837 W at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
12:38:41.837 W at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
here is my card.charge request data
[Add Configuration] - default
12:38:41.831 I ================================================================================
12:38:41.831 I Timestamp: 2024-06-04 12:38:41.831
12:38:41.831 I Endpoint: POST https://apis.sandbox.globalpay.com/ucp/accesstoken
12:38:41.831 I Proxy: none
12:38:41.831 I
12:38:41.831 I Headers:
12:38:41.831 I Accept: application/json
12:38:41.831 I Accept-Encoding: gzip
12:38:41.831 I Content-Type: application/json; charset=UTF-8
12:38:41.831 I X-GP-Version: 2021-03-22
12:38:41.831 I
12:38:41.831 I Request Body:
12:38:41.831 I {
12:38:41.831 I "grant_type": "client_credentials",
12:38:41.831 I "secret": "dd219014281a2d92b680010c7747c0a0b8786e9c091513ffd6effb2be88b3171f3759fdbdc46e0a253699ae03aa0885f44873d7dfaaea529d3b27db562f053a4",
12:38:41.831 I "app_id": "Your application ID",
12:38:41.831 I "nonce": "2024-06-04T12:38:41.745Z"
12:38:41.831 I }
12:38:41.834 I --------------------------------------------------------------------------------
12:38:41.834 I Timestamp: 2024-06-04 12:38:41.834
12:38:41.834 I Exception:
12:38:41.834 I null
The text was updated successfully, but these errors were encountered:
I am using com.heartlandpaymentsystems:globalpayments-android-sdk:1.1.35 this library but this is not working i am getting below error
here is my card.charge request data
The text was updated successfully, but these errors were encountered: