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

NoSuchmethodError on pubsub.PubSubOptions.newBuilder() #1397

Closed
kir-titievsky opened this issue Nov 14, 2016 · 3 comments
Closed

NoSuchmethodError on pubsub.PubSubOptions.newBuilder() #1397

kir-titievsky opened this issue Nov 14, 2016 · 3 comments
Assignees
Labels
api: pubsub Issues related to the Pub/Sub API.

Comments

@kir-titievsky
Copy link

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.
@mziccard
Copy link
Contributor

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

@mziccard mziccard added the api: pubsub Issues related to the Pub/Sub API. label Nov 14, 2016
@omaray omaray added the triaged label Nov 21, 2016
@garrettjonesgoogle
Copy link
Member

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

@garrettjonesgoogle
Copy link
Member

Closing out due to no response.

github-actions bot pushed a commit that referenced this issue Jun 23, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Oct 10, 2022
… v3.7.1 (#1397)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-asset](https://togithub.com/googleapis/java-asset) | `3.7.0` -> `3.7.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-asset/3.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-asset/3.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-asset/3.7.1/compatibility-slim/3.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-asset/3.7.1/confidence-slim/3.7.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-asset).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMjIuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIyMi4zIn0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the Pub/Sub API.
Projects
None yet
Development

No branches or pull requests

4 participants