Open Memet18 opened 2 years ago
@Memet18 Can you please paste the whole error? It looks like the text is truncated.
@EarthyOrange E/AndroidRuntime: FATAL EXCEPTION: main Process: com.paypal.heresdk.sampleapp, PID: 15630 java.lang.RuntimeException: undefined:30764: Attempt to invoke virtual method 'okhttp3.Call okhttp3.OkHttpClient.newCall(okhttp3.Request)' on a null object reference _manticore["default"].http({ ^ com.eclipsesource.v8.V8ScriptExecutionException at com.paypal.manticore.JsExecutor.run(JsExecutor.java:83) at com.paypal.manticore.ManticoreEngine.loadScript(ManticoreEngine.java:53) at com.paypal.paypalretailsdk.PayPalRetailObject.createManticoreEngine(PayPalRetailObject.java:73) at com.paypal.paypalretailsdk.RetailSDK.initialize(RetailSDK.java:212) at com.paypal.heresdk.sampleapp.login.LoginActivity.initSDK(LoginActivity.java:493) at com.paypal.heresdk.sampleapp.login.LoginActivity.onClick(LoginActivity.java:482) at android.view.View.performClick(View.java:8160) at android.widget.TextView.performClick(TextView.java:16234) at android.view.View.performClickInternal(View.java:8137) at android.view.View.access$3700(View.java:888) at android.view.View$PerformClick.run(View.java:30242) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:247) at android.app.ActivityThread.main(ActivityThread.java:8656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) Caused by: undefined:30764: Attempt to invoke virtual method 'okhttp3.Call okhttp3.OkHttpClient.newCall(okhttp3.Request)' on a null object reference _manticore["default"].http({ ^ com.eclipsesource.v8.V8ScriptExecutionException at com.eclipsesource.v8.V8._executeVoidScript(Native Method) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:1069) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:729) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:715) at com.paypal.manticore.ManticoreEngine$2.run(ManticoreEngine.java:58) at com.paypal.manticore.JsExecutor$2.call(JsExecutor.java:73) at com.paypal.manticore.JsExecutor$2.call(JsExecutor.java:67) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'okhttp3.Call okhttp3.OkHttpClient.newCall(okhttp3.Request)' on a null object reference at com.paypal.manticore.NativeServices.http(NativeServices.java:244) at java.lang.reflect.Method.invoke(Native Method) at com.eclipsesource.v8.V8.callVoidJavaMethod(V8.java:901) at com.eclipsesource.v8.V8._executeVoidScript(Native Method) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:1069) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:729) at com.eclipsesource.v8.V8.executeVoidScript(V8.java:715) at com.paypal.manticore.ManticoreEngine$2.run(ManticoreEngine.java:58) at com.paypal.manticore.JsExecutor$2.call(JsExecutor.java:73) at com.paypal.manticore.JsExecutor$2.call(JsExecutor.java:67) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)
There is no error if the targetSdkVersion of assembly is 28, if I increase the targetSdkVersion of assembly 29-31 then there is an error
@Memet18 Thanks for this info and bringing it to our attention. Can you please file this issue with your POC at PayPal so that it comes to the PPH-SDK team?
immediately when installing the application, and calling the function RetailSDK.initialize
java.lang.RuntimeException: undefined:30764: Attempt to invoke virtual method 'okhttp3.Call okhttp3.OkHttpClient.newCall(okhttp3.Request)' on a null object reference _manticore["default"].http({