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 — Getting No Method Error com.google.protobuf.AbstractMessage.newBuilderForType while calling datastore in java · Issue #1891 · googleapis/google-cloud-java

Getting No Method Error com.google.protobuf.AbstractMessage.newBuilderForType while calling datastore in java #1891

New issue
Copy link
New issue
Copy link
Closed
Closed
Getting No Method Error com.google.protobuf.AbstractMessage.newBuilderForType while calling datastore in java#1891
Copy link
Assignees
garrettjonesgoogle
Labels
api: datastoreIssues related to the Datastore API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@Saurabh111191
Saurabh111191
opened on Apr 10, 2017
Issue body actions
Err: 
WARN  [2017-04-10 18:30:55,863] [ ] org.eclipse.jetty.util.component.AbstractLifeCycle: FAILED **org.eclipse.jetty.server.Server@2ad2b274: java.lang.NoSuchMethodError: com.google.protobuf.AbstractMessage.newBuilderForType(Lcom/google/protobuf/AbstractMessage$BuilderParent;)Lcom/google/protobuf/Message$Builder;
! java.lang.NoSuchMethodError: com.google.protobuf.AbstractMessage.newBuilderForType(Lcom/google/protobuf/AbstractMessage**$BuilderParent;)Lcom/google/protobuf/Message$Builder;
! at com.google.protobuf.SingleFieldBuilderV3.getBuilder(SingleFieldBuilderV3.java:142)
! at com.google.protobuf.RepeatedFieldBuilderV3.addBuilder(RepeatedFieldBuilderV3.java:413)
! at com.google.datastore.v1.Query$Builder.addKindBuilder(Query.java:1713)
! at com.google.cloud.datastore.StructuredQuery.toPb(StructuredQuery.java:1110)
! at com.google.cloud.datastore.StructuredQuery.populatePb(StructuredQuery.java:1089)
! at com.google.cloud.datastore.QueryResultsImpl.sendRequest(QueryResultsImpl.java:72)
! at com.google.cloud.datastore.QueryResultsImpl.<init>(QueryResultsImpl.java:57)
! at com.google.cloud.datastore.DatastoreImpl.run(DatastoreImpl.java:82)
! at com.google.cloud.datastore.DatastoreImpl.run(DatastoreImpl.java:73)
! at com.nis.userService.core.managed.DeltaContactConsumer.start(DeltaContactConsumer.java:44)
! at io.dropwizard.lifecycle.JettyManaged.doStart(JettyManaged.java:27)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
! at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:118)
! at org.eclipse.jetty.server.Server.start(Server.java:342)
! at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:100)
! at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:60)
! at org.eclipse.jetty.server.Server.doStart(Server.java:290)
! at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69)
! at io.dropwizard.cli.ServerCommand.run(ServerCommand.java:43)
! at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:43)
! at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:76)
! at io.dropwizard.cli.Cli.run(Cli.java:70)
! at io.dropwizard.Application.run(Application.java:72)

Sample Code that I am running:

Datastore datastore = DatastoreOptions.getDefaultInstance().getService();
            EntityQuery.Builder queryBuilder = Query.newEntityQueryBuilder().setKind("Device")
                    .setLimit(10);
        while (true) {
            if (pageCursor != null) {
                queryBuilder.setStartCursor(pageCursor);
            }
            QueryResults<Entity> tasks = datastore.run(queryBuilder.build());
            while (tasks.hasNext()) {
                Entity task = tasks.next();
                userLocations.add(new UserLocation(task));
            }
            Cursor nextPageCursor = tasks.getCursorAfter();
            pageCursor = nextPageCursor;
            if (nextPageCursor == null) {
                break;
            }
        }
  

Activity

  1. garrettjonesgoogle
    added
    api: datastoreIssues related to the Datastore API.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Apr 12, 2017
  2. vam-google
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on May 24, 2017
  3. garrettjonesgoogle commented on Jun 1, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jun 1, 2017
    Contributor
    More actions

    @Saurabh111191 can I get your dependency tree? In particular, I'd like to know what protobuf-related packages you are pulling in.

  4. garrettjonesgoogle commented on Jul 18, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 18, 2017
    Contributor
    More actions

    No response, so I'm going to close out this issue. Feel free to re-open if you have more details to provide.

  5. garrettjonesgoogle
    closed this as completedon Jul 18, 2017
  6. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  7. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: declare the name element (#1891)

    a9d6155
  8. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore: declare the name element (#1891)

    9f65a71
  9. suztomo
    added a commit that references this issue on Mar 23, 2026

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

    31095e0
  10. meltsufin
    added 6 commits that reference this issue on Apr 29, 2026

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

    231ba51

    chore(main): release 1.126.5 (#1907)

    2969061

    chore(main): release 1.133.0 (#2206)

    a3b6539

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

    9eba07a

    chore(main): release 1.126.5 (#1907)

    c16bf14

    chore(main): release 1.133.0 (#2206)

    1180af9
  11. benjaminp
    added a commit that references this issue on Jul 13, 2026

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

    5bf2bd0
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: datastoreIssues related to the Datastore API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

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.