Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassNotFoundException ExpiredProposal #1322

Open
mahdit8 opened this issue Feb 15, 2024 · 2 comments
Open

ClassNotFoundException ExpiredProposal #1322

mahdit8 opened this issue Feb 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mahdit8
Copy link

mahdit8 commented Feb 15, 2024

Describe the bug
Encountered a runtime issue leading to a ClassNotFoundException while executing Kotlin code related to a WalletConnect operation. This error suggests a problem with dynamic class resolution, impacting the successful execution of the operation.

Details:
Error Type: ClassNotFoundException
Context: Occurs during the handling of a WalletConnect operation within a Kotlin codebase.
Implication: Indicates that the Java Virtual Machine (JVM) was unable to locate a required class, implying a potential issue with the classpath or library integration.

Caused by: java.lang.ClassNotFoundException: com.walletconnect.web3.wallet.client.Wallet$Model$ExpiredProposal
        at com.bitcoin.walletconnect.v2.WCClientV2$3$1.invokeSuspend(WCClientV2.kt:219)
        at com.bitcoin.walletconnect.v2.WCClientV2$3$1.invoke(Unknown:8)
        at com.bitcoin.walletconnect.v2.WCClientV2$3$1.invoke(Unknown:4)
        at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invokeSuspend(Merge.kt:217)
        at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke(Unknown:13)
        at kotlinx.coroutines.flow.FlowKt__MergeKt$mapLatest$1.invoke(Unknown:4)
        at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invokeSuspend(Merge.kt:34)
        at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Unknown:8)
        at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1$2.invoke(Unknown:4)
        at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
        at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
        at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
        at kotlinx.coroutines.BuildersKt.launch(Unknown:1)
        at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
        at kotlinx.coroutines.BuildersKt.launch$default(Unknown:1)
        at kotlinx.coroutines.flow.internal.ChannelFlowTransformLatest$flowCollect$3$1.emit(Merge.kt:33)
        at kotlinx.coroutines.flow.SharedFlowImpl.collect$suspendImpl(SharedFlow.kt:382)
        at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend(Unknown:15)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
        at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
        at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

SDK Version

  • Client: Kotlin
  • Version bom 1.22.2

To Reproduce
Not sure when this happens but I could find this for several users on bugsnag.

Expected behavior
Class should be founded

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):
So far:

  • Huawei P30 Pro (VOG-L29) - Android 10- 15 events
  • Galaxy S22 (SM-S901N) - Android 14- 1 event

Additional context
Add any other context about the problem here.

@mahdit8 mahdit8 added the bug Something isn't working label Feb 15, 2024
@Talhaali00
Copy link
Contributor

@mahdit8
Have you added any Proguard rules with your integration of the WC SDK? It's odd to see a ClassNotFoundException at runtime

@mahdit8
Copy link
Author

mahdit8 commented Mar 25, 2024

@Talhaali00 There is no pro-guard rule as minification is not enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants