Skip to content

Error: Jetty ALPN/NPN has not been properly configured. #2266

@naushad97

Description

@naushad97

I am getting the below exception when running the sample "speech" application as a plain java application. I have not run it on any server as of now.

Sample application can be found at- https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/speech/cloud-client.

Exception in thread "main" 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$NettyTransportFactory.(NettyChannelBuilder.java:470)
at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:338)
at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:305)
at com.google.api.gax.grpc.InstantiatingChannelProvider.createChannel(InstantiatingChannelProvider.java:139)
at com.google.api.gax.grpc.InstantiatingChannelProvider.getChannel(InstantiatingChannelProvider.java:116)
at com.google.api.gax.grpc.ChannelAndExecutor.create(ChannelAndExecutor.java:65)
at com.google.api.gax.grpc.ClientSettings.getChannelAndExecutor(ClientSettings.java:91)
at com.google.cloud.speech.v1.SpeechClient.(SpeechClient.java:140)
at com.google.cloud.speech.v1.SpeechClient.create(SpeechClient.java:131)
at com.google.cloud.speech.v1.SpeechClient.create(SpeechClient.java:123)
at com.example.speech.QuickstartSample.main(QuickstartSample.java:38)

I have tried most of the steps provided over the net but no luck. It uses google cloud speech version - 0.20.3-alpha. I have also tried with google cloud speech version -0.17.1-alpha but same issue.

Metadata

Metadata

Labels

api: loggingIssues related to the Cloud Logging API.api: speechIssues related to the Speech-to-Text 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