MethodNotFoundException while subscribing with 0.19.0-alpha and 0.20.0-beta

31 views
Skip to first unread message

Vinay Chitlangia

unread,
Jun 21, 2017, 11:59:52 PM6/21/17
to Google Cloud Pub/Sub Discussions
Facing this issue with 0.20.0-beta and 0.19.0-alpha. Curiously, our jars with 0.19.0-alpha were working fine till a couple of days back on appengine-flex. The same are failing with this error on restart. AFAICT there is no change in dependencies.

Had first posted this on stackoverflow. Not sure if this is the right forum for this error report. Trying my luck.

java.lang.NoSuchMethodError: com.google.pubsub.v1.Subscription$Builder.setNameWithSubscriptionName(Lcom/google/pubsub/v1/SubscriptionName;)Lcom/google/pubsub/v1/Subscription$Builder;
    1. at com.google.cloud.pubsub.spi.v1.SubscriptionAdminClient.createSubscription (SubscriptionAdminClient.java:302)

Jordan (Cloud Platform Support)

unread,
Jun 22, 2017, 10:24:15 AM6/22/17
to Google Cloud Pub/Sub Discussions
Google Groups is for general product discussions and not for reporting issues. 

The correct place to report this is directly on the Google Cloud Java Client Library Issue Tracker. You can see that this same issue has been dealt with many times before, and it is due to your mvn dependency tree pulling in different versions of google-cloud-* packages. Your google-cloud-* packages all need to be from the same release.
Reply all
Reply to author
Forward
0 new messages