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 — java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured. · Issue #2240 · googleapis/google-cloud-java

java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured. #2240

New issue
Copy link
New issue
Copy link
Closed
Closed
java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.#2240
Copy link
Assignees
garrettjonesgoogle
Labels
api: visionIssues related to the Cloud Vision API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.

Description

@vscatarino
vscatarino
opened on Jul 16, 2017
Issue body actions

I'm trying run a code that use a cloud-vision.
Everything works normally when I use my desktop(ubuntu / windows10). But when I use a raspberry appear the following error:

Jul 16, 2017 5:52:39 PM io.grpc.internal.ChannelExecutor drain
WARNING: Runnable threw exception in ChannelExecutor
java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:174)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:151)
at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:139)
at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:109)
at io.grpc.netty.NettyChannelBuilder.createProtocolNegotiatorByType(NettyChannelBuilder.java:335)
at io.grpc.netty.NettyChannelBuilder.createProtocolNegotiator(NettyChannelBuilder.java:308)
at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DynamicNettyTransportParams.getProtocolNegotiator(NettyChannelBuilder.java:499)
at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.newClientTransport(NettyChannelBuilder.java:448)
at io.grpc.internal.CallCredentialsApplyingTransportFactory.newClientTransport(CallCredentialsApplyingTransportFactory.java:61)
at io.grpc.internal.InternalSubchannel.startNewTransport(InternalSubchannel.java:209)
at io.grpc.internal.InternalSubchannel.obtainActiveTransport(InternalSubchannel.java:186)
at io.grpc.internal.ManagedChannelImpl$SubchannelImplImpl.obtainActiveTransport(ManagedChannelImpl.java:806)
at io.grpc.internal.GrpcUtil.getTransportFromPickResult(GrpcUtil.java:568)
at io.grpc.internal.DelayedClientTransport.reprocess(DelayedClientTransport.java:296)
at io.grpc.internal.ManagedChannelImpl$LbHelperImpl$5.run(ManagedChannelImpl.java:724)
at io.grpc.internal.ChannelExecutor.drain(ChannelExecutor.java:87)
at io.grpc.internal.ManagedChannelImpl$LbHelperImpl.runSerialized(ManagedChannelImpl.java:715)
at io.grpc.internal.ManagedChannelImpl$NameResolverListenerImpl.onUpdate(ManagedChannelImpl.java:752)
at io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:174)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Exception in thread "main" com.google.api.gax.grpc.ApiException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED
at com.google.api.gax.grpc.ExceptionTransformingCallable$ExceptionTransformingFuture.onFailure(ExceptionTransformingCallable.java:108)
at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:52)
at com.google.common.util.concurrent.Futures$6.run(Futures.java:1764)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)
at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:817)
at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:753)
at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:634)
at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:463)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:439)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:428)
at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:76)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:514)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$700(ClientCallImpl.java:431)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:546)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:152)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED
at io.grpc.Status.asRuntimeException(Status.java:540)
... 15 more

My pom.xml :

<dependencies>
        <dependency>
            <groupId>com.google.cloud</groupId>
            <artifactId>google-cloud-vision</artifactId>
            <version>0.17.2-beta</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>com.google.api-client</groupId>
            <artifactId>google-api-client</artifactId>
            <version>1.22.0</version>
            <type>jar</type>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-tcnative-boringssl-static</artifactId>
            <version>2.0.5.Final</version>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>exec-maven-plugin</artifactId>
                <version>1.6.0</version>
            </plugin>
        </plugins>
    </build>
</project>

Anyone can help me please?

Activity

  1. garrettjonesgoogle commented on Jul 17, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 17, 2017
    Contributor
    More actions

    Unfortunately, Raspberry Pi runs on ARM, but ARM is not a supported architecture for the tcnative dependency of grpc yet. Thus, you won't be able to use any of the clients in this repo based on gRPC.

    Reacted by Vinícius
  2. garrettjonesgoogle
    added
    api: visionIssues related to the Cloud Vision API.
    dependencies
    on Jul 17, 2017
  3. vscatarino commented on Jul 17, 2017

    @vscatarino
    vscatarino
    on Jul 17, 2017
    Author
    More actions

    Thanks!
    Do you Know how it's works on raspberry?!

  4. garrettjonesgoogle commented on Jul 17, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jul 17, 2017
    Contributor
    More actions

    @vscatarino I don't understand your question, could you elaborate?

  5. vscatarino commented on Jul 18, 2017

    @vscatarino
    vscatarino
    on Jul 18, 2017
    Author
    More actions

    @garrettjonesgoogle
    Ok!
    I need to use Cloud Vision on Raspeberry.
    Is there any way to do this?

  6. garrettjonesgoogle commented on Aug 7, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 7, 2017
    Contributor
    More actions

    There is not a known way to do this, unfortunately.

  7. garrettjonesgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 7, 2017
  8. garrettjonesgoogle commented on Aug 7, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 7, 2017
    Contributor
    More actions

    I am going to add a special comment about Raspberry in the README (since this has been asked more than once), then I'll close out this issue. Sorry that we can't be of more help in the near future!

  9. garrettjonesgoogle commented on Aug 7, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 7, 2017
    Contributor
    More actions

    Note added to the README, so closing this issue now.

  10. garrettjonesgoogle
    closed this as completedon Aug 7, 2017
  11. vscatarino commented on Aug 8, 2017

    @vscatarino
    vscatarino
    on Aug 8, 2017
    Author
    More actions

    thanks!

  12. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  13. chingor13
    added a commit that references this issue on Feb 20, 2026

    chore: Update the Java code generator (gapic-generator-java) to 2.25.0 (

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

    deps: update dependency com.google.api.grpc:proto-google-cloud-trace-…

    74309b3
  15. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

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

    f8dae4d

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

    d5d9ebf
  16. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(main): release 2.39.3 (googleapis#2240)

    bdc09d1
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: visionIssues related to the Cloud Vision API.dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.

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.