GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NoSuchmethodError on pubsub.PubSubOptions.newBuilder() · Issue #1397 · googleapis/google-cloud-java

NoSuchmethodError on pubsub.PubSubOptions.newBuilder() #1397

New issue
Copy link
New issue
Copy link
Closed
Closed
NoSuchmethodError on pubsub.PubSubOptions.newBuilder()#1397
Copy link
Assignees
garrettjonesgoogle
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@kir-titievsky
kir-titievsky
opened on Nov 14, 2016
Issue body actions

My code compiles with this clause in pom.xml

com.google.cloud
google-cloud-pubsub
0.5.0

But crashes immediately at run time when I attempt to create a new option builder:
public static void main( String[] args ) throws ParseException, java.io.IOException
{
CommandLine cmd = parseCommandLineArgs( args );
PubSubOptions options = PubSubOptions.newBuilder().build();
...
}

With
Exception in thread "main" java.lang.NoSuchMethodError: com.google.cloud.pubsub.PubSubOptions.newBuilder()Lcom/google/cloud/pubsub/PubSubOptions$Builder;

  1. What am I doing wrong?
  2. I modeled this line on the datastore example on the read-the-code front page. If this is different, that's something to be fixed either in the API or the docs :)
  3. It is super hard to figure out how to actually create a properly authenticated client from the Javadoc. There are not examples and most of the key methods are right in the middle of being deprecated. I'd love clean documentation on the client creation classes.

Activity

  1. mziccard commented on Nov 14, 2016

    @mziccard
    mziccard
    on Nov 14, 2016
    Contributor
    More actions

    How are you running the application? Is the proper version of google-cloud-pubsub in the classpath? Can you do a clean build?

  2. mziccard
    added
    api: pubsubIssues related to the Pub/Sub API.
    on Nov 14, 2016
  3. omaray
    added
    triaged
    on Nov 21, 2016
  4. garrettjonesgoogle commented on Dec 9, 2016

    @garrettjonesgoogle
    garrettjonesgoogle
    on Dec 9, 2016
    Contributor
    More actions

    @kir-titievsky , could you provide the information that Marco was asking for here? Could you maybe try with 0.8.0?

  5. garrettjonesgoogle commented on Jan 26, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jan 26, 2017
    Contributor
    More actions

    Closing out due to no response.

  6. garrettjonesgoogle
    closed this as completedon Jan 26, 2017
  7. garrettjonesgoogle
    removed
    triaged for beta
    on Jan 26, 2017
  8. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  9. github-actions
    added a commit that references this issue on Jun 23, 2022

    chore(main): release 2.2.6-SNAPSHOT (#1397)

    cba6a9e
  10. github-actions
    added a commit that references this issue on Oct 10, 2022

    chore(deps): update dependency com.google.cloud:google-cloud-asset to…

    80455cd
  11. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    deps: update dependency org.junit.vintage:junit-vintage-engine to v5.…

    f15d246

    chore(main): release 3.15.7 (#1399)

    059cded
  12. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.131.16-alpha (#1397)

    f9f4928
  13. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: include recommended_package in repo-metadata.json (#1397)

    b8fe0d5
  14. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    deps: update dependency org.junit.vintage:junit-vintage-engine to v5.…

    f74803b

    chore(main): release 3.15.7 (googleapis#1399)

    6297129
  15. suztomo
    added a commit that references this issue on Mar 23, 2026

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    7d46174
  16. suztomo
    added a commit that references this issue on Mar 30, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.3…

    c2a095d
  17. lqiu96
    added a commit that references this issue on Apr 1, 2026

    deps: update dependency com.google.cloud:google-cloud-storage to v2.3…

    358617b
  18. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(main): release 2.12.1-SNAPSHOT (googleapis#1397)

    d2faf83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.