Nets-mobile-acceptance / Netaxept-Android-SDK

PiA Netaxept Android SDK is a library that provides the native In-App interaction to perform Netaxept payments directly from an app on Android devices while minimizing PCI DSS requirements for you.
31 stars 15 forks source link

Crash in SDK version 2.4.0 - ComponentInfo{com.nemlig/eu.nets.pia.wallets.MobilepayActivity}: java.lang.ClassCastException #46

Closed mkovalyk closed 1 year ago

mkovalyk commented 3 years ago

SDK version: 2.4.0 Android Versions: 100% - Android 11 Frequency: 23 in last 30 days

Stacktrace

Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nemlig/eu.nets.pia.wallets.MobilepayActivity}: java.lang.ClassCastException: java.lang.ref.WeakReference cannot be cast to eu.nets.pia.wallets.WalletPaymentRegistration at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3827) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4003) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2317) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8595) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Steps to reproduce Cannot describe because it is taken from Crash reporting tool

Miss-PiA commented 3 years ago

Thank you for the inputs. We will be looking into this issue and track the root cause for the same. BR

Nets-in-app commented 2 years ago

@mkovalyk Please try comment provided in #47.

Miss-PiA commented 1 year ago

Hi @mkovalyk , Please try Netaxept-Android-SDK v2.7.0. If issue still persist re-open this issue again.

Thanks,