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 — grpc 1.2.0 having issues with netty · Issue #579 · GoogleCloudPlatform/java-docs-samples

grpc 1.2.0 having issues with netty #579

New issue
Copy link
New issue
Copy link
Closed
Closed
grpc 1.2.0 having issues with netty#579
Copy link
Assignees
gguusspuneith
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@travisci-hrijp
travisci-hrijp
opened on Mar 24, 2017
Issue body actions
userpc:grpc username$ bin/speech-sample-async.sh --host=speech.googleapis.com --port=443 \
> --uri=resources/audio.raw --sampling=16000
Exception in thread "main" java.lang.NoSuchMethodError: io.grpc.netty.NettyChannelBuilder.maxInboundMessageSize()I
	at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:274)
	at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:239)
	at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:69)
	at com.examples.cloud.speech.AsyncRecognizeClient.createChannel(AsyncRecognizeClient.java:90)
	at com.examples.cloud.speech.AsyncRecognizeClient.main(AsyncRecognizeClient.java:229)

In which file did you encounter the issue?

git/java-docs-samples/speech/grpc/pom.xml

Did you change the file? If so, how?

userpc:grpc username$ git diff
diff --git a/speech/grpc/pom.xml b/speech/grpc/pom.xml
index 21b508a..70c1507 100644
--- a/speech/grpc/pom.xml
+++ b/speech/grpc/pom.xml
@@ -49,7 +49,7 @@ limitations under the License.
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <codehaus-versions-maven-plugin-version>2.3</codehaus-versions-maven-plugin-version>
-    <grpc-version>1.2.0</grpc-version> <!-- 1.1.2 doesn't work - DO NOT UPGRADE -->
+    <grpc-version>1.0.3</grpc-version> <!-- 1.1.2 doesn't work - DO NOT UPGRADE -->
     <maven-compiler-plugin-version>3.6.0</maven-compiler-plugin-version>
     <xolstice-protobuf-maven-plugin-version>0.5.0</xolstice-protobuf-maven-plugin-version>

Describe the issue

There are issues finding Netty in the latest grpc version bump.

Activity

  1. travisci-hrijp
    changed the title [-]Roll back GRPC version in pom.xml[/-] [+]grpc 1.2.0 having issues with netty[/+] on Mar 24, 2017
  2. lesv
    assigned
    puneith
    on Mar 24, 2017
  3. lesv commented on Mar 24, 2017

    @lesv
    lesv
    on Mar 24, 2017
    Contributor
    More actions

    I've rolled back to 1.0.3 for now.

  4. lesv
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    SPEECH
    on Mar 24, 2017
  5. lesv
    assigned
    gguuss
    on Mar 24, 2017
  6. lesv commented on Apr 22, 2017

    @lesv
    lesv
    on Apr 22, 2017
    Contributor
    More actions

    @chrisgarry Is this still a problem for you?

  7. travisci-hrijp commented on Apr 23, 2017

    @travisci-hrijp
    travisci-hrijp
    on Apr 23, 2017
    Author
    More actions

    @lesv nope my local version change resolved it. I haven't pulled in any recent changes to verify if you guys resolved.

  8. atejandro commented on May 31, 2017

    @atejandro
    atejandro
    on May 31, 2017
    More actions

    I have the same problem in a project I'm working on. This time however, it happens when I change from version 1.2.0 to version 1.3.0.

    org.jini.rio.core.JSBInstantiationException: java.lang.NoSuchMethodError: io.grpc.netty.NettyChannelBuilder.maxInboundMessageSize()I at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:333) at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:239) at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:69) at com.pagosonline.maf.channel.GrpcManagedChannel.<init>(GrpcManagedChannel.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at

    Is rolling back to 1.2.0 the only solution? Are you still having the same problem with this new release?

  9. travisci-hrijp commented on May 31, 2017

    @travisci-hrijp
    travisci-hrijp
    on May 31, 2017
    Author
    More actions

    @atejandro This is the second version bump of GRPC that has had this issue. I wonder if the same change that broke this last time was reintroduced, or it wasn't patched in a sustainable way. I am no longer using this so I'm not sure. Good luck!

  10. lesv commented on May 31, 2017

    @lesv
    lesv
    on May 31, 2017
    Contributor
    More actions

    @gguuss PTAL

  11. gguuss commented on May 31, 2017

    @gguuss
    gguuss
    on May 31, 2017
    Contributor
    More actions

    I just was looking at the java/speech samples for forever trying to figure this out. I believe we removed the GRPC samples in favor of those using Cloud Client libraries. Can you point me to the code you're running?

    Do the samples in this folder resolve your issue? I cannot reproduce the issue.

  12. lesv commented on Mar 6, 2018

    @lesv
    lesv
    on Mar 6, 2018
    Contributor
    More actions

    If you are still having issues look at:
    https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TROUBLESHOOTING.md
    Should be obsolete.

  13. lesv
    closed this as completedon Mar 6, 2018
  14. minherz
    added 3 commits that reference this issue on Nov 9, 2022

    chore: release 0.121.4 (#579)

    d9792ee

    chore: release 0.121.4 (#579)

    0b0ffe7

    chore: release 0.121.4 (#579)

    6b946d3
  15. charlieyu1996
    added a commit that references this issue on Nov 10, 2022

    chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#…

    f516fe8
  16. Sita04
    added a commit that references this issue on Feb 7, 2023

    chore: release 2.4.5 (#579)

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

Metadata

Metadata

Assignees

  • @gguuss
    gguuss
  • @puneith
    puneith

Labels

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.