Skip to main content
New Participant
Aug 19, 2020 5:02 PM UTC
Question

Exception in thread "Subscription Manager Consumer Thread" java.lang.NoSuchMethodError:

Exception in thread "Subscription Manager Consumer Thread" java.lang.NoSuchMethodError: com.pubnub.api.models.consumer.pubsub.PNMessageResult.getMessage()Lcom/google/gson/JsonElement;

at com.ringcentral.pubnub.Subscription$1.message(Subscription.kt:59)

at com.pubnub.api.managers.ListenerManager.announce(ListenerManager.java:43)

at com.pubnub.api.workers.SubscribeMessageWorker.processIncomingPayload(SubscribeMessageWorker.java:183)

at com.pubnub.api.workers.SubscribeMessageWorker.takeMessage(SubscribeMessageWorker.java:54)

at com.pubnub.api.workers.SubscribeMessageWorker.run(SubscribeMessageWorker.java:45)

at java.lang.Thread.run(Unknown Source)

    1 reply

    PhongVu
    Community Manager
    Community Manager
    Aug 19, 2020 7:01 PM UTC

    What is your question? How did you implement the subscription in your code? Can't help with just the exception without any explanation or background info.