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 — BiQuery query method results in java.lang.NoSuchMethodError · Issue #2418 · googleapis/google-cloud-java

BiQuery query method results in java.lang.NoSuchMethodError #2418

New issue
Copy link
New issue
Copy link
Closed
Closed
BiQuery query method results in java.lang.NoSuchMethodError#2418
Copy link
Assignees
patmagee
Labels
api: bigqueryIssues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.

Description

@patmagee
patmagee
opened on Sep 8, 2017
Issue body actions

I am creating a simple Query against a big query table, however I cannot seem to actually send the query due to an issue with QueryJobConfiguration throwing a java.lang.NoSuchMethodError when it tries to use getQueryParameters(). In fact, looking at the downloaded sources, there seems to be missing dependencies, with my IDE not being able to find com.google.api.services.bigquery.model.QueryParameter in general

I am using the following version of gcloud SDK for java

<dependency>
     <groupId>com.google.cloud</groupId>
     <artifactId>google-cloud-bigquery</artifactId>
     <version>0.22.0-beta</version>
</dependency>

The Truncated error

Caused by: java.lang.NoSuchMethodError: com.google.api.services.bigquery.model.JobConfigurationQuery.getQueryParameters()Ljava/util/List;
	at com.google.cloud.bigquery.QueryJobConfiguration$Builder.<init>(QueryJobConfiguration.java:135)
	at com.google.cloud.bigquery.QueryJobConfiguration$Builder.<init>(QueryJobConfiguration.java:85)
	at com.google.cloud.bigquery.QueryJobConfiguration.fromPb(QueryJobConfiguration.java:813)
	at com.google.cloud.bigquery.JobConfiguration.fromPb(JobConfiguration.java:140)
	at com.google.cloud.bigquery.JobInfo$BuilderImpl.<init>(JobInfo.java:184)
	at com.google.cloud.bigquery.Job.fromPb(Job.java:307)
	at com.google.cloud.bigquery.BigQueryImpl.query(BigQueryImpl.java:595)
	at com.google.cloud.bigquery.BigQueryImpl.query(BigQueryImpl.java:567)

Activity

  1. michaelbausor commented on Sep 8, 2017

    @michaelbausor
    michaelbausor
    on Sep 8, 2017
    Contributor
    More actions

    Hi @patmagee, can you provide a bit more info about how to reproduce the issue? When I create a new project using maven and depend only on the google-cloud-bigquery:0.22.0-beta package I am not seeing a NoSuchMethodError.

    Thanks!

  2. michaelbausor
    added
    api: bigqueryIssues related to the BigQuery API.
    type: questionRequest for information or clarification. Not an issue.
    on Sep 8, 2017
  3. patmagee commented on Sep 11, 2017

    @patmagee
    patmagee
    on Sep 11, 2017
    Author
    More actions

    @michaelbausor We are using this within a webapp and the code is within a deplotyed WAR on a widlfly server. Right now this only seems to be an issue when I am NOT using a Legacy SQL query (Ideally i was hoping to used parameterized queries). It appears I can use legacy queries. Right now I am using the QueryRequestBuilder to create a new request (without the parameters). I am doing something similar to the following:

    String myQuery = "From .......";
    QueryRequest qr = QueryRequest.newBuilder(myQuery).setUseLegacySql(false).build();
    QueryResponse response = bigQuery.query(qr);
    while (!response.jobCompleted()) {
         Thread.sleep(1000L);
         response = bigQuery.getQueryResults(response.getJobId());
    }
    return response.getResult();

    Looking in the resulting War, these are the dependencies resolved from google-cloud-bigquery:0.22.0-beta.

    google-api-client-1.22.0.jar
    google-api-services-bigquery-v2-rev315-1.22.0.jar
    google-auth-library-credentials-0.7.0.jar
    google-auth-library-oauth2-http-0.7.0.jar
    google-cloud-bigquery-0.22.0-beta.jar
    google-cloud-core-1.4.0.jar
    google-cloud-core-http-1.4.0.jar
    google-http-client-1.22.0.jar
    google-http-client-appengine-1.22.0.jar
    google-http-client-jackson-1.22.0.jar
    google-http-client-jackson2-1.22.0.jar
    google-oauth-client-1.22.0.jar
    
  4. patmagee commented on Sep 11, 2017

    @patmagee
    patmagee
    on Sep 11, 2017
    Author
    More actions

    This was a dependency issue. Someone was using an old version of the API elsewhere that was not documented

  5. patmagee
    closed this as completedon Sep 11, 2017
  6. JustinBeckwith
    assigned
    patmagee
    on Feb 1, 2021
  7. chingor13
    added 2 commits that reference this issue on Feb 20, 2026

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

    4d5eb73

    chore(main): release 3.3.0 (#2415)

    023df3b
  8. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    5f87661

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    b2fe0a3
  9. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    deps: update sdk-platform-java dependencies (googleapis#2418)

    328326e

    chore(main): release 2.48.0 (googleapis#2419)

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

Metadata

Metadata

Assignees

  • @patmagee
    patmagee

Labels

api: bigqueryIssues related to the BigQuery API.type: questionRequest for information or clarification. Not an issue.

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.