question

kirank avatar image
kirank asked ·

Seeing a crash in PaymentConnectorControllerActivity

We are seeing a crash in PaymentConnectorControllerActivity when hit cancel on the payment screen. It does not happen all the time. Device is Clover Flex (Development) and SDK & Payment Connector are 228.3 (latest as of 9/18)

09-18 08:30:04.993 1763-1763/? E/PaymentConnectorControllerActivity: sendResponseAndFinish(PaymentConnectorControllerActivity.java:1466): Error in sendResponseAndFinish
    java.lang.UnsupportedOperationException: Attempted to serialize java.lang.Class: $Proxy1. Forgot to register a type adapter?
        at com.google.gson.internal.bind.TypeAdapters$1.write(TypeAdapters.java:73)
        at com.google.gson.internal.bind.TypeAdapters$1.write(TypeAdapters.java:69)
        at com.google.gson.TypeAdapter$1.write(TypeAdapter.java:191)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:208)
        at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.write(MapTypeAdapterFactory.java:145)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:127)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:127)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
        at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:127)
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:245)
        at com.google.gson.Gson.toJson(Gson.java:704)
        at com.google.gson.Gson.toJson(Gson.java:683)
        at com.google.gson.Gson.toJson(Gson.java:638)
        at com.google.gson.Gson.toJson(Gson.java:618)
        at com.clover.payment.connector.PaymentConnectorControllerActivity.sendResponseAndFinish(PaymentConnectorControllerActivity.java:1461)
        at com.clover.payment.connector.PaymentConnectorControllerActivity.onActivityResult(PaymentConnectorControllerActivity.java:1096)
        at android.app.Activity.dispatchActivityResult(Activity.java:6202)
        at android.app.ActivityThread.deliverResults(ActivityThread.java:3570)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:3617)
        at android.app.ActivityThread.access$1300(ActivityThread.java:151)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1352)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5254)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)




Clover Android SDKClover FlexPaymentConnector
3 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I see that we have an internal issue written up for this. Can you confirm the version of the payments app you have and your region?

0 Likes 0 · ·
kirank avatar image kirank David Marginian ♦♦ ·

Payments is 1.0-337. US region.

0 Likes 0 · ·

Just to let you know know, I occasionally still see this crash. This does affect the User Experience. What happens is when this crash occurs the Clover Payment flow finishes but does not return back to the app. But the Clover Payment Flow restarts at "Add Tip?" and continues to take another payment - this time with an employee warning that it might a duplicate. If we tap OK/yes, the flow returns back to the app and we get our payment details. However there are 2 transactions the card now.

0 Likes 0 · ·

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community