Skip to content

NoSuchMethodException on listTransferMethods #116

@claudiopaccone

Description

@claudiopaccone

In my project I'm currently using the version 1.0.0-beta06 of hyperwallet core SDK.
I'm receiving an HyperwalletException, the stack trace is the following:

Non-fatal Exception: com.hyperwallet.android.exception.HyperwalletException:
java.lang.NoSuchMethodException: k.i.a.p.a. [class org.json.JSONObject]
at com.hyperwallet.android.ExceptionMapper.initHyperwalletException(ExceptionMapper.java:92)
at com.hyperwallet.android.ExceptionMapper.toHyperwalletException(ExceptionMapper.java:82)
at com.hyperwallet.android.HttpTransaction$2.run(HttpTransaction.java:203)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

Caused by java.lang.NoSuchMethodException: k.i.a.p.a. [class org.json.JSONObject]
at java.lang.Class.getConstructor0(Class.java:2332)
at java.lang.Class.getConstructor(Class.java:1728)
at com.hyperwallet.android.util.JsonUtils.fromJsonString(JsonUtils.java:199)
at com.hyperwallet.android.util.JsonUtils.fromJsonString(JsonUtils.java:176)
at com.hyperwallet.android.RestTransaction.handleErrors(RestTransaction.java:80)
at com.hyperwallet.android.HttpTransaction.run(HttpTransaction.java:97)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
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:919)

Any clue about the cause?
I have added some logs when the crash occours, so I know that the function that lead to exception is hyperwallet.listTransferMethods.
Looking at code seems that the rest call is not succeed and the mapping to the errors causes the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions