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 — NPE for LRO's with response type "google.protobuf.Empty" · Issue #441 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

NPE for LRO's with response type "google.protobuf.Empty" #441

Copy link
Copy link
Closed
Closed
NPE for LRO's with response type "google.protobuf.Empty"#441
Copy link
Assignees
aohren

Description

@aohren
aohren
opened on Oct 30, 2020
Issue body actions

GAPIC generation on the googleads/v5 protos fails with a NPE when encountering an LRO with response_type: "google.protobuf.Empty".

Specifically, when GAPIC generation gets to googleads/v5/services/batch_job_service.proto:RunBatchJob, the following exception is thrown:

Exception in thread "main" java.lang.NullPointerException: LRO response message Empty not found on method RunBatchJob
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:895)
	at com.google.api.generator.gapic.protoparser.Parser.parseLro(Parser.java:384)
	at com.google.api.generator.gapic.protoparser.Parser.parseMethods(Parser.java:331)
	at com.google.api.generator.gapic.protoparser.Parser.lambda$parseService$0(Parser.java:196)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at com.google.api.generator.gapic.protoparser.Parser.parseService(Parser.java:199)
	at com.google.api.generator.gapic.protoparser.Parser.parseServices(Parser.java:132)
	at com.google.api.generator.gapic.protoparser.Parser.parse(Parser.java:103)
	at com.google.api.generator.gapic.Generator.generateGapic(Generator.java:29)
	at com.google.api.generator.Main.main(Main.java:35)

Activity

  1. aohren commented on Oct 30, 2020

    @aohren
    aohren
    on Oct 30, 2020
    Author
    More actions

    Adding a reference to empty_proto in the proto_library_with_info deps fixed the NPE.

    proto_library_with_info(
        name = "googleads_proto_with_info",
        deps = [
            ":googleads_proto",
            "@com_google_protobuf//:empty_proto",
        ],
    )
    
  2. aohren
    closed this as completedon Oct 30, 2020
  3. JustinBeckwith
    assigned
    aohren
    on Feb 2, 2021
  4. suztomo
    added 3 commits that reference this issue on Dec 16, 2022

    deps: update dependency gcp-releasetool to v1.8.8 (#441)

    31fec95

    chore(main): release 2.9.5 (#441)

    f3975cc

    chore(main): release 1.6.2 (#433)

    8b3eef3
  5. suztomo
    added 4 commits that reference this issue on Mar 21, 2023

    deps: update dependency com.google.errorprone:error_prone_annotations…

    514ca21

    chore: release 2.1.0 (#443)

    0288d7f

    chore(main): release 2.0.0 (#739)

    ea9f421

    build(deps): update dependency org.apache.maven.plugins:maven-project…

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

Metadata

Metadata

Assignees

  • @aohren
    aohren

Labels

No labels
No labels

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.