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 — ManagedChannelImpl@8e4bb0] Created with target language.googleapis.com:443 Exception in thread "main" java.lang.NoSuchMethodError · Issue #587 · GoogleCloudPlatform/java-docs-samples

ManagedChannelImpl@8e4bb0] Created with target language.googleapis.com:443 Exception in thread "main" java.lang.NoSuchMethodError #587

New issue
Copy link
New issue
Copy link
Closed
Closed
ManagedChannelImpl@8e4bb0] Created with target language.googleapis.com:443 Exception in thread "main" java.lang.NoSuchMethodError#587
Copy link

Description

@scraly
scraly
opened on Mar 29, 2017
Issue body actions

In which file did you encounter the issue?

java-docs-samples/language/cloud-client/src/main/java/com/example/language/QuickstartSample.java

Did you change the file? If so, how?

no

Describe the issue

I added the lib import in my pom.xml:

	<dependency>
		<groupId>com.google.cloud</groupId>
		<artifactId>google-cloud-language</artifactId>
		<version>0.9.4-alpha</version>
	</dependency>

Then I follow the quick start:

            //Instanciate a client
	LanguageServiceClient language = LanguageServiceClient.create();

	//Text to analyze
	String text = "Hello world";
	Document doc = Document.newBuilder().setContent(text).setType(Type.PLAIN_TEXT).build();

	//Detect the sentiment
	Sentiment sentiment = language.analyzeSentiment(doc).getDocumentSentiment();

	System.out.printf("Text: %s%n", text);
	System.out.printf("Sentiment: %s, %s%n", sentiment.getScore(), sentiment.getMagnitude());

When I execute the code, I obtain an error:

log4j:WARN No appenders could be found for logger (io.netty.util.internal.logging.InternalLoggerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
mars 29, 2017 12:26:59 PM io.grpc.internal.ManagedChannelImpl <init>
INFOS: [ManagedChannelImpl@8e4bb0] Created with target language.googleapis.com:443
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor;
	at io.grpc.internal.ClientCallImpl.<init>(ClientCallImpl.java:103)
	at io.grpc.internal.ManagedChannelImpl$RealChannel.newCall(ManagedChannelImpl.java:556)
	at io.grpc.auth.ClientAuthInterceptor.interceptCall(ClientAuthInterceptor.java:82)
	at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:120)
	at com.google.api.gax.grpc.HeaderInterceptor.interceptCall(HeaderInterceptor.java:57)
	at io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:120)
	at io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:535)
	at com.google.api.gax.grpc.DescriptorClientCallFactory.newCall(DescriptorClientCallFactory.java:54)
	at com.google.api.gax.grpc.DirectCallable.futureCall(DirectCallable.java:60)
	at com.google.api.gax.grpc.ExceptionTransformingCallable.futureCall(ExceptionTransformingCallable.java:62)
	at com.google.api.gax.grpc.RetryingCallable$RetryingResultFuture.issueCall(RetryingCallable.java:216)
	at com.google.api.gax.grpc.RetryingCallable.futureCall(RetryingCallable.java:84)
	at com.google.api.gax.grpc.UnaryCallable.futureCall(UnaryCallable.java:243)
	at com.google.api.gax.grpc.UnaryCallable.futureCall(UnaryCallable.java:254)
	at com.google.api.gax.grpc.UnaryCallable.call(UnaryCallable.java:282)
	at com.google.cloud.language.spi.v1.LanguageServiceClient.analyzeSentiment(LanguageServiceClient.java:213)
	at com.google.cloud.language.spi.v1.LanguageServiceClient.analyzeSentiment(LanguageServiceClient.java:190)
	at com.atchikrealtime.product.moderation.google.test.GoogleTest.myNaturalLanguageTest(GoogleTest.java:402)
	at com.atchikrealtime.product.moderation.google.test.GoogleTest.main(GoogleTest.java:259)

Activity

  1. lesv commented on Apr 22, 2017

    @lesv
    lesv
    on Apr 22, 2017
    Contributor
    More actions

    @scraly Is this still an issue for you?

  2. nnegrey
    added
    Data Analytics / ML / IoT
    on Nov 30, 2018
  3. nnegrey commented on Dec 7, 2018

    @nnegrey
    nnegrey
    on Dec 7, 2018
    Contributor
    More actions

    Hi,

    It looks like there wasn't a followup for this issue. If this is still an issue please feel free to reopen it and we'll be happy to help!

    Thanks! :)

  4. nnegrey
    closed this as completedon Dec 7, 2018
  5. anguillanneuf
    added a commit that references this issue on Oct 24, 2022

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

    080c155
  6. ivanmkc
    added a commit that references this issue on Nov 3, 2022

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

    690cdef
  7. averikitsch
    added 2 commits that reference this issue on Nov 4, 2022

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

    ed869dc

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

    018da79
  8. Sita04
    added 3 commits that reference this issue on Nov 11, 2022

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

    6651b1b

    deps: update dependency com.google.guava:guava to v31 (#587)

    0ce601d

    deps: update dependency com.google.guava:guava to v31 (#587)

    1d0db23
  9. charlieyu1996
    added a commit that references this issue on Nov 15, 2022

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

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

Metadata

Metadata

Assignees

No one assigned

    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.